Interface to read/decode EvapOR List Mode Output Files (so-called .pax files) More...
#include <EvapLMOF.h>
Public Types | |
enum | Status { kEmpty, kGood, kEoE, kFail } |
Reading status. More... | |
Public Member Functions | |
void | AddFile (const char *fname) |
to add an input (pax) file More... | |
EvapLMOF () | |
const DATA & | GetData () |
To get the current data structure. More... | |
TString & | GetError () |
To get the last error. More... | |
const std::vector< Double_t > & | GetEventsRead () |
it returns an array with the number of events read from all the input files More... | |
const GLOBAL & | GetGlobal () |
To get the current global structure. More... | |
const ID & | GetId () |
To get the current id structure. More... | |
const KINMAT & | GetKin () |
To get the current kinematic structure. More... | |
TLeaf * | GetLeaf (const char *leafname="no") |
To get a ROOT leaf corresponding to one of the variable. More... | |
TString & | GetWarning () |
To get the last warning. More... | |
Bool_t | NextEvent (UInt_t next=0) |
To load the next event. More... | |
void | NextFile () |
switch to next file. More... | |
EvapLMOF & | operator<< (EvapLMOF &(*pf)(EvapLMOF &)) |
to modified the reading More... | |
void | Rewind () |
To restart the data stream from the beginning. More... | |
void | Scan (UInt_t start=0, UInt_t end=10) |
To scan events and show them on the standard output. More... | |
void | SetPath (const char *path="./") |
set the directory where to find the input files More... | |
void | ShowCurrentConditions (std::ostream &out=std::cout) |
The current status is shown on the standard ouptut. More... | |
void | ShowCurrentEvent (std::ostream &out=std::cout) |
The show the content of the current event on the standard ouput. More... | |
~EvapLMOF () | |
Static Public Attributes | |
static const Short_t | MAXCASCADE = 200 |
static const Short_t | MAXPARTICLES = 12 |
static Short_t | VERBOSE = 0 |
Set verbosity level. More... | |
Friends | |
EvapLMOF & | full (EvapLMOF &reader) |
EvapLMOF & | idonly (EvapLMOF &reader) |
Interface to read/decode EvapOR List Mode Output Files (so-called .pax files)
In the evapoOR input file, the PAX keyword controls the production of files in which are stored details about the full cascades on an event by event bases. This interface helps you to read these files. A tar file of the evapOR package is available with a global makefile to build it. Just ask for it at agata (remove _ in the email address). It has been compiled successfully on Sun station (with the Sun f77 fortran compiler) and on Linux SL4 (with the Intel ifort fortran compiler). Unfortunatelly, it cannot be compiled with g77 or gfortran. _@_i pnl.i n2p3 .fr
Four output structures are filled event by event which correspond to the four common blocks as explained in the "playback common blocks" section of the evapoOR documentation (section A.6). The name of the variables are identical and their signification is reported here.
Several pax files could be chained (see SetPath & AddFile). Once initialized, the chain is processed with NexEvent() that returns true if a new event is available. Rewind allows to restart the reading while Scan just displays on the standard output the content of each event.
This interface takes care of the endian type so that you can generate your pax file on any machine and process them with EvapLMOF on any machine.
Definition at line 90 of file EvapLMOF.h.