ROOT logo
AliRoot » PWGUD » BASE » AliPWG0Helper

class AliPWG0Helper: public TObject

Function Members (Methods)

public:
~AliPWG0Helper()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
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
static voidCreateDividedProjections(TH3* hist, TH3* hist2, const char* axis = 0, Bool_t putErrors = kFALSE, Bool_t save = kFALSE)
static voidCreateProjections(TH3* hist, Bool_t save = kFALSE)
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
static TParticle*FindPrimaryMother(AliStack* stack, Int_t label)
static Int_tFindPrimaryMotherLabel(AliStack* stack, Int_t label)
static const char*GetAxisTitle(TH3* hist, const char axis)
static AliPWG0Helper::MCProcessTypeGetDPMjetEventProcessType(AliGenEventHeader* aHeader, Bool_t adebug = kFALSE)
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
static AliPWG0Helper::MCProcessTypeGetEventProcessType(AliHeader* aHeader, Bool_t adebug = kFALSE)
static AliPWG0Helper::MCProcessTypeGetEventProcessType(AliESDEvent* esd, AliHeader* header, AliStack* stack, AliPWG0Helper::DiffTreatment diffTreatment)
virtual const char*TObject::GetIconName() const
static Int_tGetLastProcessType()
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
static AliPWG0Helper::MCProcessTypeGetPythiaEventProcessType(AliGenEventHeader* aHeader, Bool_t adebug = kFALSE)
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
static const AliESDVertex*GetVertex(const AliESDEvent* aEsd, AliPWG0Helper::AnalysisMode analysisMethod, Bool_t debug = kFALSE)
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
static Bool_tIsHadronLevelSingleDiffractive(AliStack* stack, Float_t cms, Float_t xiMin, Float_t xiMax)
Bool_tTObject::IsOnHeap() const
static Bool_tIsPrimaryCharged(TParticle* aParticle, Int_t aTotalPrimaries, Bool_t adebug = kFALSE)
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
static voidNormalizeToBinWidth(TH1* hist)
static voidNormalizeToBinWidth(TH2* hist)
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
static voidPrintConf(AliPWG0Helper::AnalysisMode analysisMode, AliTriggerAnalysis::Trigger trigger, AliPWG0Helper::DiffTreatment diffTreatment)
static Double_tRapidity(Double_t pt, Double_t pz, Double_t m)
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)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
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
static Bool_tTestVertex(const AliESDVertex* vertex, AliPWG0Helper::AnalysisMode analysisMode, Bool_t debug = kFALSE)
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 AnalysisMode { kInvalid
kSPD
kTPC
kTPCITS
kFieldOn
kSPDOnlyL0
kTPCSPD
};
enum MCProcessType { kInvalidProcess
kND
kDD
kSD
kOnePart
};
enum DiffTreatment { kMCFlags
kUA5Cuts
kE710Cuts
kALICEHadronLevel
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
static Int_tfgLastProcessTypestores the raw value of the last process type extracted

Class Charts

Inheritance Chart:
TObject
AliPWG0Helper

Function documentation

Bool_t TestVertex(const AliESDVertex* vertex, AliPWG0Helper::AnalysisMode analysisMode, Bool_t debug = kFALSE)
 Checks if a vertex meets the needed quality criteria
const AliESDVertex* GetVertex(const AliESDEvent* aEsd, AliPWG0Helper::AnalysisMode analysisMethod, Bool_t debug = kFALSE)
 Get the vertex from the ESD and returns it if the vertex is valid

 Second argument decides which vertex is used (this selects
 also the quality criteria that are applied)
Bool_t IsPrimaryCharged(TParticle* aParticle, Int_t aTotalPrimaries, Bool_t adebug = kFALSE)
 this function checks if a particle from the event generator (i.e. among the nPrim particles in the stack)
 shall be counted as a primary particle

 This function or a equivalent should be available in some common place of AliRoot

 WARNING: Call this function only for particles that are among the particles from the event generator!
 --> stack->Particle(id) with id < stack->GetNprimary()
void CreateProjections(TH3* hist, Bool_t save = kFALSE)
 create projections of 3d hists to all 2d combinations
 the histograms are not returned, just use them from memory or use this to create them in a file
void CreateDividedProjections(TH3* hist, TH3* hist2, const char* axis = 0, Bool_t putErrors = kFALSE, Bool_t save = kFALSE)
 create projections of the 3d hists divides them
 axis decides to which plane, if axis is 0 to all planes
 the histograms are not returned, just use them from memory or use this to create them in a file
const char* GetAxisTitle(TH3* hist, const char axis)
 returns the title of the axis given in axis (x, y, z)
TParticle* FindPrimaryMother(AliStack* stack, Int_t label)
 Finds the first mother among the primary particles of the particle identified by <label>,
 i.e. the primary that "caused" this particle

Int_t FindPrimaryMotherLabel(AliStack* stack, Int_t label)
 Finds the first mother among the primary particles of the particle identified by <label>,
 i.e. the primary that "caused" this particle

 returns its label

void NormalizeToBinWidth(TH1* hist)
 normalizes a 1-d histogram to its bin width

void NormalizeToBinWidth(TH2* hist)
 normalizes a 2-d histogram to its bin width (x width * y width)

void PrintConf(AliPWG0Helper::AnalysisMode analysisMode, AliTriggerAnalysis::Trigger trigger, AliPWG0Helper::DiffTreatment diffTreatment)
 Prints the given configuration

Double_t Rapidity(Double_t pt, Double_t pz, Double_t m)
 calculates rapidity keeping the sign in case E == pz

Bool_t IsHadronLevelSingleDiffractive(AliStack* stack, Float_t cms, Float_t xiMin, Float_t xiMax)
 return if process is single diffractive on hadron level

 xiMax and xiMin cut on M^2/s

 Based on code from Martin Poghoysan

MCProcessType GetEventProcessType(AliESDEvent* esd, AliHeader* header, AliStack* stack, AliPWG0Helper::DiffTreatment diffTreatment)
MCProcessType GetEventProcessType(AliHeader* aHeader, Bool_t adebug = kFALSE)
MCProcessType GetPythiaEventProcessType(AliGenEventHeader* aHeader, Bool_t adebug = kFALSE)
MCProcessType GetDPMjetEventProcessType(AliGenEventHeader* aHeader, Bool_t adebug = kFALSE)
Int_t GetLastProcessType()
{ return fgLastProcessType; }
AliPWG0Helper(const AliPWG0Helper& )
AliPWG0Helper& operator=(const AliPWG0Helper& )