1 #ifndef ALIVZEROEPSELECTIONTASK_H
2 #define ALIVZEROEPSELECTIONTASK_H
4 /* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 //*****************************************************
8 // Class AliVZEROEPSelectionTask
9 // author: Cvetan Cheshkov
11 // This analysis task reads the OADB and
12 // provides the parameters needed to flatten
13 // the VZERO event plane in AliEventplane
14 //*****************************************************
16 #include "AliAnalysisTaskSE.h"
20 class AliOADBContainer;
23 class AliVZEROEPSelectionTask : public AliAnalysisTaskSE {
26 AliVZEROEPSelectionTask();
27 AliVZEROEPSelectionTask(const char *name);
28 virtual ~AliVZEROEPSelectionTask();
30 // Implementation of interface methods
31 virtual void UserCreateOutputObjects();
32 virtual void UserExec(Option_t *option);
33 virtual void Terminate(Option_t *option);
35 void SetUserParams(const char* inFileName, const char* listName);
36 void UseVZEROCentrality() {fUseVZEROCentrality = kTRUE;}
37 void SetEventplaneParams(AliEventplane *esdEP,Float_t percentile);
40 void SetHistograms(TList *list);
41 void SetParamsFromOADB();
43 AliVZEROEPSelectionTask(const AliVZEROEPSelectionTask& ep);
44 AliVZEROEPSelectionTask& operator= (const AliVZEROEPSelectionTask& ep);
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
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)
56 ClassDef(AliVZEROEPSelectionTask,2)