ROOT logo
AliRoot » PWG » CALOTRACKCORRBASE » AliMCAnalysisUtils

class AliMCAnalysisUtils: public TObject

 Class for analysis utils for MC data
 stored in stack or event header.
 Contains:
  - method to check the origin of a given track/cluster
  - method to obtain the generated jets

*-- Author: Gustavo Conesa (LNF-INFN)

Function Members (Methods)

public:
AliMCAnalysisUtils()
virtual~AliMCAnalysisUtils()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
Int_tCheckCommonAncestor(Int_t index1, Int_t index2, const AliCaloTrackReader* reader, Int_t& ancPDG, Int_t& ancStatus, TLorentzVector& momentum, TVector3& v)
voidCheckLostDecayPair(const TObjArray* arrayCluster, Int_t iMom, Int_t iParent, AliStack* stack, Int_t& tag)
voidCheckLostDecayPair(const TObjArray* arrayCluster, Int_t iMom, Int_t iParent, const TClonesArray* mcparticles, Int_t& tag)
Int_tCheckOrigin(Int_t label, const AliCaloTrackReader* reader, Int_t calorimeter)
Int_tCheckOrigin(const Int_t* label, Int_t nlabels, const AliCaloTrackReader* reader, Int_t calorimeter)
Int_tCheckOriginInAOD(const Int_t* labels, Int_t nlabels, const TClonesArray* mcparticles, const TObjArray* arrayCluster)
Int_tCheckOriginInStack(const Int_t* labels, Int_t nlabels, AliStack* stack, const TObjArray* arrayCluster)
voidCheckOverlapped2GammaDecay(const Int_t* labels, Int_t nlabels, Int_t mesonIndex, AliStack* stack, Int_t& tag)
voidCheckOverlapped2GammaDecay(const Int_t* labels, Int_t nlabels, Int_t mesonIndex, const TClonesArray* mcparticles, Int_t& tag)
Bool_tCheckTagBit(Int_t tag, UInt_t test) const
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
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
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
TLorentzVectorGetDaughter(Int_t daughter, Int_t label, const AliCaloTrackReader* reader, Int_t& pdg, Int_t& status, Bool_t& ok, Int_t& daugLabel)
Int_tGetDebug() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
TLorentzVectorGetGrandMother(Int_t label, const AliCaloTrackReader* reader, Int_t& pdg, Int_t& status, Bool_t& ok, Int_t& grandMomLabel, Int_t& greatMomLabel)
virtual const char*TObject::GetIconName() const
TList*GetJets(const AliCaloTrackReader* reader)
voidGetMCDecayAsymmetryAngleForPDG(Int_t label, Int_t pdg, const AliCaloTrackReader* reader, Float_t& asy, Float_t& angle, Bool_t& ok)
Int_tGetMCGenerator() const
TStringGetMCGeneratorString() const
TLorentzVectorGetMother(Int_t label, const AliCaloTrackReader* reader, Bool_t& ok)
TLorentzVectorGetMother(Int_t label, const AliCaloTrackReader* reader, Int_t& pdg, Int_t& status, Bool_t& ok)
TLorentzVectorGetMother(Int_t label, const AliCaloTrackReader* reader, Int_t& pdg, Int_t& status, Bool_t& ok, Int_t& momLabel)
TLorentzVectorGetMotherWithPDG(Int_t label, Int_t pdg, const AliCaloTrackReader* reader, Bool_t& ok, Int_t& momLabel)
virtual const char*TObject::GetName() const
Int_tGetNDaughters(Int_t label, const AliCaloTrackReader* reader, Bool_t& ok)
Int_tGetNOverlaps(const Int_t* label, UInt_t nlabels, Int_t mctag, Int_t mesonLabel, AliCaloTrackReader* reader, Int_t* overpdg)
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 voidPrint(Option_t* opt) const
voidPrintMCTag(Int_t tag) const
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 deb)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetMCGenerator(Int_t mcgen)
voidSetMCGenerator(TString mcgen)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetTagBit(Int_t& tag, UInt_t set) const
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
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:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

public:
enum mcTypes { kMCPhoton
kMCPrompt
kMCFragmentation
kMCISR
kMCPi0Decay
kMCEtaDecay
kMCOtherDecay
kMCDecayPairLost
kMCDecayPairInCalo
kMCDecayDalitz
kMCConversion
kMCElectron
kMCEFromCFromB
kMCEFromC
kMCEFromB
kMCZDecay
kMCWDecay
kMCMuon
kMCPion
kMCPi0
kMCKaon
kMCEta
kMCProton
kMCAntiProton
kMCNeutron
kMCAntiNeutron
kMCUnknown
kMCBadLabel
};
enum generator { kPythia
kHerwig
kHijing
kBoxLike
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
private:
Int_tfCurrentEventCurrent Event
TLorentzVectorfDaughMom! particle momentum
TLorentzVectorfDaughMom2! particle momentum
Int_tfDebugDebug level
TLorentzVectorfGMotherMom! particle momentum
TList*fJetsListList of jets
Int_tfMCGeneratorMC generator used to generate data in simulation
TStringfMCGeneratorStringMC generator used to generate data in simulation
TLorentzVectorfMotherMom! particle momentum

Class Charts

Inheritance Chart:
TObject
AliMCAnalysisUtils

Function documentation

AliMCAnalysisUtils()
Ctor
~AliMCAnalysisUtils()
 Remove all pointers.
Int_t CheckCommonAncestor(Int_t index1, Int_t index2, const AliCaloTrackReader* reader, Int_t& ancPDG, Int_t& ancStatus, TLorentzVector& momentum, TVector3& v)
 Check the first common ancestor of 2 clusters, given the most likely labels of the primaries generating such clusters.
Int_t CheckOrigin(const Int_t* label, Int_t nlabels, const AliCaloTrackReader* reader, Int_t calorimeter)
 Play with the montecarlo particles if available.
Int_t CheckOrigin(Int_t label, const AliCaloTrackReader* reader, Int_t calorimeter)
 Play with the montecarlo particles if available.
Int_t CheckOriginInStack(const Int_t* labels, Int_t nlabels, AliStack* stack, const TObjArray* arrayCluster)
 Play with the MC stack if available. Tag particles depending on their origin.
 Do same things as in CheckOriginInAOD but different input.
Int_t CheckOriginInAOD(const Int_t* labels, Int_t nlabels, const TClonesArray* mcparticles, const TObjArray* arrayCluster)
 Play with the MCParticles in AOD if available. Tag particles depending on their origin.
 Do same things as in CheckOriginInStack but different input.
void CheckOverlapped2GammaDecay(const Int_t* labels, Int_t nlabels, Int_t mesonIndex, AliStack* stack, Int_t& tag)
 Check if cluster is formed from the contribution of 2 decay photons from pi0 or eta. Input in stack.
void CheckOverlapped2GammaDecay(const Int_t* labels, Int_t nlabels, Int_t mesonIndex, const TClonesArray* mcparticles, Int_t& tag)
 Check if cluster is formed from the contribution of 2 decay photons from pi0 or eta. Input in AODMCParticles.
void CheckLostDecayPair(const TObjArray* arrayCluster, Int_t iMom, Int_t iParent, AliStack* stack, Int_t& tag)
 Check on ESDs if the current decay photon has the second photon companion lost.
void CheckLostDecayPair(const TObjArray* arrayCluster, Int_t iMom, Int_t iParent, const TClonesArray* mcparticles, Int_t& tag)
 Check on AODs if the current decay photon has the second photon companion lost.
TList * GetJets(const AliCaloTrackReader* reader)
 Return list of jets (TParticles) and index of most likely parton that originated it.
TLorentzVector GetDaughter(Int_t daughter, Int_t label, const AliCaloTrackReader* reader, Int_t& pdg, Int_t& status, Bool_t& ok, Int_t& daugLabel)
 Return the kinematics of the particle that generated the signal, its pdg and its status and its label mother.
TLorentzVector GetMother(Int_t label, const AliCaloTrackReader* reader, Bool_t& ok)
 Return the kinematics of the particle that generated the signal.
TLorentzVector GetMother(Int_t label, const AliCaloTrackReader* reader, Int_t& pdg, Int_t& status, Bool_t& ok)
 Return the kinematics of the particle that generated the signal.
TLorentzVector GetMother(Int_t label, const AliCaloTrackReader* reader, Int_t& pdg, Int_t& status, Bool_t& ok, Int_t& momLabel)
 Return the kinematics of the particle that generated the signal, its pdg and its status and its label mother.
TLorentzVector GetMotherWithPDG(Int_t label, Int_t pdg, const AliCaloTrackReader* reader, Bool_t& ok, Int_t& momLabel)
 Return the kinematics of the particle that generated the signal.
TLorentzVector GetGrandMother(Int_t label, const AliCaloTrackReader* reader, Int_t& pdg, Int_t& status, Bool_t& ok, Int_t& grandMomLabel, Int_t& greatMomLabel)
 Return the kinematics of the particle that generated the signal.
void GetMCDecayAsymmetryAngleForPDG(Int_t label, Int_t pdg, const AliCaloTrackReader* reader, Float_t& asy, Float_t& angle, Bool_t& ok)
 In case of an eta or pi0 decay into 2 photons, get the asymmetry  in the energy of the photons.
Int_t GetNDaughters(Int_t label, const AliCaloTrackReader* reader, Bool_t& ok)
 Return the the number of daughters of a given MC particle.
Int_t GetNOverlaps(const Int_t* label, UInt_t nlabels, Int_t mctag, Int_t mesonLabel, AliCaloTrackReader* reader, Int_t* overpdg)
 Compare the primary depositing more energy with the rest,
 if no photon/electron (conversion) or neutral meson as comon ancestor, consider it as other particle contributing.
 Give as input the meson label in case it was a pi0 or eta merged cluster.
 Init overpdg with nlabels.
void Print(Option_t* opt) const
 Print some relevant parameters set for the analysis.
void PrintMCTag(Int_t tag) const
 Print the assigned origins to this particle.
void SetMCGenerator(Int_t mcgen)
 Set the generator type.
void SetMCGenerator(TString mcgen)
 Set the generator type.
AliMCAnalysisUtils()
void SetTagBit(Int_t& tag, UInt_t set) const
Check or set the bits produced in the above methods
Bool_t CheckTagBit(Int_t tag, UInt_t test) const
 Check if in tag the bit test (mcTypes) is set.
void SetDebug(Int_t deb)
{ fDebug=deb ; }
Int_t GetDebug() const
{ return fDebug ; }
Int_t GetMCGenerator() const
{ return fMCGenerator ; }
TString GetMCGeneratorString() const
{ return fMCGeneratorString ; }