LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
UTIL::lStdHep Class Reference

#include <lStdHep.hh>

+ Inheritance diagram for UTIL::lStdHep:

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)
 
- Public Member Functions inherited from UTIL::lXDR
 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 Public Member Functions inherited from UTIL::lXDR
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 &)
 
lStdHepoperator= (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 {}
 

Detailed Description

Definition at line 116 of file lStdHep.hh.

Member Enumeration Documentation

anonymous enum
private
Enumerator
MAJOR 
MINOR 
DAY 
MONTH 
YEAR 

Definition at line 121 of file lStdHep.hh.

Constructor & Destructor Documentation

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().

UTIL::lStdHep::lStdHep ( const lStdHep )
private
UTIL::lStdHep::~lStdHep ( )
virtual

Definition at line 43 of file lStdHep.cc.

References blockIds, blockNames, closingDate, comment, date, nBlocks, title, and version.

Member Function Documentation

double UTIL::lStdHep::alphaQCD ( void  ) const
inline

Definition at line 206 of file lStdHep.hh.

References UTIL::lStdHep::Event::alphaqcd, and event.

Referenced by printTrack().

double UTIL::lStdHep::alphaQED ( void  ) const
inline

Definition at line 205 of file lStdHep.hh.

References UTIL::lStdHep::Event::alphaqed, and event.

Referenced by printTrack().

long UTIL::lStdHep::blockId ( ) const
inline

Definition at line 184 of file lStdHep.hh.

References UTIL::lStdHep::Event::blockid, and event.

long UTIL::lStdHep::colorflow ( int  i,
int  j 
) const
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().

long UTIL::lStdHep::daughter1 ( int  i) const
inline

Definition at line 202 of file lStdHep.hh.

References event, and UTIL::lStdHep::Event::jdahep.

Referenced by getEvent(), and setEvent().

long UTIL::lStdHep::daughter2 ( int  i) const
inline

Definition at line 203 of file lStdHep.hh.

References event, and UTIL::lStdHep::Event::jdahep.

Referenced by getEvent(), and setEvent().

double UTIL::lStdHep::E ( int  i) const
inline

Definition at line 196 of file lStdHep.hh.

References event, and UTIL::lStdHep::Event::phep.

Referenced by getEvent(), printTrack(), and setEvent().

double UTIL::lStdHep::eventweight ( void  ) const
inline

Definition at line 204 of file lStdHep.hh.

References event, and UTIL::lStdHep::Event::eventweight.

Referenced by printTrack(), and UTIL::lStdHep::Event::read().

long UTIL::lStdHep::evtNum ( void  ) const
inline

Definition at line 186 of file lStdHep.hh.

References event, and UTIL::lStdHep::Event::nevhep.

long UTIL::lStdHep::getEvent ( lStdEvent lse) const
static int UTIL::lStdHep::getMajor ( void  )
inlinestatic

Definition at line 124 of file lStdHep.hh.

References MAJOR.

static int UTIL::lStdHep::getMinor ( void  )
inlinestatic

Definition at line 125 of file lStdHep.hh.

References MINOR.

static const char* UTIL::lStdHep::getText ( void  )
inlinestatic

Definition at line 126 of file lStdHep.hh.

References DAY, MAJOR, MINOR, MONTH, and YEAR.

long UTIL::lStdHep::idrup ( void  ) const
inline

Definition at line 212 of file lStdHep.hh.

References event, and UTIL::lStdHep::Event::idrup.

Referenced by printTrack(), and UTIL::lStdHep::Event::read().

bool UTIL::lStdHep::isStdHepEv4 ( void  ) const
inline

Definition at line 216 of file lStdHep.hh.

References event, and UTIL::lStdHep::Event::scale.

double UTIL::lStdHep::M ( int  i) const
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.

long UTIL::lStdHep::mother1 ( int  i) const
inline

Definition at line 200 of file lStdHep.hh.

References event, and UTIL::lStdHep::Event::jmohep.

Referenced by getEvent(), and setEvent().

long UTIL::lStdHep::mother2 ( int  i) const
inline

Definition at line 201 of file lStdHep.hh.

References event, and UTIL::lStdHep::Event::jmohep.

Referenced by getEvent(), and setEvent().

long UTIL::lStdHep::nTracks ( void  ) const
inline

Definition at line 185 of file lStdHep.hh.

References event, and UTIL::lStdHep::Event::nhep.

long UTIL::lStdHep::numEvents ( ) const
inline

Definition at line 175 of file lStdHep.hh.

References numevts.

Referenced by UTIL::LCStdHepRdr::getNumberOfEvents(), and UTIL::LCStdHepRdrNew::getNumberOfEvents().

long UTIL::lStdHep::numEventsExpected ( ) const
inline
lStdHep& UTIL::lStdHep::operator= ( const lStdHep )
private
long UTIL::lStdHep::pid ( int  i) const
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)
void UTIL::lStdHep::printTrack ( int  i,
FILE *  fp = 0 
)
double UTIL::lStdHep::Px ( int  i) const
inline

Definition at line 193 of file lStdHep.hh.

References event, and UTIL::lStdHep::Event::phep.

Referenced by getEvent(), printTrack(), and setEvent().

double UTIL::lStdHep::Py ( int  i) const
inline

Definition at line 194 of file lStdHep.hh.

References event, and UTIL::lStdHep::Event::phep.

Referenced by getEvent(), printTrack(), and setEvent().

double UTIL::lStdHep::Pz ( int  i) const
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  )
long UTIL::lStdHep::readEvent ( lStdEvent lse)

Definition at line 205 of file lStdHep.cc.

References getEvent(), LSH_SUCCESS, and readEvent().

long UTIL::lStdHep::readFileHeader ( void  )
private
long UTIL::lStdHep::runNum ( void  ) const
inline

Definition at line 187 of file lStdHep.hh.

References event, and UTIL::lStdHep::Event::runnum.

double UTIL::lStdHep::scale ( int  i,
int  j 
) const
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().

void UTIL::lStdHep::setDaughter1 ( int  i,
long  n 
)
inline

Definition at line 250 of file lStdHep.hh.

Referenced by setEvent().

void UTIL::lStdHep::setDaughter2 ( int  i,
long  n 
)
inline

Definition at line 251 of file lStdHep.hh.

Referenced by setEvent().

void UTIL::lStdHep::setE ( int  i,
double  e 
)
inline

Definition at line 244 of file lStdHep.hh.

Referenced by setEvent().

long UTIL::lStdHep::setEvent ( const lStdEvent lse)
void UTIL::lStdHep::setEvtNum ( long  n)
inline

Definition at line 235 of file lStdHep.hh.

Referenced by setEvent().

void UTIL::lStdHep::setM ( int  i,
double  m 
)
inline

Definition at line 245 of file lStdHep.hh.

Referenced by setEvent().

void UTIL::lStdHep::setMother1 ( int  i,
long  n 
)
inline

Definition at line 248 of file lStdHep.hh.

Referenced by setEvent().

void UTIL::lStdHep::setMother2 ( int  i,
long  n 
)
inline

Definition at line 249 of file lStdHep.hh.

Referenced by setEvent().

void UTIL::lStdHep::setNTracks ( long  n)
inline

Definition at line 234 of file lStdHep.hh.

Referenced by setEvent().

void UTIL::lStdHep::setPid ( int  i,
long  aPid 
)
inline

Definition at line 246 of file lStdHep.hh.

Referenced by setEvent().

void UTIL::lStdHep::setPx ( int  i,
double  px 
)
inline

Definition at line 241 of file lStdHep.hh.

Referenced by setEvent().

void UTIL::lStdHep::setPy ( int  i,
double  py 
)
inline

Definition at line 242 of file lStdHep.hh.

Referenced by setEvent().

void UTIL::lStdHep::setPz ( int  i,
double  pz 
)
inline

Definition at line 243 of file lStdHep.hh.

Referenced by setEvent().

void UTIL::lStdHep::setStatus ( int  i,
long  s 
)
inline

Definition at line 247 of file lStdHep.hh.

Referenced by setEvent().

void UTIL::lStdHep::setT ( int  i,
double  t 
)
inline

Definition at line 240 of file lStdHep.hh.

Referenced by setEvent().

void UTIL::lStdHep::setX ( int  i,
double  x 
)
inline

Definition at line 237 of file lStdHep.hh.

Referenced by setEvent().

void UTIL::lStdHep::setY ( int  i,
double  y 
)
inline

Definition at line 238 of file lStdHep.hh.

Referenced by setEvent().

void UTIL::lStdHep::setZ ( int  i,
double  z 
)
inline

Definition at line 239 of file lStdHep.hh.

Referenced by setEvent().

double UTIL::lStdHep::spinX ( int  i) const
inline

Definition at line 208 of file lStdHep.hh.

References event, and UTIL::lStdHep::Event::spin.

double UTIL::lStdHep::spinY ( int  i) const
inline

Definition at line 209 of file lStdHep.hh.

References event, and UTIL::lStdHep::Event::spin.

double UTIL::lStdHep::spinZ ( int  i) const
inline

Definition at line 210 of file lStdHep.hh.

References event, and UTIL::lStdHep::Event::spin.

long UTIL::lStdHep::status ( int  i) const
inline

Definition at line 199 of file lStdHep.hh.

References event, and UTIL::lStdHep::Event::isthep.

Referenced by getEvent(), and setEvent().

double UTIL::lStdHep::T ( int  i) const
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  )

Definition at line 258 of file lStdHep.cc.

References LSH_NOTSUPPORTED.

Referenced by writeEvent().

long UTIL::lStdHep::writeEvent ( lStdEvent lse)

Definition at line 289 of file lStdHep.cc.

References LSH_SUCCESS, setEvent(), and writeEvent().

double UTIL::lStdHep::X ( int  i) const
inline

Definition at line 189 of file lStdHep.hh.

References event, and UTIL::lStdHep::Event::vhep.

Referenced by getEvent(), printTrack(), and setEvent().

double UTIL::lStdHep::Y ( int  i) const
inline

Definition at line 190 of file lStdHep.hh.

References event, and UTIL::lStdHep::Event::vhep.

Referenced by getEvent(), printTrack(), and setEvent().

double UTIL::lStdHep::Z ( int  i) const
inline

Definition at line 191 of file lStdHep.hh.

References event, and UTIL::lStdHep::Event::vhep.

Referenced by getEvent(), printTrack(), and setEvent().

Member Data Documentation

long* UTIL::lStdHep::blockIds
private
const char** UTIL::lStdHep::blockNames
private

Definition at line 282 of file lStdHep.hh.

Referenced by printFileHeader(), readFileHeader(), and ~lStdHep().

const char* UTIL::lStdHep::closingDate
private

Definition at line 273 of file lStdHep.hh.

Referenced by printFileHeader(), readFileHeader(), and ~lStdHep().

const char* UTIL::lStdHep::comment
private

Definition at line 271 of file lStdHep.hh.

Referenced by printFileHeader(), readFileHeader(), and ~lStdHep().

const char* UTIL::lStdHep::date
private

Definition at line 272 of file lStdHep.hh.

Referenced by printFileHeader(), readFileHeader(), and ~lStdHep().

long UTIL::lStdHep::dimTable
private

Definition at line 278 of file lStdHep.hh.

Referenced by printFileHeader(), and readFileHeader().

Event UTIL::lStdHep::event {}
private
EventTable UTIL::lStdHep::eventTable {}
private

Definition at line 325 of file lStdHep.hh.

Referenced by printEventTable(), readEvent(), and readFileHeader().

long UTIL::lStdHep::firstTable
private

Definition at line 277 of file lStdHep.hh.

Referenced by printFileHeader(), and readFileHeader().

long UTIL::lStdHep::nBlocks
private
long UTIL::lStdHep::nNTuples
private
long UTIL::lStdHep::ntot
private
long UTIL::lStdHep::numevts
private

Definition at line 276 of file lStdHep.hh.

Referenced by numEvents(), printFileHeader(), and readFileHeader().

long UTIL::lStdHep::numevts_expect
private

Definition at line 275 of file lStdHep.hh.

Referenced by numEventsExpected(), printFileHeader(), and readFileHeader().

const char* UTIL::lStdHep::title
private

Definition at line 270 of file lStdHep.hh.

Referenced by printFileHeader(), readFileHeader(), and ~lStdHep().

const char* UTIL::lStdHep::version
private

The documentation for this class was generated from the following files: