]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ANALYSIS/AliVZEROEPSelectionTask.h
Keep track of used tracks also when adding normal tracks, not only secondaries
[u/mrichter/AliRoot.git] / ANALYSIS / AliVZEROEPSelectionTask.h
1 #ifndef ALIVZEROEPSELECTIONTASK_H
2 #define ALIVZEROEPSELECTIONTASK_H
3
4 /* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 //*****************************************************
8 //   Class AliVZEROEPSelectionTask
9 //   author: Cvetan Cheshkov
10 //   30/01/2012
11 //   This analysis task reads the OADB and
12 //   provides the parameters needed to flatten
13 //   the VZERO event plane in AliEventplane
14 //*****************************************************
15
16 #include "AliAnalysisTaskSE.h"
17
18 class TProfile;
19
20 class AliOADBContainer;
21 class AliEventplane;
22
23 class AliVZEROEPSelectionTask : public AliAnalysisTaskSE {
24
25  public:
26   AliVZEROEPSelectionTask();
27   AliVZEROEPSelectionTask(const char *name);
28   virtual ~AliVZEROEPSelectionTask();
29
30   // Implementation of interface methods
31   virtual void UserCreateOutputObjects();
32   virtual void UserExec(Option_t *option);
33   virtual void Terminate(Option_t *option);
34   
35   void SetUserParams(const char* inFileName, const char* listName);
36   void UseVZEROCentrality() {fUseVZEROCentrality = kTRUE;}
37   void SetEventplaneParams(AliEventplane *esdEP,Float_t percentile);  
38  private:
39
40   void SetHistograms(TList *list);
41   void SetParamsFromOADB();
42    
43   AliVZEROEPSelectionTask(const AliVZEROEPSelectionTask& ep);
44   AliVZEROEPSelectionTask& operator= (const AliVZEROEPSelectionTask& ep); 
45
46   Int_t    fRunNumber;                  // runnumber
47   Bool_t   fUserParams;                 // in case one wants to use custom flatenning params
48   Bool_t   fUseVZEROCentrality;         // use VZERO centrality estimator instead of SPD
49   AliOADBContainer* fVZEROEPContainer;  // VZERO event-plane OADB Container
50
51   TProfile *fX2In[11];                   // Profile histogram for Q^2_x (read from input file)
52   TProfile *fY2In[11];                   // Profile histogram for Q^2_y (read from input file)
53   TProfile *fX2Y2In[11];                 // Profile histogram for Q^2_x*Q^2_y (read from input file)
54   TProfile *fCos8PsiIn[11];              // Profile histogram for Cos(8*Psi) (read from input file)
55
56   ClassDef(AliVZEROEPSelectionTask,2) 
57 };
58
59 #endif
60