nbins added as data member + axes renamed
[u/mrichter/AliRoot.git] / PWGLF / SPECTRA / PiKaPr / TestAOD / AliAnalysisTaskSpectraAllChAOD.h
CommitLineData
48c4d28e 1#ifndef ALIANALYSISTASKSPECTRAALLCHAOD_H\r
2#define ALIANALYSISTASKSPECTRAALLCHAOD_H\r
3\r
4/* See cxx source for full Copyright notice */\r
5\r
6//-------------------------------------------------------------------------\r
7// AliAnalysisTaskSpectraAllChAOD\r
8//\r
9//\r
10//\r
11//\r
12// Author: Leonardo Milano, CERN\r
13//-------------------------------------------------------------------------\r
14\r
48c4d28e 15class AliAODEvent;\r
16class AliSpectraAODTrackCuts;\r
17class AliSpectraAODEventCuts;\r
30cca7e7 18class AliHelperPID;\r
48c4d28e 19\r
30cca7e7 20#include "AliAnalysisTaskSE.h"\r
48c4d28e 21\r
22class AliAnalysisTaskSpectraAllChAOD : public AliAnalysisTaskSE\r
23{\r
24 public:\r
48c4d28e 25 // constructors\r
30cca7e7 26 AliAnalysisTaskSpectraAllChAOD() : AliAnalysisTaskSE(),\r
27 fAOD(0x0),\r
28 fTrackCuts(0x0),\r
29 fEventCuts(0x0),\r
30 fHelperPID(0x0),\r
31 fIsMC(0),\r
8f729f44
LM
32 fOutput(0x0),\r
33 fnCentBins(20),\r
34 fnQvecBins(50)\r
30cca7e7 35 {}\r
48c4d28e 36 AliAnalysisTaskSpectraAllChAOD(const char *name);\r
8f729f44
LM
37 virtual ~AliAnalysisTaskSpectraAllChAOD() {\r
38 Printf("calling detructor of AliAnalysisTaskSpectraAllChAOD - To be implemented");\r
39 }\r
30cca7e7 40 \r
48c4d28e 41 void SetIsMC(Bool_t isMC = kFALSE) {fIsMC = isMC; };\r
42 Bool_t GetIsMC() const { return fIsMC;};\r
43 \r
44 virtual void UserCreateOutputObjects();\r
45 virtual void UserExec(Option_t *option);\r
46 virtual void Terminate(Option_t *);\r
47 \r
30cca7e7 48 AliSpectraAODTrackCuts * GetTrackCuts() { return fTrackCuts; }\r
49 AliSpectraAODEventCuts * GetEventCuts() { return fEventCuts; }\r
50 AliHelperPID * GetHelperPID() { return fHelperPID; }\r
51 TList * GetOutputList() { return fOutput; }\r
52 \r
53 void SetTrackCuts(AliSpectraAODTrackCuts * tc) { fTrackCuts = tc; }\r
54 void SetEventCuts(AliSpectraAODEventCuts * vc) { fEventCuts = vc; }\r
55 void SetHelperPID(AliHelperPID* pid) { fHelperPID = pid; }\r
8f729f44
LM
56 void SetnCentBins(Int_t val) { fnCentBins = val; }\r
57 void SetnQvecBins(Int_t val) { fnQvecBins = val; }\r
48c4d28e 58 \r
59 private:\r
60 \r
30cca7e7 61 AliAODEvent * fAOD; //! AOD object\r
48c4d28e 62 AliSpectraAODTrackCuts * fTrackCuts; // Track Cuts\r
63 AliSpectraAODEventCuts * fEventCuts; // Event Cuts\r
30cca7e7 64 AliHelperPID * fHelperPID; // points to class for PID\r
65 Bool_t fIsMC; // true if processing MC\r
66 TList * fOutput; // output list\r
8f729f44
LM
67 Int_t fnCentBins; // number of bins for the centrality axis\r
68 Int_t fnQvecBins; // number of bins for the q vector axis\r
48c4d28e 69 AliAnalysisTaskSpectraAllChAOD(const AliAnalysisTaskSpectraAllChAOD&);\r
70 AliAnalysisTaskSpectraAllChAOD& operator=(const AliAnalysisTaskSpectraAllChAOD&);\r
71 \r
8f729f44 72 ClassDef(AliAnalysisTaskSpectraAllChAOD, 3);\r
48c4d28e 73};\r
74\r
75#endif\r