]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FLOW/AliFlowTasks/AliAnalysisTaskFlowEvent.h
allow to cut on multiplicity
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowTasks / AliAnalysisTaskFlowEvent.h
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3 /* $Id: $ */
4
5 //////////////////////////////////////////////////////
6 // AliAnalysisTaskFlowEvent:
7 // analysis task to fill the flow event 
8 // and make it available to the flow analysis methods.
9 //////////////////////////////////////////////////////
10
11
12 #ifndef AliAnalysisTaskFlowEvent_H
13 #define AliAnalysisTaskFlowEvent_H
14
15 class AliESDEvent;
16 class AliAODEvent;
17 class AliCFManager;
18 class AliFlowEventSimpleMaker;
19 class TList;
20
21 #include "TString.h"
22 #include "AliAnalysisTask.h"
23
24 class AliAnalysisTaskFlowEvent : public AliAnalysisTask {
25  public:
26   AliAnalysisTaskFlowEvent();
27   AliAnalysisTaskFlowEvent(const char *name,Bool_t QAon);
28   virtual ~AliAnalysisTaskFlowEvent();
29   
30   virtual void   ConnectInputData(Option_t *);
31   virtual void   CreateOutputObjects();
32   virtual void   Exec(Option_t *option);
33   virtual void   Terminate(Option_t *);
34
35   void    SetAnalysisType(TString type){ this->fAnalysisType = type; }
36   TString GetAnalysisType() const      { return this->fAnalysisType; }
37
38   void    SetMinMult(Int_t multmin)    {this->fMinMult = multmin; }
39   Int_t   GetMinMult() const           {return this->fMinMult; }
40   void    SetMaxMult(Int_t multmax)    {this->fMaxMult = multmax; }
41   Int_t   GetMaxMult() const           {return this->fMaxMult; }
42
43
44   void          SetCFManager1(AliCFManager* cfmgr) {this->fCFManager1 = cfmgr; } 
45   AliCFManager* GetCFManager1()           {return this->fCFManager1; }
46   void          SetCFManager2(AliCFManager* cfmgr) {this->fCFManager2 = cfmgr; } 
47   AliCFManager* GetCFManager2()           {return this->fCFManager2; }
48   void          SetQAList1(TList* list)   {this->fQAInt = list; }
49   TList*        GetQAList1()              {return this->fQAInt; }
50   void          SetQAList2(TList* list)   {this->fQADiff = list; }
51   TList*        GetQAList2()              {return this->fQADiff; }
52   void          SetQAOn(Bool_t kt)        {this->fQA = kt; }
53   Bool_t        GetQAOn()                 {return this->fQA; }
54
55  private:
56
57   AliAnalysisTaskFlowEvent(const AliAnalysisTaskFlowEvent& aAnalysisTask);
58   AliAnalysisTaskFlowEvent& operator=(const AliAnalysisTaskFlowEvent& aAnalysisTask); 
59
60   //  TFile*        fOutputFile;              // temporary output file for testing
61   AliESDEvent*  fESD;                     // ESD object
62   AliAODEvent*  fAOD;                     // AOD object
63   AliFlowEventSimpleMaker* fEventMaker;   // FlowEventSimple maker object
64   TString       fAnalysisType;            // can be MC, ESD or AOD
65   Int_t         fMinMult;                 // Minimum multiplicity from tracks selected using CORRFW
66   Int_t         fMaxMult;                 // Maximum multiplicity from tracks selected using CORRFW
67   AliCFManager* fCFManager1;              // correction framework manager
68   AliCFManager* fCFManager2;              // correction framework manager
69   TList*        fQAInt;                   // QA histogram list
70   TList*        fQADiff;                  // QA histogram list
71   Bool_t        fQA;                      // flag to set the filling of the QA hostograms
72
73   ClassDef(AliAnalysisTaskFlowEvent, 1); // example of analysis
74 };
75
76 #endif