]>
Commit | Line | Data |
---|---|---|
5232d0de | 1 | #ifndef ALIANALYSISTASKSE_H |
2 | #define ALIANALYSISTASKSE_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | /* $Id$ */ | |
8 | ||
9 | #include "AliAnalysisTask.h" | |
0c6c629b | 10 | #include "AliVEvent.h" |
11 | ||
5232d0de | 12 | class AliAODEvent; |
3f2431c4 | 13 | class AliAODHeader; |
2981307f | 14 | class AliTOFHeader; |
15 | class AliAODVZERO; | |
c185e0db | 16 | class AliAODTracklets; |
5a922844 | 17 | class AliAODCaloCells; |
720f7306 | 18 | class AliAODCaloTrigger; |
5232d0de | 19 | class AliMCEvent; |
2da1d158 | 20 | class AliMCEventHandler; |
80d13558 | 21 | class AliInputEventHandler; |
2da1d158 | 22 | class AliMultiInputEventHandler; |
f0ee78b0 | 23 | class AliAnalysisCuts; |
620ad672 | 24 | class AliESDfriend; |
cec9e119 | 25 | class AliEventTag; |
5a922844 | 26 | |
5232d0de | 27 | class TTree; |
1ec2c8dc | 28 | class TList; |
5232d0de | 29 | |
30 | ||
31 | class AliAnalysisTaskSE : public AliAnalysisTask | |
32 | { | |
33 | public: | |
34 | AliAnalysisTaskSE(); | |
35 | AliAnalysisTaskSE(const char* name); | |
26f071d8 | 36 | AliAnalysisTaskSE(const AliAnalysisTaskSE& obj); |
37 | AliAnalysisTaskSE& operator=(const AliAnalysisTaskSE& other); | |
5232d0de | 38 | virtual ~AliAnalysisTaskSE() {;} |
39 | // Implementation of interface methods | |
f0ee78b0 | 40 | virtual void ConnectInputData(Option_t *option = ""); |
41 | virtual void CreateOutputObjects(); | |
42 | virtual void Exec(Option_t* option); | |
43 | virtual void SetDebugLevel(Int_t level) {fDebug = level;} | |
44 | virtual void Init() {;} | |
1ec2c8dc | 45 | virtual Bool_t Notify(); |
5232d0de | 46 | // To be implemented by user |
f0ee78b0 | 47 | virtual void UserCreateOutputObjects() {;} |
48 | virtual void UserExec(Option_t* /*option*/) {;} | |
b425275c | 49 | virtual void UserExecMix(Option_t */*option*/) {;} |
1ec2c8dc | 50 | virtual Bool_t UserNotify() {return kTRUE;} |
51 | virtual void NotifyRun() {;} | |
f0ee78b0 | 52 | |
164e94ff | 53 | // Helpers for adding branches to the AOD |
f0ee78b0 | 54 | virtual void AddAODBranch(const char* cname, void* addobj, const char *fname=""); |
55 | // Event Selection | |
0c6c629b | 56 | virtual void SelectCollisionCandidates(UInt_t offlineTriggerMask = AliVEvent::kMB) {fOfflineTriggerMask = offlineTriggerMask;} |
cec9e119 | 57 | // Loading the declared input branches |
58 | void LoadBranches() const; | |
bf666461 | 59 | // Getters |
ef8fe4fd | 60 | virtual Int_t DebugLevel() const {return fDebug; } |
61 | virtual AliVEvent* InputEvent() const {return fInputEvent;} | |
62 | virtual AliESDfriend* ESDfriend() const {return fESDfriend; } | |
63 | virtual AliAODEvent* AODEvent() const {return fOutputAOD; } | |
64 | virtual TTree* OutputTree() const {return fTreeA; } | |
65 | virtual AliMCEvent* MCEvent() const {return fMCEvent; } | |
66 | virtual Long64_t Entry() const {return fEntry; } | |
cec9e119 | 67 | virtual const AliEventTag *EventTag() const; |
620ad672 | 68 | virtual const char* CurrentFileName(); |
69 | virtual Bool_t IsStandardAOD() const; | |
70 | virtual TList* GetQAHistos() const {return fHistosQA;} | |
85c71ba7 | 71 | virtual Bool_t IsEventInBinZero() { return kFALSE;} |
58c55baf | 72 | virtual UInt_t GetCollisionCandidates() const { return fOfflineTriggerMask;} |
2da1d158 | 73 | protected: |
74 | void ConnectMultiHandler(); | |
75 | void DisconnectMultiHandler(); | |
85c71ba7 | 76 | |
80d13558 | 77 | protected: |
78 | Int_t fDebug; // Debug flag | |
1ec2c8dc | 79 | // IO |
80d13558 | 80 | Int_t fEntry; // Current entry in the chain |
81 | AliVEvent* fInputEvent; //! VEvent Input | |
620ad672 | 82 | AliESDfriend* fESDfriend; //! ESD friend |
80d13558 | 83 | AliInputEventHandler* fInputHandler; //! Input Handler |
84 | AliAODEvent* fOutputAOD; //! AOD out | |
85 | AliMCEvent* fMCEvent; //! MC | |
86 | TTree* fTreeA; // AOD output Tree | |
1ec2c8dc | 87 | Int_t fCurrentRunNumber;//! Current run number |
88 | // Output histos for QA | |
89 | TList* fHistosQA; //! Output histos for QA | |
90 | // Provisions for replication | |
c185e0db | 91 | static AliAODHeader* fgAODHeader; //! Header for replication |
2981307f | 92 | static AliTOFHeader* fgTOFHeader; //! TOFHeader for replication |
93 | static AliAODVZERO* fgAODVZERO; //! VZERO for replication | |
c185e0db | 94 | static TClonesArray* fgAODTracks; //! Tracks for replication |
95 | static TClonesArray* fgAODVertices; //! Vertices for replication | |
96 | static TClonesArray* fgAODV0s; //! V0s for replication | |
97 | static TClonesArray* fgAODPMDClusters; //! PMDClusters for replication | |
98 | static TClonesArray* fgAODJets; //! Jets for replication | |
99 | static TClonesArray* fgAODFMDClusters; //! FMDClusters for replication | |
100 | static TClonesArray* fgAODCaloClusters; //! CaloClusters for replication | |
720f7306 | 101 | static AliAODCaloTrigger* fgAODEMCALTrigger; //! Emcal Trigger for replication |
102 | static AliAODCaloTrigger* fgAODPHOSTrigger; //! Phos Trigger for replication | |
113bc2bd | 103 | static TClonesArray* fgAODMCParticles; //! MC Particles for replicatio |
c185e0db | 104 | static AliAODTracklets* fgAODTracklets; //! Tracklets for replication |
5a922844 | 105 | static AliAODCaloCells* fgAODEmcalCells; //! Emcal Cell replication |
106 | static AliAODCaloCells* fgAODPhosCells; //! Phos Cell replication | |
fc05a533 | 107 | static TClonesArray* fgAODDimuons; //! Dimuons replication |
108 | static TClonesArray* fgAODHmpidRings; //! HMPID replication | |
bf666461 | 109 | // Event Selection |
0c6c629b | 110 | UInt_t fOfflineTriggerMask; // Task processes collision candidates only |
2da1d158 | 111 | // Event Mixing |
112 | AliMultiInputEventHandler *fMultiInputHandler; //! pointer to multihandler | |
205cbea7 | 113 | AliInputEventHandler *fMCEventHandler; //! pointer to MCEventHandler |
0c6c629b | 114 | ClassDef(AliAnalysisTaskSE, 4); // Analysis task for standard jet analysis |
5232d0de | 115 | }; |
116 | ||
117 | #endif |