AliRoot Core  edcc906 (edcc906)
AliMCEventHandler Class Reference

#include <AliMCEventHandler.h>

Inheritance diagram for AliMCEventHandler:

Public Types

enum  PreReadMode_t { kNoPreRead = 0, kLmPreRead = 1, kHmPreRead = 2 }
 
- Public Types inherited from AliInputEventHandler
enum  EInputHandlerFlags { kUserCallSelectionMask = BIT(14), kCheckStatistics = BIT(15), kNeedField = BIT(16) }
 
- Public Types inherited from AliVEventHandler
enum  EEventHandlerFlags { kHandlerLocked = BIT(14) }
 

Public Member Functions

 AliMCEventHandler ()
 
 AliMCEventHandler (const char *name, const char *title)
 
virtual ~AliMCEventHandler ()
 
virtual void SetOutputFileName (const char *)
 
virtual const char * GetOutputFileName () const
 
virtual void SetInputPath (const char *fname)
 
virtual void SetInputTree (TTree *)
 
virtual TString * GetInputPath () const
 
virtual Bool_t Init (Option_t *opt)
 
virtual Bool_t GetEntry ()
 
virtual Bool_t InitIO (Option_t *opt)
 
virtual Bool_t Init (TTree *, Option_t *)
 
virtual Bool_t BeginEvent (Long64_t entry)
 
virtual Bool_t Notify ()
 
virtual Bool_t Notify (const char *path)
 
virtual Bool_t FinishEvent ()
 
virtual Bool_t Terminate ()
 
virtual Bool_t TerminateIO ()
 
virtual void ResetIO ()
 
virtual Bool_t LoadEvent (Int_t iev)
 
virtual void SetReadTR (Bool_t flag)
 
virtual void AddSubsidiaryHandler (AliMCEventHandler *handler)
 
virtual void SetNumberOfEventsInContainer (Int_t nev)
 
virtual void SetPreReadMode (PreReadMode_t mode)
 
virtual void SetCacheSize (Long64_t size)
 
AliVEventGetEvent () const
 
AliMCEventMCEvent () const
 
TTree * TreeTR () const
 
TTree * TreeK () const
 
virtual TTree * GetTree () const
 
Int_t GetParticleAndTR (Int_t i, TParticle *&particle, TClonesArray *&trefs)
 
void DrawCheck (Int_t i, Int_t search=0)
 
Bool_t InitOk () const
 
void SelectParticle (Int_t i)
 
Bool_t IsParticleSelected (Int_t i)
 
void CreateLabelMap ()
 
Int_t GetNewLabel (Int_t i)
 
- Public Member Functions inherited from AliInputEventHandler
 AliInputEventHandler ()
 
 AliInputEventHandler (const char *name, const char *title)
 
virtual ~AliInputEventHandler ()
 
virtual void SetInputFileName (const char *fname)
 
virtual const char * GetInputFileName () const
 
virtual Bool_t NeedField () const
 
virtual void SetEventSelection (AliVCuts *cuts)
 
virtual void SetUserCallSelectionMask (Bool_t flag=kTRUE)
 
virtual void SetCheckStatistics (Bool_t flag=kTRUE)
 
virtual void SetNeedField (Bool_t flag=kTRUE)
 
void SetInactiveBranches (const char *branches)
 
void SetActiveBranches (const char *branches)
 
virtual const AliEventTagGetEventTag () const
 
virtual AliRunTagGetRunTag () const
 
virtual TObject * GetStatistics (Option_t *option="") const
 
virtual Option_t * GetAnalysisType () const
 
virtual AliVCutsGetEventSelection () const
 
virtual Long64_t GetReadEntry () const
 
virtual Bool_t IsCheckStatistics () const
 
virtual Bool_t IsUserCallSelectionMask () const
 
virtual Bool_t NewEvent ()
 
virtual UInt_t IsEventSelected ()
 
TList * GetUserInfo () const
 
void SetMixingHandler (AliInputEventHandler *mixing)
 
AliInputEventHandlerMixingHandler ()
 
void SetParentHandler (AliInputEventHandler *parent)
 
AliInputEventHandlerParentHandler ()
 
virtual AliPIDResponseGetPIDResponse ()
 
virtual void CreatePIDResponse (Bool_t=kFALSE)
 
- Public Member Functions inherited from AliVEventHandler
 AliVEventHandler ()
 
 AliVEventHandler (const char *name, const char *title)
 
virtual ~AliVEventHandler ()
 
virtual Option_t * GetDataType () const
 
virtual Bool_t GetFillAOD () const
 
virtual Bool_t GetFillExtension () const
 
virtual void SetFillAOD (Bool_t)
 
virtual void SetFillExtension (Bool_t)
 
virtual const char * GetExtraOutputs (Bool_t merge=kFALSE) const
 
Bool_t IsLocked () const
 
void Lock ()
 
void UnLock ()
 
void Changed ()
 
virtual Bool_t InitTaskInputData (AliVEvent *, AliVfriendEvent *, TObjArray *)
 
virtual AliVfriendEventGetVfriendEvent () const
 

Private Member Functions

Bool_t OpenFile (Int_t i)
 
void VerifySelectedParticles ()
 
 AliMCEventHandler (const AliMCEventHandler &handler)
 
AliMCEventHandleroperator= (const AliMCEventHandler &handler)
 

Private Attributes

AliMCEventfMCEvent
 
TFile * fFileE
 MC Event. More...
 
TFile * fFileK
 File with TreeE. More...
 
TFile * fFileTR
 File with TreeK. More...
 
TTree * fTreeE
 File with TreeTR. More...
 
TTree * fTreeK
 TreeE (Event Headers) More...
 
TTree * fTreeTR
 TreeK (kinematics tree) More...
 
TDirectoryFile * fDirK
 TreeTR (track references tree) More...
 
TDirectoryFile * fDirTR
 Directory for Kine Tree. More...
 
TExMap fParticleSelected
 Directory for TR Tree. More...
 
TExMap fLabelMap
 List of selected MC particles for t. More...
 
Int_t fNEvent
 Stores the Map of MC (ESDLabel,AODlabel) More...
 
Int_t fEvent
 Number of events. More...
 
TString * fPathName
 Current event. More...
 
const Char_t * fkExtension
 Input file path. More...
 
Int_t fFileNumber
 File name extension. More...
 
Int_t fEventsPerFile
 Input file number. More...
 
Bool_t fReadTR
 Number of events per file. More...
 
Bool_t fInitOk
 
TList * fSubsidiaryHandlers
 
Int_t fEventsInContainer
 List of subsidiary MC handlers (for example for Background) More...
 
PreReadMode_t fPreReadMode
 Number of events in container class. More...
 
Long64_t fCacheSize
 
TTreeCache * fCacheTK
 
TTreeCache * fCacheTR
 Cache for kinematics tree. More...
 

Additional Inherited Members

- Protected Member Functions inherited from AliInputEventHandler
void SwitchOffBranches () const
 
void SwitchOnBranches () const
 
- Protected Attributes inherited from AliInputEventHandler
TTree * fTree
 
TString fBranches
 Pointer to the tree. More...
 
TString fBranchesOn
 
TString fInputFileName
 
Bool_t fNewEvent
 
AliVCutsfEventCuts
 
UInt_t fIsSelectedResult
 
AliInputEventHandlerfMixingHandler
 
AliInputEventHandlerfParentHandler
 
TList * fUserInfo
 

Detailed Description

Definition at line 36 of file AliMCEventHandler.h.

Member Enumeration Documentation

Enumerator
kNoPreRead 
kLmPreRead 
kHmPreRead 

Definition at line 40 of file AliMCEventHandler.h.

Constructor & Destructor Documentation

AliMCEventHandler::AliMCEventHandler ( )

Definition at line 50 of file AliMCEventHandler.cxx.

Referenced by Init(), and InitOk().

AliMCEventHandler::AliMCEventHandler ( const char *  name,
const char *  title 
)

Definition at line 85 of file AliMCEventHandler.cxx.

AliMCEventHandler::~AliMCEventHandler ( )
virtual

Definition at line 119 of file AliMCEventHandler.cxx.

AliMCEventHandler::AliMCEventHandler ( const AliMCEventHandler handler)
private

Member Function Documentation

void AliMCEventHandler::AddSubsidiaryHandler ( AliMCEventHandler handler)
virtual

Definition at line 621 of file AliMCEventHandler.cxx.

Referenced by Init(), and SetReadTR().

Bool_t AliMCEventHandler::BeginEvent ( Long64_t  entry)
virtual
void AliMCEventHandler::CreateLabelMap ( )

Definition at line 411 of file AliMCEventHandler.cxx.

Referenced by InitOk(), and AliAODHandler::StoreMCParticles().

void AliMCEventHandler::DrawCheck ( Int_t  i,
Int_t  search = 0 
)

Definition at line 490 of file AliMCEventHandler.cxx.

Referenced by GetTree().

Bool_t AliMCEventHandler::FinishEvent ( )
virtual
virtual Bool_t AliMCEventHandler::GetEntry ( )
inlinevirtual

Reimplemented from AliInputEventHandler.

Definition at line 51 of file AliMCEventHandler.h.

AliVEvent* AliMCEventHandler::GetEvent ( ) const
inlinevirtual

Reimplemented from AliInputEventHandler.

Definition at line 68 of file AliMCEventHandler.h.

virtual TString* AliMCEventHandler::GetInputPath ( ) const
inlinevirtual

Definition at line 49 of file AliMCEventHandler.h.

Referenced by Init(), and Notify().

Int_t AliMCEventHandler::GetNewLabel ( Int_t  i)

Definition at line 434 of file AliMCEventHandler.cxx.

Referenced by InitOk(), and AliAODHandler::StoreMCParticles().

virtual const char* AliMCEventHandler::GetOutputFileName ( ) const
inlinevirtual

Reimplemented from AliInputEventHandler.

Definition at line 46 of file AliMCEventHandler.h.

Int_t AliMCEventHandler::GetParticleAndTR ( Int_t  i,
TParticle *&  particle,
TClonesArray *&  trefs 
)
virtual TTree* AliMCEventHandler::GetTree ( ) const
inlinevirtual

Reimplemented from AliInputEventHandler.

Definition at line 72 of file AliMCEventHandler.h.

Bool_t AliMCEventHandler::Init ( Option_t *  opt)
virtual

Reimplemented from AliInputEventHandler.

Definition at line 131 of file AliMCEventHandler.cxx.

Referenced by GetInputPath(), Init(), InitIO(), and AliReconstruction::SlaveBegin().

virtual Bool_t AliMCEventHandler::Init ( TTree *  ,
Option_t *   
)
inlinevirtual

Reimplemented from AliInputEventHandler.

Definition at line 53 of file AliMCEventHandler.h.

virtual Bool_t AliMCEventHandler::InitIO ( Option_t *  opt)
inlinevirtual

Definition at line 52 of file AliMCEventHandler.h.

Referenced by Notify().

Bool_t AliMCEventHandler::InitOk ( ) const
inline

Definition at line 75 of file AliMCEventHandler.h.

Referenced by AliReconstruction::SlaveBegin().

Bool_t AliMCEventHandler::IsParticleSelected ( Int_t  i)
Bool_t AliMCEventHandler::LoadEvent ( Int_t  iev)
virtual

Definition at line 225 of file AliMCEventHandler.cxx.

Referenced by BeginEvent(), and Notify().

virtual Bool_t AliMCEventHandler::Notify ( )
inlinevirtual

Reimplemented from AliInputEventHandler.

Definition at line 55 of file AliMCEventHandler.h.

Referenced by Notify().

Bool_t AliMCEventHandler::Notify ( const char *  path)
virtual

Reimplemented from AliInputEventHandler.

Definition at line 496 of file AliMCEventHandler.cxx.

Bool_t AliMCEventHandler::OpenFile ( Int_t  i)
private

Definition at line 309 of file AliMCEventHandler.cxx.

Referenced by InitOk(), and LoadEvent().

AliMCEventHandler& AliMCEventHandler::operator= ( const AliMCEventHandler handler)
private

Referenced by InitOk().

void AliMCEventHandler::ResetIO ( )
virtual

Definition at line 539 of file AliMCEventHandler.cxx.

Referenced by Notify(), and ResetIO().

void AliMCEventHandler::SelectParticle ( Int_t  i)

Definition at line 394 of file AliMCEventHandler.cxx.

Referenced by InitOk(), and VerifySelectedParticles().

virtual void AliMCEventHandler::SetCacheSize ( Long64_t  size)
inlinevirtual

Reimplemented from AliVEventHandler.

Definition at line 66 of file AliMCEventHandler.h.

void AliMCEventHandler::SetInputPath ( const char *  fname)
virtual

Definition at line 607 of file AliMCEventHandler.cxx.

Referenced by GetOutputFileName(), and Init().

virtual void AliMCEventHandler::SetInputTree ( TTree *  )
inlinevirtual

Reimplemented from AliInputEventHandler.

Definition at line 48 of file AliMCEventHandler.h.

virtual void AliMCEventHandler::SetNumberOfEventsInContainer ( Int_t  nev)
inlinevirtual

Definition at line 64 of file AliMCEventHandler.h.

virtual void AliMCEventHandler::SetOutputFileName ( const char *  )
inlinevirtual

Reimplemented from AliInputEventHandler.

Definition at line 45 of file AliMCEventHandler.h.

virtual void AliMCEventHandler::SetPreReadMode ( PreReadMode_t  mode)
inlinevirtual

Definition at line 65 of file AliMCEventHandler.h.

Referenced by Init(), and AliReconstruction::InitRunLoader().

virtual void AliMCEventHandler::SetReadTR ( Bool_t  flag)
inlinevirtual

Definition at line 62 of file AliMCEventHandler.h.

Referenced by Init(), and AliReconstruction::InitRunLoader().

Bool_t AliMCEventHandler::Terminate ( void  )
virtual

Reimplemented from AliInputEventHandler.

Definition at line 594 of file AliMCEventHandler.cxx.

Referenced by Notify().

Bool_t AliMCEventHandler::TerminateIO ( )
virtual

Reimplemented from AliInputEventHandler.

Definition at line 600 of file AliMCEventHandler.cxx.

Referenced by Notify().

TTree* AliMCEventHandler::TreeK ( ) const
inline

Definition at line 71 of file AliMCEventHandler.h.

TTree* AliMCEventHandler::TreeTR ( ) const
inline

Definition at line 70 of file AliMCEventHandler.h.

void AliMCEventHandler::VerifySelectedParticles ( )
private

Definition at line 441 of file AliMCEventHandler.cxx.

Referenced by CreateLabelMap(), and InitOk().

Member Data Documentation

Long64_t AliMCEventHandler::fCacheSize
private

Definition at line 110 of file AliMCEventHandler.h.

Referenced by LoadEvent(), and SetCacheSize().

TTreeCache* AliMCEventHandler::fCacheTK
private

Definition at line 111 of file AliMCEventHandler.h.

Referenced by FinishEvent(), LoadEvent(), OpenFile(), and ~AliMCEventHandler().

TTreeCache* AliMCEventHandler::fCacheTR
private

Cache for kinematics tree.

Definition at line 112 of file AliMCEventHandler.h.

Referenced by FinishEvent(), LoadEvent(), OpenFile(), and ~AliMCEventHandler().

TDirectoryFile* AliMCEventHandler::fDirK
private

TreeTR (track references tree)

Definition at line 95 of file AliMCEventHandler.h.

Referenced by FinishEvent(), and LoadEvent().

TDirectoryFile* AliMCEventHandler::fDirTR
private

Directory for Kine Tree.

Definition at line 96 of file AliMCEventHandler.h.

Referenced by FinishEvent(), and LoadEvent().

Int_t AliMCEventHandler::fEvent
private

Number of events.

Definition at line 100 of file AliMCEventHandler.h.

Referenced by BeginEvent(), and Init().

Int_t AliMCEventHandler::fEventsInContainer
private

List of subsidiary MC handlers (for example for Background)

Definition at line 108 of file AliMCEventHandler.h.

Referenced by BeginEvent(), and SetNumberOfEventsInContainer().

Int_t AliMCEventHandler::fEventsPerFile
private

Input file number.

Definition at line 104 of file AliMCEventHandler.h.

Referenced by Init(), and LoadEvent().

TFile* AliMCEventHandler::fFileE
private

MC Event.

Definition at line 89 of file AliMCEventHandler.h.

Referenced by Init(), ResetIO(), and ~AliMCEventHandler().

TFile* AliMCEventHandler::fFileK
private

File with TreeE.

Definition at line 90 of file AliMCEventHandler.h.

Referenced by FinishEvent(), Init(), LoadEvent(), OpenFile(), ResetIO(), and ~AliMCEventHandler().

Int_t AliMCEventHandler::fFileNumber
private

File name extension.

Definition at line 103 of file AliMCEventHandler.h.

Referenced by Init(), and LoadEvent().

TFile* AliMCEventHandler::fFileTR
private

File with TreeK.

Definition at line 91 of file AliMCEventHandler.h.

Referenced by FinishEvent(), Init(), LoadEvent(), OpenFile(), ResetIO(), and ~AliMCEventHandler().

Bool_t AliMCEventHandler::fInitOk
private
const Char_t* AliMCEventHandler::fkExtension
private

Input file path.

Definition at line 102 of file AliMCEventHandler.h.

Referenced by Init(), OpenFile(), and ResetIO().

TExMap AliMCEventHandler::fLabelMap
private

List of selected MC particles for t.

Definition at line 98 of file AliMCEventHandler.h.

Referenced by BeginEvent(), CreateLabelMap(), and GetNewLabel().

Int_t AliMCEventHandler::fNEvent
private

Stores the Map of MC (ESDLabel,AODlabel)

Definition at line 99 of file AliMCEventHandler.h.

Referenced by BeginEvent(), and Init().

TExMap AliMCEventHandler::fParticleSelected
private

Directory for TR Tree.

Definition at line 97 of file AliMCEventHandler.h.

Referenced by BeginEvent(), CreateLabelMap(), IsParticleSelected(), SelectParticle(), and VerifySelectedParticles().

TString* AliMCEventHandler::fPathName
private

Current event.

Definition at line 101 of file AliMCEventHandler.h.

Referenced by GetInputPath(), Init(), Notify(), OpenFile(), SetInputPath(), and ~AliMCEventHandler().

PreReadMode_t AliMCEventHandler::fPreReadMode
private

Number of events in container class.

Definition at line 109 of file AliMCEventHandler.h.

Referenced by BeginEvent(), and SetPreReadMode().

Bool_t AliMCEventHandler::fReadTR
private

Number of events per file.

Definition at line 105 of file AliMCEventHandler.h.

Referenced by Init(), OpenFile(), and SetReadTR().

TList* AliMCEventHandler::fSubsidiaryHandlers
private
TTree* AliMCEventHandler::fTreeE
private

File with TreeTR.

Definition at line 92 of file AliMCEventHandler.h.

Referenced by GetTree(), Init(), LoadEvent(), and ResetIO().

TTree* AliMCEventHandler::fTreeK
private

TreeE (Event Headers)

Definition at line 93 of file AliMCEventHandler.h.

Referenced by FinishEvent(), LoadEvent(), OpenFile(), and TreeK().

TTree* AliMCEventHandler::fTreeTR
private

TreeK (kinematics tree)

Definition at line 94 of file AliMCEventHandler.h.

Referenced by FinishEvent(), LoadEvent(), OpenFile(), and TreeTR().


The documentation for this class was generated from the following files: