Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / ANALYSIS / AliVZEROEPSelectionTask.h
CommitLineData
0643f5a7 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
18class TProfile;
19
20class AliOADBContainer;
21class AliEventplane;
22
23class 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;}
d53113d9 37 void SetEventplaneParams(AliEventplane *esdEP,Float_t percentile);
0643f5a7 38 private:
d53113d9 39
0643f5a7 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
cc4d0e9c 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)
0643f5a7 55
cc4d0e9c 56 ClassDef(AliVZEROEPSelectionTask,2)
0643f5a7 57};
58
59#endif
60