]>
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; | |
f0f29480 | 18 | class TMap; |
620ad672 | 19 | class AliESDfriend; |
67675e42 | 20 | class AliESDpid; |
21 | ||
d3dd3d14 | 22 | |
23 | class AliESDInputHandler : public AliInputEventHandler { | |
24 | ||
25 | public: | |
26 | AliESDInputHandler(); | |
27 | AliESDInputHandler(const char* name, const char* title); | |
28 | virtual ~AliESDInputHandler(); | |
300d5701 | 29 | virtual Bool_t Init(Option_t* /*opt*/) {return kTRUE;} |
30 | virtual Bool_t Init(TTree* tree, Option_t* opt); | |
ed97dc98 | 31 | virtual Bool_t BeginEvent(Long64_t entry); |
1aa09fd1 | 32 | virtual Bool_t Notify() { return AliVEventHandler::Notify(); }; |
33 | virtual Bool_t Notify(const char* path); | |
6989bff3 | 34 | virtual Bool_t FinishEvent(); |
1aa09fd1 | 35 | AliESDEvent *GetEvent() const {return fEvent;} |
36 | Option_t *GetAnalysisType() const {return fAnalysisType;} | |
c2b6979d | 37 | Option_t *GetDataType() const; |
f0f29480 | 38 | // Tag cut summary analysis |
39 | Int_t GetNEventAcceptedInFile(); | |
40 | Int_t GetNEventRejectedInFile(); | |
c334d0d3 | 41 | Bool_t GetCutSummaryForChain(Int_t *aTotal, Int_t *aAccepted, Int_t *aRejected); |
42 | Int_t GetNFilesEmpty(); | |
67675e42 | 43 | // HLT analysis |
6ccd727b | 44 | AliESDEvent *GetHLTEvent() const {return fHLTEvent;} |
45 | TTree *GetHLTTree() const {return fHLTTree;} | |
46 | void SetReadHLT() {fUseHLT = kTRUE;} | |
67675e42 | 47 | // Friends&Co |
48 | AliESDfriend *GetESDfriend() const {return fFriend;} | |
49 | AliESDpid *GetESDpid() const {return fESDpid;} | |
50 | void SetESDpid(AliESDpid* pid) {fESDpid = pid;} | |
1aa09fd1 | 51 | // Tag analysis |
52 | void SetReadTags() {fUseTags = kTRUE;} | |
53 | AliRunTag *GetRunTag() const {return fRunTag;} | |
54 | ||
300d5701 | 55 | private: |
87d395bd | 56 | AliESDInputHandler(const AliESDInputHandler& handler); |
57 | AliESDInputHandler& operator=(const AliESDInputHandler& handler); | |
4d2a7370 | 58 | protected: |
1aa09fd1 | 59 | // ESD event |
60 | AliESDEvent *fEvent; //! Pointer to the event | |
620ad672 | 61 | AliESDfriend *fFriend; //! Pointer to the esd friend |
67675e42 | 62 | AliESDpid *fESDpid; //! Pointer to PID information |
1aa09fd1 | 63 | Option_t *fAnalysisType; //! local, proof, grid |
6ccd727b | 64 | Int_t fNEvents; //! Number of events in the current tree |
65 | // HLT event | |
66 | AliESDEvent *fHLTEvent; //! Pointer to the HLT Event (if present) | |
67 | TTree *fHLTTree; //! Pointer to the HLT Event (if present) | |
68 | Bool_t fUseHLT; // Flag to access HLT Events | |
f0f29480 | 69 | // ESD Tag Cut Summary |
70 | TMap *fTagCutSumm; //! Tag cut summary map | |
1aa09fd1 | 71 | // ESD Tags (optional) |
72 | Bool_t fUseTags; // Flag to use tags | |
73 | TChain *fChainT; //! File with event tags | |
74 | TTree *fTreeT; //! Tree of tags | |
75 | AliRunTag *fRunTag; //! Pointer to the run tag | |
6ccd727b | 76 | ClassDef(AliESDInputHandler, 4); |
d3dd3d14 | 77 | }; |
78 | ||
79 | #endif |