AliPhysics  a6017e1 (a6017e1)
AliAnalysisTaskEMCALAlig.h
Go to the documentation of this file.
1 #ifndef AliAnalysisTaskEMCALAlig_H
2 #define AliAnalysisTaskEMCALAlig_H
3 
4 //_________________________________________________________________________
9 // Matching residual for electrons on EMCal.
10 // Both default residual (until the surface) and a improved one, using
11 // electron mass hypotehsis and propagation until the cluster, are available
14 //_________________________________________________________________________
15 
16 
17 #include "AliAnalysisTaskEmcal.h"
18 #include "TObject.h"
19 
20 class AliEMCALRecoUtils;
21 class AliPIDResponse;
22 class TH1F;
23 class TH2F;
24 class AliEMCALGeometry;
25 class TTree;
26 
27 class ElectronForAlignment : public TObject {
28 public:
29 
30  //General Track properties
40 
41 
42  //cluster properties
51 
52  //mathing properties using electron mass
56 
57  //PID properties
59 
61  {
62  charge = -9;
63  pt = -999;
64  pz = -999;
65  eta_track = -999;
66  phi_track = -999;
67  x_track = -999;
68  y_track = -999;
69  z_track = -999;
70  zvtx = -999;
71 
72  energy = -999;
73  M20 = -999;
74  M02 = -999;
75  eta_cluster = -999;
76  phi_cluster = -999;
77  x_cluster = -999;
78  y_cluster = -999;
79  z_cluster = -999;
80 
81 
82  super_module_number = 99;
83  distance_bad_channel = -99;
84  is_in_fid_region = kFALSE;
85 
86  n_sigma_electron_TPC = -999;
87  }
88 
89  void Reset()
90  {
91  charge = -9;
92  pt = -999;
93  pz = -999;
94  eta_track = -999;
95  phi_track = -999;
96  x_track = -999;
97  y_track = -999;
98  z_track = -999;
99  zvtx = -999;
100 
101 
102  energy = -999;
103  M20 = -999;
104  M02 = -999;
105  eta_cluster = -999;
106  phi_cluster = -999;
107  x_cluster = -999;
108  y_cluster = -999;
109  z_cluster = -999;
110 
111 
112  super_module_number = 99;
113  distance_bad_channel = -99;
114  is_in_fid_region = kFALSE;
115  n_sigma_electron_TPC = -999;
116  }
117 
118  //Default Initializer
119 
120  ClassDef(ElectronForAlignment, 3);
121 
122 };
123 
124 
126 public:
127 
129  AliAnalysisTaskEMCALAlig(const char *name);
130  virtual ~AliAnalysisTaskEMCALAlig();
131 
132  void UserCreateOutputObjects();
133  void Terminate(Option_t *option);
134  void SetSuffix(TString suff) { fTreeSuffix = suff;};
135 
136 protected:
137  void ExecOnce();
138  Bool_t FillHistograms();
139  Bool_t Run();
140 
141  void DoTrackLoop();
142 
143 
145  AliEMCALGeometry *fEMCALGeo;
146  AliPIDResponse *fPIDResponse;
147 
150  TString fTreeSuffix; // Suffix for tree name
151 
152 
153 private:
154  AliAnalysisTaskEMCALAlig(const AliAnalysisTaskEMCALAlig&) ; // not implemented
155  AliAnalysisTaskEMCALAlig &operator=(const AliAnalysisTaskEMCALAlig&); // not implemented
156 
158  ClassDef(AliAnalysisTaskEMCALAlig, 3);
160 
161 };
162 #endif
ElectronForAlignment fElectronInformation
PID response task used to perform electron identification.
Definition: External.C:236
AliPIDResponse * fPIDResponse
EMCAL geometry class.
Base task in the EMCAL framework.
TTree * fElectronTree
Object to hold the electron information.
Some utilities for cluster and cell treatment.
int Int_t
Definition: External.C:63
TString fTreeSuffix
Electron tree output.
float Float_t
Definition: External.C:68
short Short_t
Definition: External.C:23
unsigned short UShort_t
Definition: External.C:28
const char Option_t
Definition: External.C:48
AliEMCALGeometry * fEMCALGeo
EMCAL Reco utils used to recalculate the matching.
bool Bool_t
Definition: External.C:53