Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

UtilHepevt Namespace Reference


Functions

int getNHep ()
 # of entries in /HEPEVT/ common block.
int getNevHep ()
 Get/Set Event # in /HEPEVT/ common block.
void setNevHep (int evtnum)
void clearCommon (bool fast=false)
 Clear /HEPEVT/ common block.
TClonesArray * getEmptyStdHep (int dfltsiz=-1)
 Construct a suitable TClonesArray of TParticles.
int unpackCommon (TClonesArray *stdhep, cvu_t vtxCvu=UtilHepevt::k_mmtom, cvu_t tCvu=UtilHepevt::k_mmtosec)
int fillCommon (const TClonesArray *stdhep, cvu_t vtxCvu=UtilHepevt::k_mtomm, cvu_t tCvu=UtilHepevt::k_sectomm)
 Copy info from TClonesArray of TParticles into /HEPEVT/ common block.
int openBinary (std::string fname, bool write=false)
 Open FORTRAN binary file (returns filedescriptor).
void closeBinary (int &fd)
 Close FORTRAN binary file (zero out filedescriptor).
int readBinary (int &fd)
bool writeBinary (int fd, int szrecmrk=4)
 Write FORTRAN compatible binary file of /HEPEVT/.
TClonesArray * readAscii (std::istream &istrm, const TLorentzVector=TLorentzVector())
void dump (const TClonesArray *stdhep, int verbose=0)
double unitScale (UtilHepevt::cvu_t cvu)
 Get "standardized" unit convertion factors.
int modStatusStdHep (TClonesArray *stdhep, std::string conditional, int istflag=0xdead)
 Flag entries that pass conditional with a new status code.
int squeezeStdHep (TClonesArray *stdhep, int istrm=0xdead)
void AppendStdHep (TClonesArray *stdhep, const TClonesArray *addon, const TLorentzVector=TLorentzVector())
 Append one StdHep list to another (w/ potential offset).


Function Documentation

void AppendStdHep TClonesArray *  stdhep,
const TClonesArray *  addon,
const   TLorentzVector = TLorentzVector()
 

Append one StdHep list to another (w/ potential offset).

Referenced by HepevtModule::Get().

void clearCommon bool  fast = false  ) 
 

Clear /HEPEVT/ common block.

void closeBinary int &  fd  ) 
 

Close FORTRAN binary file (zero out filedescriptor).

Referenced by WriteStdHepFileModule::CloseFile(), and HepevtModule::Config().

void dump const TClonesArray *  stdhep,
int  verbose = 0
 

Formatted dump of StdHep array. verbose: 0=no vtx, 1=w/ vtx

Referenced by HepevtModule::Ana(), BDUniquifyTestModule::Ana(), HepevtModule::Get(), and GenieModule::Get().

int fillCommon const TClonesArray *  stdhep,
cvu_t  vtxCvu = UtilHepevt::k_mtomm,
cvu_t  tCvu = UtilHepevt::k_sectomm
 

Copy info from TClonesArray of TParticles into /HEPEVT/ common block.

Referenced by WriteStdHepFileModule::Ana().

TClonesArray* getEmptyStdHep int  dfltsiz = -1  ) 
 

Construct a suitable TClonesArray of TParticles.

Referenced by GenieModule::FillStdHep(), HepevtModule::FindOrCreateSimSnarlRecord(), and HepevtModule::Get().

int getNevHep  ) 
 

Get/Set Event # in /HEPEVT/ common block.

int getNHep  ) 
 

# of entries in /HEPEVT/ common block.

int modStatusStdHep TClonesArray *  stdhep,
std::string  conditional,
int  istflag = 0xdead
 

Flag entries that pass conditional with a new status code.

Referenced by RerootToTruthModule::ModifyStdHep(), and HepevtModule::ModifyStdHep().

int openBinary std::string  fname,
bool  write = false
 

Open FORTRAN binary file (returns filedescriptor).

Referenced by HepevtModule::Config(), and WriteStdHepFileModule::OpenFile().

TClonesArray* readAscii std::istream &  istrm,
const   TLorentzVector = TLorentzVector()
 

Read ASCII file of /HEPEVT/ events into StdHep array. Caller take posession of the array, null ptr means error. Assume istream is attached to input; on error/EOF close it

Referenced by HepevtModule::Get().

int readBinary int &  fd  ) 
 

Read FORTRAN compatible binary file of /HEPEVT/. Return # of rows; negative value means an error. Upon EOF fd will be closed and zero'ed out.

Referenced by HepevtModule::Get().

void setNevHep int  evtnum  ) 
 

Referenced by WriteStdHepFileModule::Ana().

int squeezeStdHep TClonesArray *  stdhep,
int  istrm = 0xdead
 

Remove entries with status code "istrm" from StdHep (TClonesArray of TParticles) adjusting mother/daughter indices.

Referenced by RerootToTruthModule::ModifyStdHep(), and HepevtModule::ModifyStdHep().

double unitScale UtilHepevt::cvu_t  cvu  ) 
 

Get "standardized" unit convertion factors.

int unpackCommon TClonesArray *  stdhep,
cvu_t  vtxCvu = UtilHepevt::k_mmtom,
cvu_t  tCvu = UtilHepevt::k_mmtosec
 

Copy info from the /HEPEVT/ common block into the supplied TClonesArray of TParticles.

Referenced by HepevtModule::Get().

bool writeBinary int  fd,
int  szrecmrk = 4
 

Write FORTRAN compatible binary file of /HEPEVT/.

Referenced by WriteStdHepFileModule::Ana().


Generated on Sat Nov 21 22:52:55 2009 for loon by  doxygen 1.3.9.1