Fixed bug in the computation of dip angle value
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnVAnalysisTaskSE.h
CommitLineData
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//
10#ifndef ALIRSNVANALYSISTASKSE_H
11#define ALIRSNVANALYSISTASKSE_H
12
13#include <TH1.h>
14
15#include "AliLog.h"
16
17#include "AliAnalysisTaskSE.h"
18
19#include "AliRsnEvent.h"
4fbb2459 20#include "AliRsnVATProcessInfo.h"
21
22class AliESDEvent;
23class AliAODEvent;
24class AliMCEvent;
25
26class AliRsnVAnalysisTaskSE : public AliAnalysisTaskSE
27{
28 public:
29 enum {
30 kMaxNumberOfOutputs=10
31 };
32
2dab9030 33 AliRsnVAnalysisTaskSE(const char *name = "AliRsnVAnalysisTaskSE", Bool_t mcOnly = kFALSE);
4fbb2459 34 AliRsnVAnalysisTaskSE(const AliRsnVAnalysisTaskSE& copy);
35 AliRsnVAnalysisTaskSE& operator= (const AliRsnVAnalysisTaskSE& /*copy*/) { return *this; }
36 virtual ~AliRsnVAnalysisTaskSE() {/* Does nothing*/;}
37
38 virtual void LocalInit();
cf4668f7 39 virtual Bool_t UserNotify();
4fbb2459 40 virtual void ConnectInputData(Option_t *opt);
41 // Implementation of interface methods
42 virtual void UserCreateOutputObjects();
43 virtual void UserExec(Option_t* opt);
44 virtual void Terminate(Option_t* opt);
45
46 // Implement this
47 virtual void RsnUserCreateOutputObjects();
48 virtual void RsnUserExec(Option_t*);
49 virtual void RsnTerminate(Option_t*);
50
51 virtual void FillInfo();
52
53 // Prior probs
968abd78 54 AliRsnEvent* GetRsnEvent() {return &fRsnEvent;}
55 AliRsnVATProcessInfo* GetInfo() {return &fTaskInfo;}
4fbb2459 56
57 void SetMCOnly(Bool_t mcOnly = kTRUE) {fMCOnly = mcOnly;}
9477aa42 58 void SetLogType(AliLog::EType_t type, TString allClasses = "");
4fbb2459 59 void SetPrintInfoNumber(const Long64_t &num = 100) { fTaskInfo.SetPrintInfoNumber(num); }
60
61 protected:
62
9477aa42 63 AliLog::EType_t fLogType; // log type
64 TString fLogClassesString;// all classes string divided with ":"
4fbb2459 65
66 AliESDEvent *fESDEvent; // ESD event
67 AliMCEvent *fMCEvent; // MC event
68 AliAODEvent *fAODEventIn; // AOD event from input
69 AliAODEvent *fAODEventOut; // AOD event from output from previous taks
70
71 Bool_t fMCOnly; // use only MC information
72 AliRsnEvent fRsnEvent; // interface to event for RSN package
4fbb2459 73
2dab9030 74 TList *fInfoList; //! output list for informations
9477aa42 75 AliRsnVATProcessInfo fTaskInfo; // task info
4fbb2459 76
9477aa42 77 void SetDebugForAllClasses();
4fbb2459 78
79 ClassDef(AliRsnVAnalysisTaskSE, 1)
80};
81
82#endif