ROOT logo
AliRoot » PWGHF » CORRELATIONHF » AliDxHFECorrelation

class AliDxHFECorrelation: public TNamed

This file is property of and copyright by the ALICE Project
ALICE Experiment at CERN, All rights reserved.

Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no>
Sedat Altinpinar <Sedat.Altinpinar@cern.ch>
Hege Erdal       <hege.erdal@gmail.com>

Permission to use, copy, modify and distribute this software and its
documentation strictly for non-commercial purposes is hereby granted
without fee, provided that the above copyright notice appears in all
copies and that both the copyright notice and this permission notice
appear in the supporting documentation. The authors make no claims
about the suitability of this software for any purpose. It is
provided "as is" without express or implied warranty.

Function Members (Methods)

public:
AliDxHFECorrelation(const char* name = NULL)
virtual~AliDxHFECorrelation()
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 voidClear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
THnSparse*CreateControlTHnSparse(const char* name, int thnSize, int* thnBins, double* thnMin, double* thnMax, const char** binLabels) const
virtual THnSparse*DefineTHnSparse()
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidDraw(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
voidEventMixingChecks(const AliVEvent* pEvent)
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
intFill(const TObjArray* candidatesD0, const TObjArray* candidatesElectron, const AliVEvent* pEvent)
virtual voidTNamed::FillBuffer(char*& buffer)
virtual intFillParticleProperties(AliVParticle* tr, AliVParticle* as, Double_t* data, int dimension) const
virtual TObject*FindObject(const char* name) const
virtual TObject*FindObject(const TObject* obj) const
const TList*GetControlObjects() const
Double_tGetDeltaEta() const
Double_tGetDeltaPhi() const
intGetDimTHnSparse() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
Double_tGetMaxPhi() const
Double_tGetMinPhi() const
virtual const char*TNamed::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*TNamed::GetTitle() const
Int_tGetTriggerParticleType() const
virtual UInt_tTObject::GetUniqueID() const
Bool_tGetUseMC() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual intHistogramEventProperties(int bin)
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
intInit(const char* arguments = "")
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_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::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)
AliDxHFECorrelation&operator+=(const AliDxHFECorrelation& other)
virtual voidTObject::Paint(Option_t* option = "")
intParseArguments(const char* arguments)
virtual voidTObject::Pop()
virtual voidPrint(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidSaveAs(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 voidSetCuts(AliAnalysisCuts* cuts)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidSetEventType(int type)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidSetUseMC(Bool_t useMC)
virtual voidShowMembers(TMemberInspector&)
virtual Int_tTNamed::Sizeof() const
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:
intAddControlObject(TObject* pObj)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidInitTHnSparseArray(int dimension)
voidTObject::MakeZombie()
Double_t*ParticleProperties() const

Data Members

public:
enum { kEventsAll
kEventsSel
kEventsTriggered
kEventsCorrelated
kNEventControlLabels
kD
kElectron
khD0pT
khD0Phi
khD0Eta
khElectronpT
khElectronPhi
khElectronEta
kNofHistograms
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title
private:
TList*fControlObjectslist of control objects
Double_t*fCorrArray! filling array for THnSparse
THnSparse*fCorrPropertiesthe Correlation properties of selected particles
AliHFCorrelator*fCorrelator! object for correlations
AliAnalysisCuts*fCuts! Cuts
Double_tfDeltaEtaDelta Eta
Double_tfDeltaPhiDelta Phi
intfDimThnHolds dim of THnSparse
Int_tfEventTypeEvent type. Only needed for MC (fix)
TObjArray*fHistogramsthe histograms - for the moment not in use.
Double_tfMaxPhiHolds maxa phi
Double_tfMinPhiHolds min phi
Short_tfSystemWhich system pp/PbPb
Int_tfTriggerParticleTypeWhich particle to trigger on
Bool_tfUseEventMixingRun Event Mixing analysis
Bool_tfUseMCuse MC info
static const char*fgkEventControlBinNames[2147483647]
TH1*fhEventControlCorr! event control histogram (saved via control object list)

Class Charts

Inheritance Chart:
TNamed
AliDxHFECorrelation
AliDxHFECorrelationMC

Function documentation

AliDxHFECorrelation(const char* name = NULL)
 default constructor


~AliDxHFECorrelation()
 destructor


int Init(const char* arguments = "")
 Will initialize thnsparse, histogram and AliHFCorrelator

int ParseArguments(const char* arguments)
 parse arguments and set internal flags
THnSparse* DefineTHnSparse()
Defines the THnSparse. For now, only calls CreateControlTHnSparse
THnSparse* CreateControlTHnSparse(const char* name, int thnSize, int* thnBins, double* thnMin, double* thnMax, const char** binLabels) const
 Creates THnSparse.

int AddControlObject(TObject* pObj)
int HistogramEventProperties(int bin)
 histogram event properties
int Fill(const TObjArray* candidatesD0, const TObjArray* candidatesElectron, const AliVEvent* pEvent)
 will use AliHFCorrelator to process D0-electron pair and then fill THnSparse.

int FillParticleProperties(AliVParticle* tr, AliVParticle* as, Double_t* data, int dimension) const
 fill the data array from the particle data
void Clear(Option_t* option = "")
 overloaded from TObject: cleanup
void Print(Option_t* option = "") const
 overloaded from TObject: print info
void Draw(Option_t* option = "")
 overloaded from TObject: draw histograms
TObject* FindObject(const char* name) const
 overloaded from TObject: find object by name
TObject* FindObject(const TObject* obj) const
 overloaded from TObject: find object by pointer
void SaveAs(const char* filename = "", Option_t* option = "") const
 overloaded from TObject: save to file
AliDxHFECorrelation& operator+=(const AliDxHFECorrelation& other)
 add histograms from another instance
 TODO - need to change this to ThnSparse?
void EventMixingChecks(const AliVEvent* pEvent)
AliDxHFECorrelation(const char* name = NULL)
 default constructor
void SetCuts(AliAnalysisCuts* cuts)
{fCuts=cuts;}
void SetUseMC(Bool_t useMC)
void SetUseEventMixing(Bool_t useMixing) {fUseEventMixing=useMixing;}
void SetSystem(Bool_t system){fSystem=system;}
void SetPhiRange(Double_t min, Double_t max){fMinPhi=min; fMaxPhi=max;}
 TODO: SetEventType only needed for MC. How to avoid this?
{fUseMC=useMC;}
void SetEventType(int type)
{fEventType=type;}
Bool_t GetUseMC() const
{return fUseMC;}
const TList* GetControlObjects() const
{return fControlObjects;}
Double_t GetMinPhi() const
{return fMinPhi;}
Double_t GetMaxPhi() const
{return fMaxPhi;}
Double_t GetDeltaPhi() const
{return fDeltaPhi;}
Double_t GetDeltaEta() const
{return fDeltaEta;}
int GetDimTHnSparse() const
{return fDimThn;}
Int_t GetTriggerParticleType() const
void InitTHnSparseArray(int dimension)
 set the dimension of THn and allocate filling array
Double_t* ParticleProperties() const
{return fCorrArray;}
AliDxHFECorrelation& operator=(const AliDxHFECorrelation& other)
 assignment operator