ROOT logo
AliRoot » ANALYSIS » AliEventPoolSparse

class AliEventPoolSparse: public AliVEventPool

Function Members (Methods)

public:
AliEventPoolSparse()
AliEventPoolSparse(const char* name, const char* title, TChain* tagchain, Int_t dim, const char** vars, const Int_t* nbins, const Double_t* xmin = 0, const Double_t* xmax = 0, Int_t chunksize = 1024*16)
virtual~AliEventPoolSparse()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual Int_tBinNumber() const
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(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
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 voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual voidGetCurrentBin(Float_t* xbin)
TTreeFormula*GetDetCut() const
virtual Int_tGetDimension()
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
TTreeFormula*GetEventCut() const
TEntryList*GetEvents(const Double_t* x)
virtual const char*TObject::GetIconName() const
TTreeFormula*GetLHCCut() const
virtual const char*TNamed::GetName() const
virtual TChain*GetNextChain()
TEntryList*GetNextPool(Int_t i)
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
TTreeFormula**GetPoolVars() const
TTreeFormula*GetRunCut() const
TChain*GetTagChain() const
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::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 voidInit()
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)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTNamed::Print(Option_t* option = "") 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)
virtual voidAliVEventPool::SetChain(TChain* chain)
voidSetDetCut(const char* cut)
voidSetDetectorCut(AliDetectorTagCuts* cut)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetEventCut(const char* cut)
voidSetEventCut(AliEventTagCuts* cut)
voidSetLHCCut(const char* cut)
voidSetLHCCut(AliLHCTagCuts* cut)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetRunCut(const char* cut)
voidSetRunCut(AliRunTagCuts* cut)
voidSetTagChain(TChain* chain)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
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:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
voidSet(Int_t n)

Data Members

protected:
TChain*AliVEventPool::fChainChain of trees
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title
private:
Int_tfBinNumberCurrent bin
Int_tfChunkSize! Cached chunk size since the getter is protected
Int_tfCurrentBin! Current bin
TTreeFormula*fDetCutDetector-based selection
AliDetectorTagCuts*fDetectorTagCutDetectorTag class cut
TTreeFormula*fEvCutEvent-based selection
AliEventTagCuts*fEventTagCutEventTag class cut
THnSparseIfHnSparseISparse histogram to
TTreeFormula*fLHCCutLNC-based selection
AliLHCTagCuts*fLHCTagCutLHCTag class cut
Int_tfNSize of the array fPool
TEntryList**fPoolArrays of pointers to the TEntryList containing the event IDs
TTreeFormula*fRunCutRun selection
AliRunTagCuts*fRunTagCutRunTag class cut
TChain*fTagChain! Input chain of tags
TTreeFormula**fVarsArray of variables used to create the pools

Class Charts

Inheritance Chart:
TNamed
AliVEventPool
AliEventPoolSparse

Function documentation

AliEventPoolSparse()
 Default constructor. Initializes the THnSparseI,
 the initial size of the array and the array itself
AliEventPoolSparse(const char* name, const char* title, TChain* tagchain, Int_t dim, const char** vars, const Int_t* nbins, const Double_t* xmin = 0, const Double_t* xmax = 0, Int_t chunksize = 1024*16)
 Constructor. Initializes the THnSparseI,
 the initial size of the pool array and the array itself
 It uses the provided array of variables to create TTreeFormulas
 that are used when the pools are filled. This is the reason to require the input
 tag chain in the constructor.
~AliEventPoolSparse()
 Destructor. Delete the pool, the array of TTreeFormula
 and the pointers to cuts
TChain* GetNextChain()
 Return the chains one by one. The output is 0x0 if the pool is not initialized
 or the last chain is already reached
void GetCurrentBin(Float_t* xbin)
 This method fills the center of the current bin in xbin
void Init()
 Loop on the tag chain and select the events according
 to the Run, LHC, detector, and event cuts.
 Fill the THnSparse bin and add the event to the corresponding pool
 Taken and modified from AliAnalysisTag
void SetRunCut(const char* cut)
 Run selection cuts
void SetLHCCut(const char* cut)
 LHC selection cuts
void SetDetCut(const char* cut)
 Detector selection cuts
void SetEventCut(const char* cut)
 Event selection cuts
void SetRunCut(AliRunTagCuts* cut)
void SetEventCut(AliEventTagCuts* cut)
void SetDetectorCut(AliDetectorTagCuts* cut)
void SetLHCCut(AliLHCTagCuts* cut)
void Set(Int_t n)
 Set size of the array of pointers to n.
 A new array is created, the old contents copied to the new array,
 then the old array is deleted.
 This function is taken from TArrayI
AliEventPoolSparse()
Int_t GetDimension()
{return fN;}
TEntryList * GetNextPool(Int_t i)
 Returns the array associated with bin "i"
TEntryList * GetEvents(const Double_t* x)
 Returns the array associated with the bin
 that corresponds to vector "x"
void SetTagChain(TChain* chain)
 Input tag chain
TChain * GetTagChain() const
 Return the input tag chain
TTreeFormula ** GetPoolVars() const
{return fVars;}
TTreeFormula * GetRunCut() const
{return fRunCut;}
TTreeFormula * GetLHCCut() const
{return fLHCCut;}
TTreeFormula * GetDetCut() const
{return fDetCut;}
TTreeFormula * GetEventCut() const
{return fEvCut;}
Int_t BinNumber() const
{return fBinNumber;}