]>
Commit | Line | Data |
---|---|---|
4fbb2459 | 1 | // |
2 | // Class AliRsnVAnalysisTaskSE | |
3 | // | |
4 | // Virtual Class derivated from AliAnalysisTaskSE which will be base class | |
5 | // for all RSN SE tasks | |
6 | // | |
7 | // authors: Martin Vala (martin.vala@cern.ch) | |
8 | // Alberto Pulvirenti (alberto.pulvirenti@ct.infn.it) | |
9 | // | |
5faf5a07 | 10 | |
4fbb2459 | 11 | #ifndef ALIRSNVANALYSISTASKSE_H |
12 | #define ALIRSNVANALYSISTASKSE_H | |
13 | ||
14 | #include <TH1.h> | |
15 | ||
4fbb2459 | 16 | #include "AliAnalysisTaskSE.h" |
17 | ||
18 | #include "AliRsnEvent.h" | |
4fbb2459 | 19 | #include "AliRsnVATProcessInfo.h" |
20 | ||
21 | class AliESDEvent; | |
22 | class AliAODEvent; | |
23 | class AliMCEvent; | |
24 | ||
2a1c7696 | 25 | class AliRsnVAnalysisTaskSE : public AliAnalysisTaskSE { |
26 | public: | |
27 | ||
28 | AliRsnVAnalysisTaskSE(const char *name = "AliRsnVAnalysisTaskSE", Bool_t mcOnly = kFALSE); | |
29 | AliRsnVAnalysisTaskSE(const AliRsnVAnalysisTaskSE& copy); | |
30 | AliRsnVAnalysisTaskSE& operator= (const AliRsnVAnalysisTaskSE& /*copy*/) { return *this; } | |
31 | virtual ~AliRsnVAnalysisTaskSE() {/* Does nothing*/;} | |
32 | ||
33 | // basic interface methods | |
34 | virtual void LocalInit(); | |
35 | virtual Bool_t UserNotify(); | |
36 | virtual void ConnectInputData(Option_t *opt); | |
37 | virtual void UserCreateOutputObjects(); | |
38 | virtual void UserExec(Option_t* opt); | |
39 | virtual void Terminate(Option_t* opt); | |
40 | ||
41 | // customized methods (to be implemented in derived classes) | |
42 | virtual void RsnUserCreateOutputObjects(); | |
43 | virtual void RsnUserExec(Option_t*); | |
44 | virtual void RsnTerminate(Option_t*); | |
45 | ||
46 | // event pre-processing functions | |
47 | virtual Bool_t EventProcess(); | |
48 | ||
49 | // getters | |
50 | AliRsnEvent* GetRsnEvent() {return &fRsnEvent;} | |
51 | AliRsnVATProcessInfo* GetInfo() {return &fTaskInfo;} | |
52 | ||
53 | // setters | |
54 | void SetMCOnly(Bool_t mcOnly = kTRUE) {fMCOnly = mcOnly;} | |
55 | void SetLogType(AliLog::EType_t type, const char *classes = "") {fLogType = type; fLogClassesString = classes;} | |
56 | void SetPrintInfoNumber(const Long64_t &num = 100) {fTaskInfo.SetPrintInfoNumber(num);} | |
57 | ||
58 | protected: | |
59 | ||
60 | AliLog::EType_t fLogType; // log type | |
61 | TString fLogClassesString; // all classes string divided with ":" | |
62 | ||
63 | AliESDEvent *fESDEvent; // ESD event | |
64 | AliMCEvent *fMCEvent; // MC event | |
65 | AliAODEvent *fAODEventIn; // AOD event from input | |
66 | AliAODEvent *fAODEventOut; // AOD event from output from previous taks | |
67 | ||
68 | Bool_t fMCOnly; // use only MC information | |
69 | AliRsnEvent fRsnEvent; // interface to event for RSN package | |
70 | ||
71 | TList *fInfoList; //! output list for informations | |
72 | AliRsnVATProcessInfo fTaskInfo; // task info | |
73 | ||
74 | void SetDebugForAllClasses(); | |
75 | ||
76 | ClassDef(AliRsnVAnalysisTaskSE, 1) | |
4fbb2459 | 77 | }; |
78 | ||
79 | #endif |