ROOT logo
AliRoot » STEER » STEERBASE » AliMCEventHandler

class AliMCEventHandler: public AliInputEventHandler

Function Members (Methods)

public:
AliMCEventHandler()
AliMCEventHandler(const char* name, const char* title)
virtual~AliMCEventHandler()
voidTObject::AbstractMethod(const char* method) const
virtual voidAddSubsidiaryHandler(AliMCEventHandler* handler)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual Bool_tBeginEvent(Long64_t entry)
virtual voidTObject::Browse(TBrowser* b)
voidAliVEventHandler::Changed()
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
voidCreateLabelMap()
virtual voidAliInputEventHandler::CreatePIDResponse(Bool_t = kFALSE)
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
voidDrawCheck(Int_t i, Int_t search = 0)
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 Bool_tFinishEvent()
virtual Option_t*AliInputEventHandler::GetAnalysisType() const
virtual Option_t*AliVEventHandler::GetDataType() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual Bool_tGetEntry()
virtual AliVEvent*AliInputEventHandler::GetEvent() const
virtual AliVCuts*AliInputEventHandler::GetEventSelection() const
virtual const AliEventTag*AliInputEventHandler::GetEventTag() const
virtual const char*AliVEventHandler::GetExtraOutputs(Bool_t merge = kFALSE) const
virtual Bool_tAliVEventHandler::GetFillAOD() const
virtual Bool_tAliVEventHandler::GetFillExtension() const
virtual const char*TObject::GetIconName() const
virtual const char*AliInputEventHandler::GetInputFileName() const
virtual TString*GetInputPath() const
virtual const char*TNamed::GetName() const
Int_tGetNewLabel(Int_t i)
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*GetOutputFileName() const
Int_tGetParticleAndTR(Int_t i, TParticle*& particle, TClonesArray*& trefs)
virtual AliPIDResponse*AliInputEventHandler::GetPIDResponse()
virtual Long64_tAliInputEventHandler::GetReadEntry() const
virtual AliRunTag*AliInputEventHandler::GetRunTag() const
virtual TObject*AliInputEventHandler::GetStatistics(Option_t* option = "") const
virtual const char*TNamed::GetTitle() const
virtual TTree*GetTree() const
virtual UInt_tTObject::GetUniqueID() const
virtual TList*AliInputEventHandler::GetUserInfo() 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 Bool_tInit(Option_t* opt)
virtual Bool_tInit(TTree*, Option_t*)
virtual Bool_tInitIO(Option_t* opt)
Bool_tInitOk() const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tAliInputEventHandler::IsCheckStatistics() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual UInt_tAliInputEventHandler::IsEventSelected()
virtual Bool_tTObject::IsFolder() const
Bool_tAliVEventHandler::IsLocked() const
Bool_tTObject::IsOnHeap() const
Bool_tIsParticleSelected(Int_t i)
virtual Bool_tTNamed::IsSortable() const
virtual Bool_tAliInputEventHandler::IsUserCallSelectionMask() const
Bool_tTObject::IsZombie() const
virtual Bool_tLoadEvent(Int_t iev)
voidAliVEventHandler::Lock()
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual AliMCEvent*MCEvent() const
AliInputEventHandler*AliInputEventHandler::MixingHandler()
virtual Bool_tAliInputEventHandler::NeedField() const
virtual Bool_tAliInputEventHandler::NewEvent()
virtual Bool_tNotify()
virtual Bool_tNotify(const char* path)
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 = "")
AliInputEventHandler*AliInputEventHandler::ParentHandler()
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 voidResetIO()
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidSelectParticle(Int_t i)
voidAliInputEventHandler::SetActiveBranches(const char* branches)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidSetCacheSize(Long64_t size)
virtual voidAliInputEventHandler::SetCheckStatistics(Bool_t flag = kTRUE)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidAliInputEventHandler::SetEventSelection(AliVCuts* cuts)
virtual voidAliVEventHandler::SetFillAOD(Bool_t)
virtual voidAliVEventHandler::SetFillExtension(Bool_t)
voidAliInputEventHandler::SetInactiveBranches(const char* branches)
virtual voidAliInputEventHandler::SetInputFileName(const char* fname)
virtual voidSetInputPath(const char* fname)
virtual voidSetInputTree(TTree*)
voidAliInputEventHandler::SetMixingHandler(AliInputEventHandler* mixing)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
virtual voidAliInputEventHandler::SetNeedField(Bool_t flag = kTRUE)
virtual voidSetNumberOfEventsInContainer(Int_t nev)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidSetOutputFileName(const char*)
voidAliInputEventHandler::SetParentHandler(AliInputEventHandler* parent)
virtual voidSetPreReadMode(AliMCEventHandler::PreReadMode_t mode)
virtual voidSetReadTR(Bool_t flag)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidAliInputEventHandler::SetUserCallSelectionMask(Bool_t flag = kTRUE)
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
virtual Bool_tTerminate()
virtual Bool_tTerminateIO()
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
TTree*TreeK() const
TTree*TreeTR() const
voidAliVEventHandler::UnLock()
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()
voidAliInputEventHandler::SwitchOffBranches() const
voidAliInputEventHandler::SwitchOnBranches() const

Data Members

public:
enum PreReadMode_t { kNoPreRead
kLmPreRead
kHmPreRead
};
enum AliInputEventHandler::EInputHandlerFlags { kUserCallSelectionMask
kCheckStatistics
kNeedField
};
enum AliVEventHandler::EEventHandlerFlags { kHandlerLocked
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
TStringAliInputEventHandler::fBranchesList of branches to be switched off (separated by space)
TStringAliInputEventHandler::fBranchesOnList of branches to be switched on (separated by space)
AliVCuts*AliInputEventHandler::fEventCutsCuts on the event level
TStringAliInputEventHandler::fInputFileNameName of the input file
UInt_tAliInputEventHandler::fIsSelectedResultSelection result
AliInputEventHandler*AliInputEventHandler::fMixingHandlerOptionla plugin for mixing
TStringTNamed::fNameobject identifier
Bool_tAliInputEventHandler::fNewEventNew event flag
AliInputEventHandler*AliInputEventHandler::fParentHandleroptional pointer to parent handlers (used in AliMultiInputEventHandler)
TStringTNamed::fTitleobject title
TTree*AliInputEventHandler::fTree! Pointer to the tree
TList*AliInputEventHandler::fUserInfo! transient user info for current tree
private:
Long64_tfCacheSizeCache size for kinematics tree
TTreeCache*fCacheTK! Cache for kinematics tree
TTreeCache*fCacheTR! Cache for track references tree
TDirectoryFile*fDirK! Directory for Kine Tree
TDirectoryFile*fDirTR! Directory for TR Tree
Int_tfEvent! Current event
Int_tfEventsInContainer! Number of events in container class
Int_tfEventsPerFile! Number of events per file
TFile*fFileE! File with TreeE
TFile*fFileK! File with TreeK
Int_tfFileNumber! Input file number
TFile*fFileTR! File with TreeTR
Bool_tfInitOkInitialization ok
TExMapfLabelMap! Stores the Map of MC (ESDLabel,AODlabel)
AliMCEvent*fMCEvent! MC Event
Int_tfNEvent! Number of events
TExMapfParticleSelected! List of selected MC particles for t
TString*fPathName! Input file path
AliMCEventHandler::PreReadMode_tfPreReadModePre reading mode
Bool_tfReadTRdetermines if TR shall be read
TList*fSubsidiaryHandlers! List of subsidiary MC handlers (for example for Background)
TTree*fTreeE! TreeE (Event Headers)
TTree*fTreeK! TreeK (kinematics tree)
TTree*fTreeTR! TreeTR (track references tree)
const Char_t*fkExtension! File name extension

Class Charts

Inheritance Chart:
TNamed
AliVEventHandler
AliInputEventHandler
AliMCEventHandler
AliMCAuxHandler

Function documentation

AliMCEventHandler()
 Default constructor

 Be sure to add all particles to the PDG database
AliMCEventHandler(const char* name, const char* title)
 Constructor

 Be sure to add all particles to the PDG database
~AliMCEventHandler()
 Destructor
Bool_t Init(Option_t* opt)
 Initialize input

Bool_t LoadEvent(Int_t iev)
 Load the event number iev

 Calculate the file number
Bool_t OpenFile(Int_t i)
 Open file i
Bool_t BeginEvent(Long64_t entry)
 Begin event
void SelectParticle(Int_t i)
 taking the absolute values here, need to take care
 of negative daughter and mother
 IDs when setting!
Bool_t IsParticleSelected(Int_t i)
 taking the absolute values here, need to take
 care with negative daughter and mother
 IDs when setting!
void CreateLabelMap()
Int_t GetNewLabel(Int_t i)
 Gets the label from the new created Map
 Call CreatLabelMap before
 otherwise only 0 returned
void VerifySelectedParticles()
Int_t GetParticleAndTR(Int_t i, TParticle*& particle, TClonesArray*& trefs)
 Retrieve entry i
void DrawCheck(Int_t i, Int_t search = 0)
 Retrieve entry i and draw momentum vector and hits
Bool_t Notify(const char* path)
 Notify about directory change
 The directory is taken from the 'path' argument
 Reconnect trees
void ResetIO()
  Clear header and stack
Bool_t FinishEvent()
 Clean-up after each event
Bool_t Terminate()
 Dummy
Bool_t TerminateIO()
 Dummy
void SetInputPath(const char* fname)
 Set the input path name
void AddSubsidiaryHandler(AliMCEventHandler* handler)
 Add a subsidiary handler. For example for background events
AliMCEventHandler()
void SetOutputFileName(const char* )
{;}
const char* GetOutputFileName() const
{return 0;}
void SetInputTree(TTree* )
{;}
TString* GetInputPath() const
{return fPathName;}
Bool_t Init(Option_t* opt)
Bool_t GetEntry()
{return kTRUE;}
Bool_t InitIO(Option_t* opt)
{return Init(opt);}
Bool_t Notify()
{ return AliVEventHandler::Notify(); }
void SetReadTR(Bool_t flag)
{ Changed(); fReadTR = flag; }
void SetNumberOfEventsInContainer(Int_t nev)
void SetPreReadMode(AliMCEventHandler::PreReadMode_t mode)
{Changed(); fPreReadMode = mode;}
void SetCacheSize(Long64_t size)
{if (fCacheSize==0) fCacheSize = size;}
TTree* TreeTR() const
{return fTreeTR;}
TTree* TreeK() const
{return fTreeK;}
TTree* GetTree() const
{return fTreeE;}
Bool_t InitOk() const
 Label manipulation
{return fInitOk;}
AliMCEventHandler& operator=(const AliMCEventHandler& handler)