Taking into account that only 1 or 2 values may be present for the
[u/mrichter/AliRoot.git] / PWG2 / SPECTRA / AliAnalysisTaskProtons.h
CommitLineData
73aba974 1#ifndef ALIANALYSISTASKPROTONS_H
2#define ALIANALYSISTASKPROTONS_H
3
4//-------------------------------------------------------------------------
5// Class AliAnalysisTaskProton
6// This is the task for the baryon (proton) analysis
7//
8// Origin: Panos Christakoglou | Panos.Christakoglou@cern.ch
9//-------------------------------------------------------------------------
734d2c12 10
734d2c12 11class TList;
12class AliESDEvent;
b620b667 13class AliAODEvent;
e4358d7f 14class AliMCEvent;
c5ba3680 15class AliProtonAnalysis;
734d2c12 16
734d2c12 17#include "AliAnalysisTask.h"
18
19class AliAnalysisTaskProtons : public AliAnalysisTask {
20 public:
db10bcb0 21 AliAnalysisTaskProtons();
22 AliAnalysisTaskProtons(const char *name);
734d2c12 23 virtual ~AliAnalysisTaskProtons() {}
24
25 virtual void ConnectInputData(Option_t *);
26 virtual void CreateOutputObjects();
27 virtual void Exec(Option_t *option);
28 virtual void Terminate(Option_t *);
aafecd8b 29
73aba974 30 void SetAnalysisObject(AliProtonAnalysis *const analysis) {
0ab648ea 31 fProtonAnalysis = analysis;}
734d2c12 32
33 private:
6667f3a7 34 AliESDEvent *fESD; //ESD object
35 AliAODEvent *fAOD; //AOD object
36 AliMCEvent *fMC; //MC object
df01f00b 37
6667f3a7 38 TList *fList; //TList output object
df01f00b 39
6667f3a7 40 AliProtonAnalysis *fProtonAnalysis; //analysis object
df01f00b 41
6667f3a7 42 AliAnalysisTaskProtons(const AliAnalysisTaskProtons&); // not implemented
43 AliAnalysisTaskProtons& operator=(const AliAnalysisTaskProtons&); // not implemented
734d2c12 44
45 ClassDef(AliAnalysisTaskProtons, 1); // example of analysis
46};
47
48#endif