LCIO
02.17
|
#include <lStdHep.hh>
Classes | |
class | Event |
class | EventTable |
Public Member Functions | |
lStdHep (const char *filename=0, bool open_for_write=false) | |
virtual | ~lStdHep () |
bool | more (void) |
long | readEvent (void) |
long | getEvent (lStdEvent &lse) const |
long | readEvent (lStdEvent &lse) |
long | numEvents () const |
long | numEventsExpected () const |
long | blockId () const |
long | nTracks (void) const |
long | evtNum (void) const |
long | runNum (void) const |
double | X (int i) const |
double | Y (int i) const |
double | Z (int i) const |
double | T (int i) const |
double | Px (int i) const |
double | Py (int i) const |
double | Pz (int i) const |
double | E (int i) const |
double | M (int i) const |
long | pid (int i) const |
long | status (int i) const |
long | mother1 (int i) const |
long | mother2 (int i) const |
long | daughter1 (int i) const |
long | daughter2 (int i) const |
double | eventweight (void) const |
double | alphaQED (void) const |
double | alphaQCD (void) const |
double | scale (int i, int j) const |
double | spinX (int i) const |
double | spinY (int i) const |
double | spinZ (int i) const |
long | colorflow (int i, int j) const |
long | idrup (void) const |
bool | isStdHepEv4 (void) const |
long | writeEvent (void) |
long | setEvent (const lStdEvent &lse) |
long | writeEvent (lStdEvent &lse) |
void | setNTracks (long n) |
void | setEvtNum (long n) |
void | setX (int i, double x) |
void | setY (int i, double y) |
void | setZ (int i, double z) |
void | setT (int i, double t) |
void | setPx (int i, double px) |
void | setPy (int i, double py) |
void | setPz (int i, double pz) |
void | setE (int i, double e) |
void | setM (int i, double m) |
void | setPid (int i, long aPid) |
void | setStatus (int i, long s) |
void | setMother1 (int i, long n) |
void | setMother2 (int i, long n) |
void | setDaughter1 (int i, long n) |
void | setDaughter2 (int i, long n) |
void | printFileHeader (FILE *fp=0) |
void | printBeginRunRecord (FILE *fp=0) |
void | printEndRunRecord (FILE *fp=0) |
void | printEventTable (FILE *fp=0) |
void | printEventHeader (FILE *fp=0) |
void | printEvent (FILE *fp=0) |
void | printTrack (int i, FILE *fp=0) |
![]() | |
lXDR (const char *filename=0, bool open_for_write=false) | |
virtual | ~lXDR () |
void | setFileName (const char *filename, bool open_for_write=false) |
const char * | getFileName (void) const |
long | getError (void) const |
long | readLong (void) |
double | readFloat (void) |
double | readDouble (void) |
const char * | readString (long &length) |
long * | readLongArray (long &length) |
double * | readFloatArray (long &length) |
double * | readDoubleArray (long &length) |
long | writeLong (long data) |
long | writeDouble (double data) |
long | writeString (const char *data) |
long | writeString (const char *data, long length) |
long | writeLongArray (const long *data, long length) |
long | writeDoubleArray (const double *data, long length) |
void | setError (long error) |
long | filePosition (long pos=-1) |
Static Public Member Functions | |
static int | getMajor (void) |
static int | getMinor (void) |
static const char * | getText (void) |
![]() | |
static int | getMajor (void) |
static int | getMinor (void) |
static const char * | getText (void) |
Private Types | |
enum | { MAJOR = 2, MINOR = 0, DAY = 23, MONTH = 1, YEAR = 2006 } |
Private Member Functions | |
lStdHep (const lStdHep &) | |
lStdHep & | operator= (const lStdHep &) |
long | readFileHeader (void) |
Private Attributes | |
long | ntot |
const char * | version |
const char * | title |
const char * | comment |
const char * | date |
const char * | closingDate |
long | numevts_expect |
long | numevts |
long | firstTable |
long | dimTable |
long | nNTuples |
long | nBlocks |
long * | blockIds |
const char ** | blockNames |
EventTable | eventTable {} |
Event | event {} |
Definition at line 116 of file lStdHep.hh.
|
private |
Enumerator | |
---|---|
MAJOR | |
MINOR | |
DAY | |
MONTH | |
YEAR |
Definition at line 121 of file lStdHep.hh.
UTIL::lStdHep::lStdHep | ( | const char * | filename = 0 , |
bool | open_for_write = false |
||
) |
Definition at line 29 of file lStdHep.cc.
References LSH_NOTSUPPORTED, readFileHeader(), and UTIL::lXDR::setError().
|
private |
|
virtual |
Definition at line 43 of file lStdHep.cc.
References blockIds, blockNames, closingDate, comment, date, nBlocks, title, and version.
|
inline |
Definition at line 206 of file lStdHep.hh.
References UTIL::lStdHep::Event::alphaqcd, and event.
Referenced by printTrack().
|
inline |
Definition at line 205 of file lStdHep.hh.
References UTIL::lStdHep::Event::alphaqed, and event.
Referenced by printTrack().
|
inline |
Definition at line 184 of file lStdHep.hh.
References UTIL::lStdHep::Event::blockid, and event.
|
inline |
Definition at line 211 of file lStdHep.hh.
References UTIL::lStdHep::Event::colorflow, and event.
Referenced by UTIL::lStdHep::Event::cleanup(), and UTIL::lStdHep::Event::read().
|
inline |
Definition at line 202 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::jdahep.
Referenced by getEvent(), and setEvent().
|
inline |
Definition at line 203 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::jdahep.
Referenced by getEvent(), and setEvent().
|
inline |
Definition at line 196 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::phep.
Referenced by getEvent(), printTrack(), and setEvent().
|
inline |
Definition at line 204 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::eventweight.
Referenced by printTrack(), and UTIL::lStdHep::Event::read().
|
inline |
Definition at line 186 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::nevhep.
long UTIL::lStdHep::getEvent | ( | lStdEvent & | lse | ) | const |
Definition at line 176 of file lStdHep.cc.
References std::vector< T >::clear(), UTIL::lStdTrack::daughter1, daughter1(), UTIL::lStdTrack::daughter2, daughter2(), UTIL::lStdTrack::E, E(), UTIL::lStdEvent::evtNum, UTIL::lXDR::getError(), LSH_SUCCESS, UTIL::lStdTrack::M, M(), UTIL::lStdTrack::mother1, mother1(), UTIL::lStdTrack::mother2, mother2(), UTIL::lStdTrack::pid, pid(), std::vector< T >::push_back(), UTIL::lStdTrack::Px, Px(), UTIL::lStdTrack::Py, Py(), UTIL::lStdTrack::Pz, Pz(), UTIL::lStdTrack::status, status(), UTIL::lStdTrack::T, T(), UTIL::lStdTrack::X, X(), UTIL::lStdTrack::Y, Y(), UTIL::lStdTrack::Z, and Z().
Referenced by readEvent().
|
inlinestatic |
Definition at line 124 of file lStdHep.hh.
References MAJOR.
|
inlinestatic |
Definition at line 125 of file lStdHep.hh.
References MINOR.
|
inlinestatic |
|
inline |
Definition at line 212 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::idrup.
Referenced by printTrack(), and UTIL::lStdHep::Event::read().
|
inline |
Definition at line 216 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::scale.
|
inline |
Definition at line 197 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::phep.
Referenced by getEvent(), printTrack(), and setEvent().
bool UTIL::lStdHep::more | ( | void | ) |
Definition at line 130 of file lStdHep.cc.
References UTIL::lXDR::getError(), and LSH_SUCCESS.
|
inline |
Definition at line 200 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::jmohep.
Referenced by getEvent(), and setEvent().
|
inline |
Definition at line 201 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::jmohep.
Referenced by getEvent(), and setEvent().
|
inline |
Definition at line 185 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::nhep.
|
inline |
Definition at line 175 of file lStdHep.hh.
References numevts.
Referenced by UTIL::LCStdHepRdr::getNumberOfEvents(), and UTIL::LCStdHepRdrNew::getNumberOfEvents().
|
inline |
Definition at line 176 of file lStdHep.hh.
References numevts_expect.
Referenced by UTIL::LCStdHepRdr::getNumberOfTotalEventsExpected(), and UTIL::LCStdHepRdrNew::getNumberOfTotalEventsExpected().
|
inline |
Definition at line 198 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::idhep.
Referenced by getEvent(), printTrack(), and setEvent().
void UTIL::lStdHep::printBeginRunRecord | ( | FILE * | fp = 0 | ) |
Definition at line 118 of file lStdHep.cc.
void UTIL::lStdHep::printEndRunRecord | ( | FILE * | fp = 0 | ) |
Definition at line 124 of file lStdHep.cc.
void UTIL::lStdHep::printEvent | ( | FILE * | fp = 0 | ) |
Definition at line 99 of file lStdHep.cc.
void UTIL::lStdHep::printEventHeader | ( | FILE * | fp = 0 | ) |
Definition at line 92 of file lStdHep.cc.
void UTIL::lStdHep::printEventTable | ( | FILE * | fp = 0 | ) |
Definition at line 85 of file lStdHep.cc.
References eventTable, and UTIL::lStdHep::EventTable::print().
void UTIL::lStdHep::printFileHeader | ( | FILE * | fp = 0 | ) |
Definition at line 60 of file lStdHep.cc.
References blockNames, closingDate, comment, date, dimTable, firstTable, nBlocks, nNTuples, ntot, numevts, numevts_expect, title, and version.
void UTIL::lStdHep::printTrack | ( | int | i, |
FILE * | fp = 0 |
||
) |
Definition at line 106 of file lStdHep.cc.
References alphaQCD(), alphaQED(), E(), event, eventweight(), idrup(), M(), UTIL::lStdHep::Event::nhep, pid(), Px(), Py(), Pz(), T(), X(), Y(), and Z().
|
inline |
Definition at line 193 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::phep.
Referenced by getEvent(), printTrack(), and setEvent().
|
inline |
Definition at line 194 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::phep.
Referenced by getEvent(), printTrack(), and setEvent().
|
inline |
Definition at line 195 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::phep.
Referenced by getEvent(), printTrack(), and setEvent().
long UTIL::lStdHep::readEvent | ( | void | ) |
Definition at line 135 of file lStdHep.cc.
References event, eventTable, UTIL::lXDR::filePosition(), UTIL::lXDR::getError(), UTIL::lStdHep::EventTable::ievt, UTIL::lStdHep::EventTable::isEmpty, UTIL::lStdHep::Event::isEmpty, LSH_ENDOFFILE, LSH_EVTABLECORRUPT, LSH_SUCCESS, UTIL::lStdHep::EventTable::nextlocator, UTIL::lStdHep::EventTable::numEvts, UTIL::lStdHep::EventTable::ptrEvents, UTIL::lStdHep::EventTable::read(), UTIL::lStdHep::Event::read(), and UTIL::lXDR::setError().
Referenced by readEvent().
long UTIL::lStdHep::readEvent | ( | lStdEvent & | lse | ) |
Definition at line 205 of file lStdHep.cc.
References getEvent(), LSH_SUCCESS, and readEvent().
|
private |
Definition at line 212 of file lStdHep.cc.
References blockIds, blockNames, closingDate, comment, date, dimTable, eventTable, firstTable, UTIL::lXDR::getError(), LSH_BLOCKERROR, LSH_FILEHEADER, LSH_NOTSUPPORTED, nBlocks, nNTuples, ntot, numevts, numevts_expect, UTIL::lStdHep::EventTable::read(), UTIL::lXDR::readLong(), UTIL::lXDR::readLongArray(), UTIL::lXDR::readString(), UTIL::lXDR::setError(), title, and version.
Referenced by lStdHep().
|
inline |
Definition at line 187 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::runnum.
|
inline |
Definition at line 207 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::scale.
Referenced by UTIL::lStdHep::Event::cleanup(), and UTIL::lStdHep::Event::read().
|
inline |
Definition at line 250 of file lStdHep.hh.
Referenced by setEvent().
|
inline |
Definition at line 251 of file lStdHep.hh.
Referenced by setEvent().
|
inline |
Definition at line 244 of file lStdHep.hh.
Referenced by setEvent().
long UTIL::lStdHep::setEvent | ( | const lStdEvent & | lse | ) |
Definition at line 263 of file lStdHep.cc.
References daughter1(), daughter2(), E(), UTIL::lStdEvent::evtNum, LSH_SUCCESS, M(), mother1(), mother2(), pid(), Px(), Py(), Pz(), setDaughter1(), setDaughter2(), setE(), setEvtNum(), setM(), setMother1(), setMother2(), setNTracks(), setPid(), setPx(), setPy(), setPz(), setStatus(), setT(), setX(), setY(), setZ(), std::vector< T >::size(), status(), T(), X(), Y(), and Z().
Referenced by writeEvent().
|
inline |
Definition at line 235 of file lStdHep.hh.
Referenced by setEvent().
|
inline |
Definition at line 245 of file lStdHep.hh.
Referenced by setEvent().
|
inline |
Definition at line 248 of file lStdHep.hh.
Referenced by setEvent().
|
inline |
Definition at line 249 of file lStdHep.hh.
Referenced by setEvent().
|
inline |
Definition at line 234 of file lStdHep.hh.
Referenced by setEvent().
|
inline |
Definition at line 246 of file lStdHep.hh.
Referenced by setEvent().
|
inline |
Definition at line 241 of file lStdHep.hh.
Referenced by setEvent().
|
inline |
Definition at line 242 of file lStdHep.hh.
Referenced by setEvent().
|
inline |
Definition at line 243 of file lStdHep.hh.
Referenced by setEvent().
|
inline |
Definition at line 247 of file lStdHep.hh.
Referenced by setEvent().
|
inline |
Definition at line 240 of file lStdHep.hh.
Referenced by setEvent().
|
inline |
Definition at line 237 of file lStdHep.hh.
Referenced by setEvent().
|
inline |
Definition at line 238 of file lStdHep.hh.
Referenced by setEvent().
|
inline |
Definition at line 239 of file lStdHep.hh.
Referenced by setEvent().
|
inline |
Definition at line 208 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::spin.
|
inline |
Definition at line 209 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::spin.
|
inline |
Definition at line 210 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::spin.
|
inline |
Definition at line 199 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::isthep.
Referenced by getEvent(), and setEvent().
|
inline |
Definition at line 192 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::vhep.
Referenced by getEvent(), printTrack(), and setEvent().
long UTIL::lStdHep::writeEvent | ( | void | ) |
long UTIL::lStdHep::writeEvent | ( | lStdEvent & | lse | ) |
Definition at line 289 of file lStdHep.cc.
References LSH_SUCCESS, setEvent(), and writeEvent().
|
inline |
Definition at line 189 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::vhep.
Referenced by getEvent(), printTrack(), and setEvent().
|
inline |
Definition at line 190 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::vhep.
Referenced by getEvent(), printTrack(), and setEvent().
|
inline |
Definition at line 191 of file lStdHep.hh.
References event, and UTIL::lStdHep::Event::vhep.
Referenced by getEvent(), printTrack(), and setEvent().
|
private |
Definition at line 281 of file lStdHep.hh.
Referenced by UTIL::lStdHep::Event::cleanup(), UTIL::lStdHep::Event::printHeader(), UTIL::lStdHep::Event::read(), readFileHeader(), and ~lStdHep().
|
private |
Definition at line 282 of file lStdHep.hh.
Referenced by printFileHeader(), readFileHeader(), and ~lStdHep().
|
private |
Definition at line 273 of file lStdHep.hh.
Referenced by printFileHeader(), readFileHeader(), and ~lStdHep().
|
private |
Definition at line 271 of file lStdHep.hh.
Referenced by printFileHeader(), readFileHeader(), and ~lStdHep().
|
private |
Definition at line 272 of file lStdHep.hh.
Referenced by printFileHeader(), readFileHeader(), and ~lStdHep().
|
private |
Definition at line 278 of file lStdHep.hh.
Referenced by printFileHeader(), and readFileHeader().
|
private |
Definition at line 406 of file lStdHep.hh.
Referenced by alphaQCD(), alphaQED(), blockId(), colorflow(), daughter1(), daughter2(), E(), eventweight(), evtNum(), idrup(), isStdHepEv4(), M(), mother1(), mother2(), nTracks(), pid(), printTrack(), Px(), Py(), Pz(), readEvent(), runNum(), scale(), spinX(), spinY(), spinZ(), status(), T(), X(), Y(), and Z().
|
private |
Definition at line 325 of file lStdHep.hh.
Referenced by printEventTable(), readEvent(), and readFileHeader().
|
private |
Definition at line 277 of file lStdHep.hh.
Referenced by printFileHeader(), and readFileHeader().
|
private |
Definition at line 280 of file lStdHep.hh.
Referenced by printFileHeader(), UTIL::lStdHep::Event::printHeader(), UTIL::lStdHep::Event::read(), readFileHeader(), and ~lStdHep().
|
private |
Definition at line 279 of file lStdHep.hh.
Referenced by printFileHeader(), UTIL::lStdHep::Event::printHeader(), UTIL::lStdHep::Event::read(), and readFileHeader().
|
private |
Definition at line 268 of file lStdHep.hh.
Referenced by UTIL::lStdHep::EventTable::cleanup(), UTIL::lStdHep::Event::cleanup(), UTIL::lStdHep::EventTable::print(), printFileHeader(), UTIL::lStdHep::Event::printHeader(), UTIL::lStdHep::EventTable::read(), UTIL::lStdHep::Event::read(), and readFileHeader().
|
private |
Definition at line 276 of file lStdHep.hh.
Referenced by numEvents(), printFileHeader(), and readFileHeader().
|
private |
Definition at line 275 of file lStdHep.hh.
Referenced by numEventsExpected(), printFileHeader(), and readFileHeader().
|
private |
Definition at line 270 of file lStdHep.hh.
Referenced by printFileHeader(), readFileHeader(), and ~lStdHep().
|
private |
Definition at line 269 of file lStdHep.hh.
Referenced by UTIL::lStdHep::EventTable::cleanup(), UTIL::lStdHep::Event::cleanup(), UTIL::lStdHep::EventTable::print(), printFileHeader(), UTIL::lStdHep::Event::printHeader(), UTIL::lStdHep::EventTable::read(), UTIL::lStdHep::Event::read(), readFileHeader(), and ~lStdHep().