![]() |
AliRoot Core
3dc7879 (3dc7879)
|
#include <AliMCEventHandler.h>
Public Types | |
enum | PreReadMode_t { kNoPreRead = 0, kLmPreRead = 1, kHmPreRead = 2 } |
![]() | |
enum | EInputHandlerFlags { kUserCallSelectionMask = BIT(14), kCheckStatistics = BIT(15), kNeedField = BIT(16) } |
![]() | |
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) |
AliVEvent * | GetEvent () const |
AliMCEvent * | MCEvent () 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) |
![]() | |
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 AliEventTag * | GetEventTag () const |
virtual AliRunTag * | GetRunTag () const |
virtual TObject * | GetStatistics (Option_t *option="") const |
virtual Option_t * | GetAnalysisType () const |
virtual AliVCuts * | GetEventSelection () 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) |
AliInputEventHandler * | MixingHandler () |
void | SetParentHandler (AliInputEventHandler *parent) |
AliInputEventHandler * | ParentHandler () |
virtual AliPIDResponse * | GetPIDResponse () |
virtual void | CreatePIDResponse (Bool_t=kFALSE) |
![]() | |
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 AliVfriendEvent * | GetVfriendEvent () const |
Private Member Functions | |
Bool_t | OpenFile (Int_t i) |
void | VerifySelectedParticles () |
AliMCEventHandler (const AliMCEventHandler &handler) | |
AliMCEventHandler & | operator= (const AliMCEventHandler &handler) |
Private Attributes | |
AliMCEvent * | fMCEvent |
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 | |
![]() | |
void | SwitchOffBranches () const |
void | SwitchOnBranches () const |
![]() | |
TTree * | fTree |
TString | fBranches |
Pointer to the tree. More... | |
TString | fBranchesOn |
TString | fInputFileName |
Bool_t | fNewEvent |
AliVCuts * | fEventCuts |
UInt_t | fIsSelectedResult |
AliInputEventHandler * | fMixingHandler |
AliInputEventHandler * | fParentHandler |
TList * | fUserInfo |
Definition at line 36 of file AliMCEventHandler.h.
Enumerator | |
---|---|
kNoPreRead | |
kLmPreRead | |
kHmPreRead |
Definition at line 40 of file AliMCEventHandler.h.
AliMCEventHandler::AliMCEventHandler | ( | ) |
Definition at line 50 of file AliMCEventHandler.cxx.
AliMCEventHandler::AliMCEventHandler | ( | const char * | name, |
const char * | title | ||
) |
Definition at line 85 of file AliMCEventHandler.cxx.
|
virtual |
Definition at line 119 of file AliMCEventHandler.cxx.
|
private |
|
virtual |
Definition at line 621 of file AliMCEventHandler.cxx.
Referenced by Init(), and SetReadTR().
|
virtual |
Reimplemented from AliInputEventHandler.
Definition at line 341 of file AliMCEventHandler.cxx.
Referenced by BeginEvent(), Init(), AliReconstruction::ProcessEvent(), AliMUONRecoCheck::TrackRefs(), and AliMUONRecoCheck::TriggerableTracks().
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().
|
virtual |
Reimplemented from AliInputEventHandler.
Definition at line 566 of file AliMCEventHandler.cxx.
Referenced by FinishEvent(), Notify(), AliReconstruction::ProcessEvent(), AliMUONRecoCheck::TrackRefs(), and AliMUONRecoCheck::TriggerableTracks().
|
inlinevirtual |
Reimplemented from AliInputEventHandler.
Definition at line 51 of file AliMCEventHandler.h.
|
inlinevirtual |
Reimplemented from AliInputEventHandler.
Definition at line 68 of file AliMCEventHandler.h.
|
inlinevirtual |
Definition at line 49 of file AliMCEventHandler.h.
Int_t AliMCEventHandler::GetNewLabel | ( | Int_t | i | ) |
Definition at line 434 of file AliMCEventHandler.cxx.
Referenced by InitOk(), and AliAODHandler::StoreMCParticles().
|
inlinevirtual |
Reimplemented from AliInputEventHandler.
Definition at line 46 of file AliMCEventHandler.h.
Int_t AliMCEventHandler::GetParticleAndTR | ( | Int_t | i, |
TParticle *& | particle, | ||
TClonesArray *& | trefs | ||
) |
Definition at line 480 of file AliMCEventHandler.cxx.
Referenced by GetTree(), AliMUONRecoCheck::MakeTrackRefs(), and AliMUONRecoCheck::MakeTriggerableTracks().
|
inlinevirtual |
Reimplemented from AliInputEventHandler.
Definition at line 72 of file AliMCEventHandler.h.
|
virtual |
Reimplemented from AliInputEventHandler.
Definition at line 131 of file AliMCEventHandler.cxx.
Referenced by GetInputPath(), Init(), InitIO(), and AliReconstruction::SlaveBegin().
|
inlinevirtual |
Reimplemented from AliInputEventHandler.
Definition at line 53 of file AliMCEventHandler.h.
|
inlinevirtual |
Definition at line 52 of file AliMCEventHandler.h.
Referenced by Notify().
|
inline |
Definition at line 75 of file AliMCEventHandler.h.
Referenced by AliReconstruction::SlaveBegin().
Bool_t AliMCEventHandler::IsParticleSelected | ( | Int_t | i | ) |
Definition at line 403 of file AliMCEventHandler.cxx.
Referenced by CreateLabelMap(), InitOk(), SelectParticle(), AliAODHandler::StoreMCParticles(), and VerifySelectedParticles().
|
virtual |
Definition at line 225 of file AliMCEventHandler.cxx.
Referenced by BeginEvent(), and Notify().
|
inlinevirtual |
Reimplemented from AliInputEventHandler.
Definition at line 69 of file AliMCEventHandler.h.
Referenced by BeginEvent(), AliMUONRecoCheck::MakeTrackRefs(), AliMUONRecoCheck::MakeTriggerableTracks(), AliReconstruction::ProcessEvent(), and AliAODHandler::StoreMCParticles().
|
inlinevirtual |
Reimplemented from AliInputEventHandler.
Definition at line 55 of file AliMCEventHandler.h.
Referenced by Notify().
|
virtual |
Reimplemented from AliInputEventHandler.
Definition at line 496 of file AliMCEventHandler.cxx.
|
private |
Definition at line 309 of file AliMCEventHandler.cxx.
Referenced by InitOk(), and LoadEvent().
|
private |
Referenced by InitOk().
|
virtual |
Definition at line 539 of file AliMCEventHandler.cxx.
void AliMCEventHandler::SelectParticle | ( | Int_t | i | ) |
Definition at line 394 of file AliMCEventHandler.cxx.
Referenced by AliAnalysisTaskESDfilter::ConvertCaloClusters(), AliAnalysisTaskESDfilter::ConvertCascades(), AliAnalysisTaskESDfilter::ConvertGlobalConstrainedTracks(), AliAnalysisTaskESDfilter::ConvertKinks(), AliAnalysisTaskESDfilter::ConvertTPCOnlyTracks(), AliAnalysisTaskESDfilter::ConvertTracklets(), AliAnalysisTaskESDfilter::ConvertTracks(), AliAnalysisTaskESDfilter::ConvertTRD(), AliAnalysisTaskESDfilter::ConvertV0s(), InitOk(), AliAnalysisTaskMCParticleFilter::UserExec(), and VerifySelectedParticles().
|
inlinevirtual |
Reimplemented from AliVEventHandler.
Definition at line 66 of file AliMCEventHandler.h.
|
virtual |
Definition at line 607 of file AliMCEventHandler.cxx.
Referenced by GetOutputFileName(), and Init().
|
inlinevirtual |
Reimplemented from AliInputEventHandler.
Definition at line 48 of file AliMCEventHandler.h.
|
inlinevirtual |
Definition at line 64 of file AliMCEventHandler.h.
|
inlinevirtual |
Reimplemented from AliInputEventHandler.
Definition at line 45 of file AliMCEventHandler.h.
|
inlinevirtual |
Definition at line 65 of file AliMCEventHandler.h.
Referenced by Init(), and AliReconstruction::InitRunLoader().
|
inlinevirtual |
Definition at line 62 of file AliMCEventHandler.h.
Referenced by Init(), and AliReconstruction::InitRunLoader().
|
virtual |
Reimplemented from AliInputEventHandler.
Definition at line 594 of file AliMCEventHandler.cxx.
Referenced by Notify().
|
virtual |
Reimplemented from AliInputEventHandler.
Definition at line 600 of file AliMCEventHandler.cxx.
Referenced by Notify().
|
inline |
Definition at line 71 of file AliMCEventHandler.h.
|
inline |
Definition at line 70 of file AliMCEventHandler.h.
|
private |
Definition at line 441 of file AliMCEventHandler.cxx.
Referenced by CreateLabelMap(), and InitOk().
|
private |
Definition at line 110 of file AliMCEventHandler.h.
Referenced by LoadEvent(), and SetCacheSize().
|
private |
Definition at line 111 of file AliMCEventHandler.h.
Referenced by FinishEvent(), LoadEvent(), OpenFile(), and ~AliMCEventHandler().
|
private |
Cache for kinematics tree.
Definition at line 112 of file AliMCEventHandler.h.
Referenced by FinishEvent(), LoadEvent(), OpenFile(), and ~AliMCEventHandler().
|
private |
TreeTR (track references tree)
Definition at line 95 of file AliMCEventHandler.h.
Referenced by FinishEvent(), and LoadEvent().
|
private |
Directory for Kine Tree.
Definition at line 96 of file AliMCEventHandler.h.
Referenced by FinishEvent(), and LoadEvent().
|
private |
Number of events.
Definition at line 100 of file AliMCEventHandler.h.
Referenced by BeginEvent(), and Init().
|
private |
List of subsidiary MC handlers (for example for Background)
Definition at line 108 of file AliMCEventHandler.h.
Referenced by BeginEvent(), and SetNumberOfEventsInContainer().
|
private |
Input file number.
Definition at line 104 of file AliMCEventHandler.h.
Referenced by Init(), and LoadEvent().
|
private |
MC Event.
Definition at line 89 of file AliMCEventHandler.h.
Referenced by Init(), ResetIO(), and ~AliMCEventHandler().
|
private |
File with TreeE.
Definition at line 90 of file AliMCEventHandler.h.
Referenced by FinishEvent(), Init(), LoadEvent(), OpenFile(), ResetIO(), and ~AliMCEventHandler().
|
private |
File name extension.
Definition at line 103 of file AliMCEventHandler.h.
Referenced by Init(), and LoadEvent().
|
private |
File with TreeK.
Definition at line 91 of file AliMCEventHandler.h.
Referenced by FinishEvent(), Init(), LoadEvent(), OpenFile(), ResetIO(), and ~AliMCEventHandler().
|
private |
Definition at line 106 of file AliMCEventHandler.h.
Referenced by BeginEvent(), FinishEvent(), GetParticleAndTR(), Init(), InitOk(), LoadEvent(), OpenFile(), ResetIO(), and SelectParticle().
|
private |
Input file path.
Definition at line 102 of file AliMCEventHandler.h.
Referenced by Init(), OpenFile(), and ResetIO().
|
private |
List of selected MC particles for t.
Definition at line 98 of file AliMCEventHandler.h.
Referenced by BeginEvent(), CreateLabelMap(), and GetNewLabel().
|
private |
Definition at line 88 of file AliMCEventHandler.h.
Referenced by BeginEvent(), CreateLabelMap(), DrawCheck(), FinishEvent(), GetEvent(), GetParticleAndTR(), Init(), LoadEvent(), MCEvent(), OpenFile(), ResetIO(), SelectParticle(), VerifySelectedParticles(), and ~AliMCEventHandler().
|
private |
Stores the Map of MC (ESDLabel,AODlabel)
Definition at line 99 of file AliMCEventHandler.h.
Referenced by BeginEvent(), and Init().
|
private |
Directory for TR Tree.
Definition at line 97 of file AliMCEventHandler.h.
Referenced by BeginEvent(), CreateLabelMap(), IsParticleSelected(), SelectParticle(), and VerifySelectedParticles().
|
private |
Current event.
Definition at line 101 of file AliMCEventHandler.h.
Referenced by GetInputPath(), Init(), Notify(), OpenFile(), SetInputPath(), and ~AliMCEventHandler().
|
private |
Number of events in container class.
Definition at line 109 of file AliMCEventHandler.h.
Referenced by BeginEvent(), and SetPreReadMode().
|
private |
Number of events per file.
Definition at line 105 of file AliMCEventHandler.h.
Referenced by Init(), OpenFile(), and SetReadTR().
|
private |
Definition at line 107 of file AliMCEventHandler.h.
Referenced by AddSubsidiaryHandler(), BeginEvent(), FinishEvent(), Init(), Notify(), and ResetIO().
|
private |
File with TreeTR.
Definition at line 92 of file AliMCEventHandler.h.
Referenced by GetTree(), Init(), LoadEvent(), and ResetIO().
|
private |
TreeE (Event Headers)
Definition at line 93 of file AliMCEventHandler.h.
Referenced by FinishEvent(), LoadEvent(), OpenFile(), and TreeK().
|
private |
TreeK (kinematics tree)
Definition at line 94 of file AliMCEventHandler.h.
Referenced by FinishEvent(), LoadEvent(), OpenFile(), and TreeTR().