AliPhysics  3b4a69f (3b4a69f)
AliAnalysisTaskEA.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKEA_H
2 #define ALIANALYSISTASKEA_H
3 
4 
5 class TH1I;
6 class TH1F;
7 class TF1;
8 class TH2F;
9 class TH2D;
10 class TH1D;
11 class TArrayD;
12 class TArrayF;
13 class THnSparse;
14 class TProfile;
15 class TList;
16 class TClonesArray;
17 class TString;
18 class AliEmcalJet;
19 class AliRhoParameter;
20 class AliVParticle;
21 class AliLog;
22 class AliAnalysisUtils;
23 class TRandom3;
24 class AliJetContainer;
27 class AliMultSelection;
28 
29 #include <vector>
30 using std::vector;
31 
33 #include "AliEventCuts.h"
34 #include "AliFiducialCut.h"
35 #include "AliEMCALRecoUtils.h"
36 
37 
38 // ANALYSIS OF EVENT ACTIVITY WITH HIGH PT HADRON BIAS
39 // Author Filip Krizek (25 OCT 2018)
40 
42  public:
43 
44  enum Analysis {
47  fkTTbins = 20 //maximum number of TT bins
48  };
49 
50 
51 
52  // ######### CONTRUCTORS/DESTRUCTORS AND STD FUNCTIONS
54  AliAnalysisTaskEA(const char *name);
55  virtual ~AliAnalysisTaskEA();
57  void Terminate(Option_t *);
58 
59 
60  // ######### SETTERS/GETTERS
61  void SetMC(Int_t bMC){
62  fMC = bMC;
63  }
64 
66  void SetUsePileUpCut (Bool_t val) {fUsePileUpCut = val;}
67 
68  void SetAcceptanceWindows(Double_t trackEta){
69  fTrackEtaWindow = trackEta;
70  }
71 
72 
73  void SetVertexCut(Double_t vz){ fZVertexCut = vz; }
74  void SetMinTrackPt(Double_t mpt){ fMinTrackPt = mpt;}
75 
76  void SetExternalRhoTaskName(const char* name) {fRhoTaskName = name;}
77  void SetExternalRhoTaskNameMC(const char* name) {fRhoTaskNameMC = name;}
78 
79  void SetTrackContainerName(const char* name){ fMyTrackContainerName = name;}
81 
82  void SetJetContainerName(const char* name){ fMyJetContainerName = name;}
83  void SetMCJetContainerName(const char* name){ fMyJetParticleContainerName = name;}
86 
89  Bool_t PreSelection(AliVCluster* cluster);
90  Bool_t FinalClusterCuts(AliVCluster* cluster);
91 
93  Bool_t Run();
95 
96 
97  private:
98 
99 
100  // ######### CHECK FUNCTIONS
101  Bool_t IsTrackInAcceptance(AliVParticle* track, Bool_t isGen=0);
102  Bool_t IsEventInAcceptance(AliVEvent* event);
103 
104 
105  // ######### STANDARD FUNCTIONS
106  void ExecOnceLocal();
107 
109 
110  // ########## USAGE TRIGGERS
111  Bool_t fUseDefaultVertexCut; // trigger if automatic vertex cut from helper class should be done
112  Bool_t fUsePileUpCut; // trigger if pileup cut should be done
113 
114 
115  // ########## SOURCE INFORMATION
116  TString fMyTrackContainerName; // name of detector level track container
117  TString fMyParticleContainerName; // name of particle level MC particle container
118  TString fMyJetContainerName; // name of detector level jet container
119  TString fMyJetParticleContainerName; // name of particle level MC jet container
120 
125 
126  TString fRhoTaskName; // name of rho CMS bg task for this analysis
127  TString fRhoTaskNameMC; // MC name of rho CMS bg task for this analysis
128 
129 
130  // ########## CENTRALITY
132  AliMultSelection* fMultSelection;
133 
134  char fTrigClass[1000];
137 
143 
148  //
151  //
157  //
160 
169 
170 
171  // ########## CUTS
172  Double_t fTrackEtaWindow; //gc +- window in eta for tracks
173  Double_t fMinTrackPt; //gc Min track pt to be accepted
174 
175  // ########## GENERAL ////VARS
176  Bool_t fMC; // real data or MC flag
177  AliAnalysisUtils* fHelperClass;
179 
180 
182 
183  TH1F *fhVertexZ;
184 
189 
190 
191  Double_t fZVertexCut; // vertex cut in z
192 
193  Int_t fnHadronTTBins; // number of TT bins
194  Int_t fnJetChTTBins; // number of TT bins
195  Int_t fHadronTTLowPt[fkTTbins]; // low pt TT range
196  Int_t fHadronTTHighPt[fkTTbins]; // low pt TT range
197  Int_t fJetChTTLowPt[fkTTbins]; // low pt TT range
198  Int_t fJetChTTHighPt[fkTTbins]; // low pt TT range
199 
200 
203 
206 
207  ClassDef(AliAnalysisTaskEA, 1); // Charged jet analysis for pAliAnalysisTaskHJetSpectra/home/fkrizek/z501.ALIC
208 
209 };
210 #endif
AliAnalysisUtils * fHelperClass
void SetVertexCut(Double_t vz)
Bool_t FillHistograms()
Function filling histograms.
Float_t fCentralityZNC
Centrality from ZNA.
Bool_t fVertexer3d
Z vertex from ITS.
TH2F * fhTrackEtaIncl
minimum bias phi inclusive
Int_t fJetChTTHighPt[fkTTbins]
double Double_t
Definition: External.C:58
Definition: External.C:236
void SetMCParticleContainerName(const char *name)
Int_t fNClusters[2]
no. tracklets
Float_t fZPCtowerLG[5]
ZNC 5 tower signals.
Float_t fCentralityV0C
Centrality from V0A.
Container with name, TClonesArray and cuts for particles.
void SetExternalRhoTaskNameMC(const char *name)
TString fMyParticleContainerName
Float_t fZNCtower[5]
ZEM2 Energy.
Bool_t fIsEmcalTrig
triggered by Min Bias Trig
TH2F * fhTrackPhiIncl
gc vertexZ inclusive
void SetExternalRhoTaskName(const char *name)
TH1I * fHistEvtSelection
gc trigger if tracks/jets are loaded initiates calling ExecOnce
void SetAcceptanceWindows(Double_t trackEta)
TH1F * fhVertexZ
gc event statistics
Bool_t PreSelection(AliVCluster *cluster)
AliAnalysisTaskEA & operator=(const AliAnalysisTaskEA &)
Float_t fMultV0A
V0C decision.
TH2F * fhJetEtaIncl
minimum bias phi inclusive
Int_t fJetChTT[fkTTbins]
array which stores the number of triggers in given event
void SetJetChTT(Int_t tl, Int_t th)
Int_t fHadronTTHighPt[fkTTbins]
Container for particles within the EMCAL framework.
Float_t fZPAtower[5]
ZNA 5 tower signals.
Float_t fMultV0C
mult. V0A
Float_t fZPCtower[5]
ZNC 5 tower signals.
int Int_t
Definition: External.C:63
Definition: External.C:204
Int_t fNTracklets
Is vertex from 3d vertexer?
float Float_t
Definition: External.C:68
AliParticleContainer * fParticleContainerPartLevel
detector level track container
void SetUsePileUpCut(Bool_t val)
Float_t fCentralityV0A
triggered by EMCAL
Double_t fxVertex
Centrality from ZNC.
Definition: External.C:228
Float_t fZPAtowerLG[5]
ZNA 5 tower signals.
Definition: External.C:212
Int_t fIsV0CTriggered
VOA decision.
Int_t fHadronTT[fkTTbins]
TString fMyJetParticleContainerName
Float_t fCentralityZNA
Centrality from Clusters in layer 1.
Bool_t fIsMinBiasTrig
fired trigger classes
void SetJetContainerName(const char *name)
char fTrigClass[1000]
object which handels centrality
Float_t fZNAtowerLG[5]
ZPC 5 tower signals.
Bool_t FinalClusterCuts(AliVCluster *cluster)
Float_t fZEM2Energy
ZEM1 Energy.
Double_t fTrackEtaWindow
ZPA 5 tower signals.
Float_t fZEM1Energy
V0 ring mult.
Double_t fZVertexCut
minimum bias eta inclusive
void SetTrackContainerName(const char *name)
Bool_t RetrieveEventObjects()
Retrieve common objects from event.
TH2F * fhJetPhiIncl
minimum bias eta inclusive
Bool_t isMC
void SetMC(Int_t bMC)
void Terminate(Option_t *)
Double_t fyVertex
X vertex from ITS.
Int_t fJetChTTLowPt[fkTTbins]
Float_t fZNAtower[5]
ZPC 5 tower signals.
Base task in the EMCAL jet framework.
Double_t fzVertex
Y vertex from ITS.
Represent a jet reconstructed using the EMCal jet framework.
Definition: AliEmcalJet.h:51
AliJetContainer * fJetContainerPartLevel
detector level jet container
Float_t fCentralityCL1
Centrality from V0C.
AliJetContainer * fJetContainerDetLevel
particle level container with particles
Bool_t IsTrackInAcceptance(AliVParticle *track, Bool_t isGen=0)
const char Option_t
Definition: External.C:48
AliTrackContainer * fTrkContainerDetLevel
Bool_t Run()
Run function. This is the core function of the analysis and contains the user code. Therefore users have to implement this function.
bool Bool_t
Definition: External.C:53
Bool_t fInitializedLocal
gc Vertex selection helper
void SetHadronTT(Int_t tl, Int_t th)
TString fRhoTaskName
particle level jet container
void SetMinTrackPt(Double_t mpt)
Int_t fHadronTTLowPt[fkTTbins]
Bool_t IsEventInAcceptance(AliVEvent *event)
Container structure for EMCAL clusters.
Int_t fIsV0ATriggered
no. clusters on SPD layers
Float_t fZNCtowerLG[5]
ZPA 5 tower signals.
Container for jet within the EMCAL jet framework.
Double_t GetExternalRho(Bool_t isMC)
Float_t fRingMultV0[8]
mult. V0C
void SetMCJetContainerName(const char *name)
AliMultSelection * fMultSelection
output tree
void SetUseDefaultVertexCut(Bool_t val)