]>
Commit | Line | Data |
---|---|---|
d3dd3d14 | 1 | #ifndef ALIESDINPUTHANDLER_H |
2 | #define ALIESDINPUTHANDLER_H | |
3 | /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | //------------------------------------------------------------------------- | |
9 | // ESD Input Handler realisation of the AliVEventHandler interface | |
10 | // Author: Andreas Morsch, CERN | |
11 | //------------------------------------------------------------------------- | |
12 | ||
13 | #include "AliInputEventHandler.h" | |
fedd7a0d | 14 | #include "AliESDEvent.h" |
1aa09fd1 | 15 | class TChain; |
16 | class TTree; | |
17 | class AliRunTag; | |
cec9e119 | 18 | class AliEventTag; |
f0f29480 | 19 | class TMap; |
620ad672 | 20 | class AliESDfriend; |
67675e42 | 21 | class AliESDpid; |
5e6a3170 | 22 | class AliESDEvent; |
67675e42 | 23 | |
d3dd3d14 | 24 | |
25 | class AliESDInputHandler : public AliInputEventHandler { | |
26 | ||
27 | public: | |
28 | AliESDInputHandler(); | |
29 | AliESDInputHandler(const char* name, const char* title); | |
30 | virtual ~AliESDInputHandler(); | |
22d7ad3e | 31 | virtual Bool_t Init(Option_t* opt) {return AliInputEventHandler::Init(opt);} |
300d5701 | 32 | virtual Bool_t Init(TTree* tree, Option_t* opt); |
ed97dc98 | 33 | virtual Bool_t BeginEvent(Long64_t entry); |
a37ff5af | 34 | virtual Bool_t Notify() { return AliInputEventHandler::Notify(); }; |
1aa09fd1 | 35 | virtual Bool_t Notify(const char* path); |
6989bff3 | 36 | virtual Bool_t FinishEvent(); |
aaf2d706 | 37 | void CheckSelectionMask(); |
1aa09fd1 | 38 | AliESDEvent *GetEvent() const {return fEvent;} |
39 | Option_t *GetAnalysisType() const {return fAnalysisType;} | |
c2b6979d | 40 | Option_t *GetDataType() const; |
f0f29480 | 41 | // Tag cut summary analysis |
42 | Int_t GetNEventAcceptedInFile(); | |
43 | Int_t GetNEventRejectedInFile(); | |
c334d0d3 | 44 | Bool_t GetCutSummaryForChain(Int_t *aTotal, Int_t *aAccepted, Int_t *aRejected); |
45 | Int_t GetNFilesEmpty(); | |
67675e42 | 46 | // HLT analysis |
6ccd727b | 47 | AliESDEvent *GetHLTEvent() const {return fHLTEvent;} |
48 | TTree *GetHLTTree() const {return fHLTTree;} | |
cec9e119 | 49 | void SetReadHLT() {fUseHLT = kTRUE;} |
67675e42 | 50 | // Friends&Co |
51 | AliESDfriend *GetESDfriend() const {return fFriend;} | |
52 | AliESDpid *GetESDpid() const {return fESDpid;} | |
98c482f7 | 53 | void SetESDpid(AliESDpid* pid) {fESDpid = pid;} |
54 | void SetReadFriends(Bool_t flag) {fReadFriends = flag;} | |
b626cd71 | 55 | void SetFriendFileName(const char *fname) {fFriendFileName = fname;} |
1aa09fd1 | 56 | // Tag analysis |
cec9e119 | 57 | void SetReadTags() {fUseTags = kTRUE;} |
58 | AliRunTag *GetRunTag() const {return fRunTag;} | |
59 | const AliEventTag *GetEventTag() const {return fEventTag;} | |
70908d05 | 60 | // Get the statistics object (currently TH2). Option can be BIN0. |
61 | virtual TObject *GetStatistics(Option_t *option="") const; | |
300d5701 | 62 | private: |
87d395bd | 63 | AliESDInputHandler(const AliESDInputHandler& handler); |
64 | AliESDInputHandler& operator=(const AliESDInputHandler& handler); | |
4d2a7370 | 65 | protected: |
1aa09fd1 | 66 | // ESD event |
b626cd71 | 67 | AliESDEvent *fEvent; //! Pointer to the event |
68 | AliESDfriend *fFriend; //! Pointer to the esd friend | |
69 | AliESDpid *fESDpid; //! Pointer to PID information | |
70 | Option_t *fAnalysisType; //! local, proof, grid | |
71 | Int_t fNEvents; //! Number of events in the current tree | |
6ccd727b | 72 | // HLT event |
b626cd71 | 73 | AliESDEvent *fHLTEvent; //! Pointer to the HLT Event (if present) |
74 | TTree *fHLTTree; //! Pointer to the HLT Event (if present) | |
75 | Bool_t fUseHLT; // Flag to access HLT Events | |
f0f29480 | 76 | // ESD Tag Cut Summary |
b626cd71 | 77 | TMap *fTagCutSumm; //! Tag cut summary map |
1aa09fd1 | 78 | // ESD Tags (optional) |
b626cd71 | 79 | Bool_t fUseTags; // Flag to use tags |
80 | TChain *fChainT; //! File with event tags | |
81 | TTree *fTreeT; //! Tree of tags | |
82 | AliRunTag *fRunTag; //! Pointer to the run tag | |
cec9e119 | 83 | const AliEventTag *fEventTag; //! Current event tag |
b626cd71 | 84 | // Friends |
85 | Bool_t fReadFriends; // Flag for friends reading | |
86 | TString fFriendFileName;// Name of the file containing the frien tree (branch) | |
b626cd71 | 87 | ClassDef(AliESDInputHandler, 6); |
d3dd3d14 | 88 | }; |
89 | ||
90 | #endif |