]>
Commit | Line | Data |
---|---|---|
e0331fd9 | 1 | #ifndef AliAnalysisTaskPhiCorrelations_H |
2 | #define AliAnalysisTaskPhiCorrelations_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | //////////////////////////////////////////////////////////////////////// | |
8 | // | |
9 | // Analysis class for Underlying Event studies w.r.t. leading track | |
10 | // | |
11 | // Look for correlations on the tranverse regions w.r.t | |
12 | // the leading track in the event | |
13 | // | |
14 | // This class needs input AODs. | |
15 | // The output is a list of analysis-specific containers. | |
16 | // | |
17 | // The AOD can be either connected to the InputEventHandler | |
18 | // for a chain of AOD files | |
19 | // or | |
20 | // to the OutputEventHandler | |
21 | // for a chain of ESD files, | |
22 | // in this case the class should be in the train after the jet-finder | |
23 | // | |
24 | // Authors: | |
25 | // Arian Abrahantes Quintana | |
26 | // Jan Fiete Grosse-Oetringhaus | |
27 | // Ernesto Lopez Torres | |
28 | // Sara Vallero | |
29 | // | |
30 | //////////////////////////////////////////////////////////////////////// | |
31 | ||
32 | #include "AliAnalysisTask.h" | |
33 | #include "AliUEHist.h" | |
2a910c25 | 34 | #include "TString.h" |
e0331fd9 | 35 | |
36 | class AliAODEvent; | |
37 | class AliAnalyseLeadingTrackUE; | |
38 | class AliInputEventHandler; | |
39 | class AliMCEvent; | |
40 | class AliMCEventHandler; | |
41 | class AliUEHistograms; | |
42 | class AliVParticle; | |
43 | class TH1D; | |
44 | class TObjArray; | |
2a910c25 | 45 | class AliEventPoolManager; |
e0331fd9 | 46 | |
47 | class AliAnalysisTaskPhiCorrelations : public AliAnalysisTask | |
48 | { | |
49 | public: | |
50 | AliAnalysisTaskPhiCorrelations(const char* name="AliAnalysisTaskPhiCorrelations"); | |
51 | virtual ~AliAnalysisTaskPhiCorrelations(); | |
52 | ||
53 | ||
54 | // Implementation of interace methods | |
55 | virtual void ConnectInputData(Option_t *); | |
56 | virtual void CreateOutputObjects(); | |
57 | virtual void Exec(Option_t *option); | |
58 | ||
59 | // Setters/Getters | |
60 | // general configuration | |
61 | virtual void SetDebugLevel( Int_t level ) { fDebug = level; } | |
62 | virtual void SetMode(Int_t mode) { fMode = mode; } | |
63 | virtual void SetReduceMemoryFootprint(Bool_t flag) { fReduceMemoryFootprint = flag; } | |
64 | ||
65 | // histogram settings | |
66 | void SetTrackingEfficiency( const TH1D* hist) { fkTrackingEfficiency = hist; } | |
67 | ||
68 | // for event QA | |
69 | void SetTracksInVertex( Int_t val ){ fnTracksVertex = val; } | |
70 | void SetZVertex( Double_t val ) { fZVertex = val; } | |
71 | ||
72 | // track cuts | |
73 | void SetTrackEtaCut( Double_t val ) { fTrackEtaCut = val; } | |
74 | void SetPtMin(Double_t val) { fPtMin = val; } | |
75 | void SetFilterBit( UInt_t val ) { fFilterBit = val; } | |
2a910c25 | 76 | |
e0331fd9 | 77 | void SetEventSelectionBit( UInt_t val ) { fSelectBit = val; } |
78 | void SetUseChargeHadrons( Bool_t val ) { fUseChargeHadrons = val; } | |
2a910c25 | 79 | void SetSelectCharge(Int_t selectCharge) { fSelectCharge = selectCharge; } |
80 | void SetCentralityMethod(const char* method) { fCentralityMethod = method; } | |
81 | ||
e0331fd9 | 82 | |
83 | private: | |
84 | AliAnalysisTaskPhiCorrelations(const AliAnalysisTaskPhiCorrelations &det); | |
85 | AliAnalysisTaskPhiCorrelations& operator=(const AliAnalysisTaskPhiCorrelations &det); | |
86 | void AddSettingsTree(); // add list of settings to output list | |
87 | // Analysis methods | |
88 | void AnalyseCorrectionMode(); // main algorithm to get correction maps | |
89 | void AnalyseDataMode(); // main algorithm to get raw distributions | |
90 | void Initialize(); // initialize some common pointer | |
91 | ||
92 | ||
93 | ||
94 | // General configuration | |
95 | Int_t fDebug; // Debug flag | |
96 | Int_t fMode; // fMode = 0: data-like analysis | |
97 | // fMode = 1: corrections analysis | |
98 | Bool_t fReduceMemoryFootprint; // reduce memory consumption by writing less debug histograms | |
99 | ||
100 | // Pointers to external UE classes | |
101 | AliAnalyseLeadingTrackUE* fAnalyseUE; //! points to class containing common analysis algorithms | |
102 | AliUEHistograms* fHistos; //! points to class to handle histograms/containers | |
103 | AliUEHistograms* fHistosMixed; //! points to class to handle mixed histograms/containers | |
104 | ||
105 | const TH1D* fkTrackingEfficiency; // used for study of bias by tracking | |
106 | ||
107 | // Handlers and events | |
108 | AliAODEvent* fAOD; //! AOD Event | |
109 | TClonesArray* fArrayMC; //! Array of MC particles | |
110 | AliInputEventHandler* fInputHandler; //! Generic InputEventHandler | |
111 | AliMCEvent* fMcEvent; //! MC event | |
112 | AliMCEventHandler* fMcHandler; //! MCEventHandler | |
2a910c25 | 113 | AliEventPoolManager* fPoolMgr; //! event pool manager |
e0331fd9 | 114 | |
115 | // Histogram settings | |
116 | TList* fListOfHistos; // Output list of containers | |
117 | ||
118 | // Event QA cuts | |
119 | Int_t fnTracksVertex; // QA tracks pointing to principal vertex (= 3 default) | |
120 | Double_t fZVertex; // Position of Vertex in Z direction | |
2a910c25 | 121 | TString fCentralityMethod; // Method to determine centrality |
e0331fd9 | 122 | |
123 | // Track cuts | |
124 | Double_t fTrackEtaCut; // Eta cut on particles | |
125 | Double_t fPtMin; // Min pT to start correlations | |
126 | UInt_t fFilterBit; // Select tracks from an specific track cut (default 0xFF all track selected) | |
127 | UInt_t fSelectBit; // Select events according to AliAnalysisTaskJetServices bit maps | |
128 | Bool_t fUseChargeHadrons; // Only use charge hadrons | |
129 | ||
2a910c25 | 130 | Int_t fSelectCharge; // (un)like sign selection when building correlations: 0: no selection; 1: unlike sign; 2: like sign |
131 | ||
e0331fd9 | 132 | ClassDef( AliAnalysisTaskPhiCorrelations, 1); // Analysis task for Underlying Event analysis w.r.t. leading track |
133 | }; | |
134 | ||
135 | #endif | |
136 | ||
137 |