ROOT logo
AliRoot » PWGPP » TPC » AliGenInfoMaker

class AliGenInfoMaker: public TObject



Origin: marian.ivanov@cern.ch

Generate complex MC information - used for Comparison later on
How to use it?


---Usage outside of the analysis framework

gSystem->Load("libANALYSIS.so")
gSystem->Load("libPWGPP.so")
AliGenInfoMaker *t = new AliGenInfoMaker("galice.root","genTracks.root",0,0)
t->Exec();


Function Members (Methods)

public:
AliGenInfoMaker()
AliGenInfoMaker(const char* fnGalice, const char* fnRes, Int_t nEvents = 1, Int_t firstEvent = 0)
virtual~AliGenInfoMaker()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
Int_tBuildKinkInfo()
Int_tBuildV0Info()
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
Int_tCloseIO()
Int_tCloseIOEvent()
voidCloseOutputFile()
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
voidCreateTreeGenTracks()
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
Int_tExec()
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
Int_tProcessEvent()
Int_tProcessEvent(AliMCEventHandler* mcinfo)
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetDebug(Int_t level)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetFirstEventNr(Int_t i)
Int_tSetIO()
Int_tSetIO(Int_t eventNr)
voidSetNEvents(Int_t i)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
Int_tTreeDLoop()
Int_tTreeKLoop()
Int_tTreeTRLoop()
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
AliGenInfoMaker(const AliGenInfoMaker&)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
AliMCInfo*GetInfo(UInt_t i) const
AliTPCParam*GetTPCParam()
AliMCInfo*MakeInfo(UInt_t i)
voidTObject::MakeZombie()
AliGenInfoMaker&operator=(const AliGenInfoMaker&)
Float_tTR2LocalX(AliTrackReference* trackRef, AliTPCParam* paramTPC) const

Data Members

protected:
Int_tfDebug! debug flag
Int_tfEventNr! current event number
TFile*fFileGenTracks! output file with stored fTreeGenTracks
Int_tfFirstEventNr! first event to process
charfFnRes[1000]! output file name with stored tracks
AliMCInfo**fGenInfo! array with pointers to gen info
TObjArray*fGenKinkArrayclones array with filtered Kinks
TObjArray*fGenTracksArrayclones array with filtered particles
TObjArray*fGenV0Arrayclones array with filtered V0s
Double_tfITSPtCutdo not store particles with generated pT less than this
Int_tfLabel! track label
AliRunLoader*fLoader! pointer to the run loader
Int_tfNEvents! number of events to process
Int_tfNInfos! number of tracks with infos
UInt_tfNParticles! number of particles in TreeK
AliTPCParam*fParamTPC! AliTPCParam
AliStack*fStack! current stack
Double_tfTOFPtCutdo not store particles with generated pT less than this
Double_tfTPCPtCutdo not store particles with generated pT less than this
Double_tfTRDPtCutdo not store particles with generated pT less than this
TTree*fTreeD! current tree with digits
TTree*fTreeGenTracks! output tree with generated tracks
TTree*fTreeKinks! output tree with Kinks
TTree*fTreeTR! current tree with TR
TTree*fTreeV0! output tree with V0
Float_tfVPrim[3]! primary vertex position // the fVDist[3] contains size of the 3-vector

Class Charts

Inheritance Chart:
TObject
AliGenInfoMaker

Function documentation

AliGenInfoMaker()
AliGenInfoMaker(const char* fnGalice, const char* fnRes, Int_t nEvents = 1, Int_t firstEvent = 0)


~AliGenInfoMaker()
 Destructor

AliMCInfo * MakeInfo(UInt_t i)
 Make info structure for given particle index

Int_t ProcessEvent(AliMCEventHandler* mcinfo)
 Process MC info from the task

Int_t ProcessEvent()
 Process Event

Int_t SetIO()
 Set IO for given event

Int_t SetIO(Int_t eventNr)

 SET INPUT
Int_t CloseIOEvent()
 Close IO for current event

Int_t CloseIO()
Int_t Exec()
 Make a comparision MC tree
 Connect MC information -TPArticle - AliTrackRefernces ...

void CreateTreeGenTracks()


void CloseOutputFile()
 Close Output files

Int_t TreeKLoop()
 open the file with treeK
 loop over all entries there and save information about some tracks

Int_t BuildKinkInfo()
 Build tree with Kink Information

Int_t BuildV0Info()
 Build tree with V0 Information

Int_t TreeDLoop()
 open the file with treeD
 loop over all entries there and save information about some tracks

Int_t TreeTRLoop()
 loop over TrackReferences and store the first one for each track

Float_t TR2LocalX(AliTrackReference* trackRef, AliTPCParam* paramTPC) const
 Transformation from Gloabal to local tacking system

{ trackRef->X(),trackRef->Y(),trackRef->Z()}
AliTPCParam * GetTPCParam()
 create default TPC parameters

AliGenInfoMaker()
void SetFirstEventNr(Int_t i)
void SetNEvents(Int_t i)
{fNEvents = i;}
void SetDebug(Int_t level)
{fDebug = level;}
AliGenInfoMaker& operator=(const AliGenInfoMaker& )
{ return *this;}
AliMCInfo * GetInfo(UInt_t i) const
{return (i<fNParticles)? fGenInfo[i]:0;}