ROOT logo
AliRoot » TEVTGEN » THepMCParser

class THepMCParser

Function Members (Methods)

public:
THepMCParser()
THepMCParser(const char*)
THepMCParser(HepMC::IO_BaseClass*)
THepMCParser(const THepMCParser&)
virtual~THepMCParser()
TTree*GetTTree()
boolIsValidMotherDaughtersConsitency(bool useStdErr = false, bool requireSecondMotherBeforeDaughters = false)
boolIsValidParticleInvariantMass(bool useStdErr = false, bool includeStatusCode2Particles = false)
boolIsValidVertexInvariantMass(bool useStdErr = false, bool includeStatusCode2Particles = false)
static stringListReactionChain(TClonesArray*, Int_t)
THepMCParser&operator=(const THepMCParser&)
static stringParseGenEvent2HeaderStructs(HepMC::GenEvent*, THepMCParser::HeavyIonHeader_t&, THepMCParser::PdfHeader_t&, bool fillZeroOnMissingHeavyIon = true, bool fillZeroOnMissingPdf = true)
static stringParseGenEvent2TCloneArray(HepMC::GenEvent*, TClonesArray*, string momUnit = "GEV", string lenUnit = "CM", bool requireSecondMotherBeforeDaughters = false)
voidWriteTTreeToFile(const char*)
private:
static voidExploreVertex(HepMC::GenVertex*, list<HepMC::GenVertex*>&, set<int>&, bool)
static stringGetParticleName(TParticle*)
voidinit(HepMC::IO_BaseClass*)

Data Members

public:
static const char*fgHeavyIonHeaderBranchString"Ncoll_hard/I,Npart_proj,Npart_targ,Ncoll,spectator_neutrons,spectator_protons,N_Nwounded_collisions,Nwounded_N_collisions,Nwounded_Nwounded_collisions,impact_parameter/F,event_plane_angle,eccentricity,sigma_inel_NN";
static const char*fgPdfHeaderBranchString"id1/I,id2,pdf_id1,pdf_id2,x1/D,x2,scalePDF,pdf1,pdf2";
private:
TTree*fTree

Class Charts

Inheritance Chart:
THepMCParser

Function documentation

THepMCParser(const char* )
THepMCParser(HepMC::IO_BaseClass* )
void init(HepMC::IO_BaseClass* )
TTree * GetTTree()
void WriteTTreeToFile(const char* )
bool IsValidMotherDaughtersConsitency(bool useStdErr = false, bool requireSecondMotherBeforeDaughters = false)
bool IsValidParticleInvariantMass(bool useStdErr = false, bool includeStatusCode2Particles = false)
bool IsValidVertexInvariantMass(bool useStdErr = false, bool includeStatusCode2Particles = false)
string GetParticleName(TParticle* )
string ListReactionChain(TClonesArray* , Int_t )
string ParseGenEvent2TCloneArray(HepMC::GenEvent* , TClonesArray* , string momUnit = "GEV", string lenUnit = "CM", bool requireSecondMotherBeforeDaughters = false)
void ExploreVertex(HepMC::GenVertex* , list<HepMC::GenVertex*>& , set<int>& , bool )
string ParseGenEvent2HeaderStructs(HepMC::GenEvent* , THepMCParser::HeavyIonHeader_t& , THepMCParser::PdfHeader_t& , bool fillZeroOnMissingHeavyIon = true, bool fillZeroOnMissingPdf = true)
inline THepMCParser()
 Default constructor/destructor stuff, don't inherit from this class unless you handle the tree pointer
{;}
virtual ~THepMCParser()
{;}
THepMCParser(const char* )
 The actual useful constructors, either take:
  - a file name for a file with HepMC data or
  - a HepMC event data structure