]>
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" | |
10 | class AliVEvent; | |
11 | class AliAODEvent; | |
12 | class AliMCEvent; | |
80d13558 | 13 | class AliInputEventHandler; |
5232d0de | 14 | class TTree; |
15 | ||
16 | ||
17 | ||
18 | class AliAnalysisTaskSE : public AliAnalysisTask | |
19 | { | |
20 | public: | |
21 | AliAnalysisTaskSE(); | |
22 | AliAnalysisTaskSE(const char* name); | |
26f071d8 | 23 | AliAnalysisTaskSE(const AliAnalysisTaskSE& obj); |
24 | AliAnalysisTaskSE& operator=(const AliAnalysisTaskSE& other); | |
5232d0de | 25 | virtual ~AliAnalysisTaskSE() {;} |
26 | // Implementation of interface methods | |
27 | virtual void ConnectInputData(Option_t *option = ""); | |
28 | virtual void CreateOutputObjects(); | |
29 | virtual void Exec(Option_t* option); | |
30 | virtual void SetDebugLevel(Int_t level) {fDebug = level;} | |
31 | virtual void Init() {;} | |
32 | // To be implemented by user | |
33 | virtual void UserCreateOutputObjects() {;} | |
26f071d8 | 34 | virtual void UserExec(Option_t* /*option*/) {;} |
164e94ff | 35 | // Helpers for adding branches to the AOD |
3b427089 | 36 | virtual void AddAODBranch(const char* cname, TObject* addobj); |
164e94ff | 37 | // Getters |
4d0a82af | 38 | virtual Int_t DebugLevel() {return fDebug; } |
5232d0de | 39 | virtual AliVEvent* InputEvent() {return fInputEvent;} |
4d0a82af | 40 | virtual AliAODEvent* AODEvent() {return fOutputAOD; } |
41 | virtual TTree* OutputTree() {return fTreeA; } | |
42 | virtual AliMCEvent* MCEvent() {return fMCEvent; } | |
43 | virtual Long64_t Entry() {return fEntry; } | |
44 | virtual const char* CurrentFileName(); | |
80d13558 | 45 | protected: |
46 | Int_t fDebug; // Debug flag | |
47 | Int_t fEntry; // Current entry in the chain | |
48 | AliVEvent* fInputEvent; //! VEvent Input | |
49 | AliInputEventHandler* fInputHandler; //! Input Handler | |
50 | AliAODEvent* fOutputAOD; //! AOD out | |
51 | AliMCEvent* fMCEvent; //! MC | |
52 | TTree* fTreeA; // AOD output Tree | |
5232d0de | 53 | ClassDef(AliAnalysisTaskSE, 1); // Analysis task for standard jet analysis |
54 | }; | |
55 | ||
56 | #endif |