fixed the reading of the FMD primary data (speed issue)
[u/mrichter/AliRoot.git] / FMD / analysis / AliFMDAnalysisTaskSE.h
1 #ifndef ALIFMDANALYSISTASKSE_H
2 #define ALIFMDANALYSISTASKSE_H
3
4 #include "AliAnalysisTaskSE.h"
5 #include "AliFMDAnalysisTaskSharing.h"
6 #include "AliFMDAnalysisTaskDensity.h"
7 #include "AliFMDAnalysisTaskBackgroundCorrection.h"
8 #include "AliFMDAnalysisTaskDndeta.h"
9
10 class AliFMDAnalysisTaskSE : public AliAnalysisTaskSE
11 {
12  public:
13     AliFMDAnalysisTaskSE();
14     AliFMDAnalysisTaskSE(const char* name);
15     virtual ~AliFMDAnalysisTaskSE() {;}
16  AliFMDAnalysisTaskSE(const AliFMDAnalysisTaskSE& o) : AliAnalysisTaskSE(),
17       fListOfHistos(o.fListOfHistos),
18       fSharing(o.fSharing),
19       fDensity(o.fDensity),
20       fBackground(o.fBackground),
21       fDndeta(o.fDndeta),
22       fPrimary(o.fPrimary),
23       fRecordHits(o.fRecordHits) {}
24     AliFMDAnalysisTaskSE& operator=(const AliFMDAnalysisTaskSE&) { return *this; }
25     
26     virtual void Init();
27     virtual void UserCreateOutputObjects();
28     virtual void UserExec(Option_t* /*option*/);
29     void  Terminate(Option_t */*option*/);
30     void  SetAnalyzePrimary(Bool_t prim) {fPrimary = prim;}
31     void  SetRecordHits(Bool_t recordhits) {fRecordHits = recordhits;}
32  private:
33     
34     TList* fListOfHistos;
35     AliFMDAnalysisTaskSharing              fSharing;
36     AliFMDAnalysisTaskDensity              fDensity;
37     AliFMDAnalysisTaskBackgroundCorrection fBackground;
38     AliFMDAnalysisTaskDndeta               fDndeta;
39     Bool_t                                 fPrimary;
40     Bool_t                                 fRecordHits;
41     ClassDef(AliFMDAnalysisTaskSE, 1);
42
43 };
44 #endif