AliPhysics  eae49ab (eae49ab)
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
36 
37  //cluster properties
44 
45  //mathing properties using default matcher
51 
52  //mathing properties using electron mass
58 
59  //PID properties
61 
63  {
64  //General Track properties
65  charge = -9;
66  pt = -999;
67  pz = -999;
68  eta_track = -999;
69  phi_track = -999;
70 
71  //cluster properties
72  energy = -999;
73  M20 = -999;
74  M02 = -999;
75  eta_cluster = -999;
76  phi_cluster = -999;
77 
78  //mathing properties using default matcher
79  x_resitual_def = -999;
80  y_resitual_def = -999;
81  z_resitual_def = -999;
82  phi_resitual_def = -999;
83  eta_resitual_def = -999;
84 
85  //mathing properties using electron mass
86  x_resitual_e = -999;
87  y_resitual_e = -999;
88  z_resitual_e = -999;
89  phi_resitual_e = -999;
90  eta_resitual_e = -999;
91 
92  super_module_number = 99;
93  //PID properties
94  n_sigma_electron_TPC = -999;
95  }
96 
97  void Reset()
98  {
99  //General Track properties
100  charge = -9;
101  pt = -999;
102  pz = -999;
103  eta_track = -999;
104  phi_track = -999;
105 
106  //cluster properties
107  energy = -999;
108  M20 = -999;
109  M02 = -999;
110  eta_cluster = -999;
111  phi_cluster = -999;
112 
113  //mathing properties using default matcher
114  x_resitual_def = -999;
115  y_resitual_def = -999;
116  z_resitual_def = -999;
117  phi_resitual_def = -999;
118  eta_resitual_def = -999;
119 
120  //mathing properties using electron mass
121  x_resitual_e = -999;
122  y_resitual_e = -999;
123  z_resitual_e = -999;
124  phi_resitual_e = -999;
125  eta_resitual_e = -999;
126 
127  super_module_number = 99;
128  //PID properties
129  n_sigma_electron_TPC = -999;
130  }
131 
132  //Default Initializer
133 
134  ClassDef(ElectronForAlignment, 2);
135 
136 };
137 
138 
140 public:
141 
143  AliAnalysisTaskEMCALAlig(const char *name);
144  virtual ~AliAnalysisTaskEMCALAlig();
145 
146  void UserCreateOutputObjects();
147  void Terminate(Option_t *option);
148  void SetSuffix(TString suff) { fTreeSuffix = suff;};
149 
150 protected:
151  void ExecOnce();
152  Bool_t FillHistograms();
153  Bool_t Run();
154 
155  void DoTrackLoop();
156 
157 
158  AliEMCALRecoUtils *fEMCALRecoUtils;
159  AliEMCALGeometry *fEMCALGeo;
160  AliPIDResponse *fPIDResponse;
161 
164  TString fTreeSuffix; // Suffix for tree name
165 
166 
167 private:
168  AliAnalysisTaskEMCALAlig(const AliAnalysisTaskEMCALAlig&) ; // not implemented
169  AliAnalysisTaskEMCALAlig &operator=(const AliAnalysisTaskEMCALAlig&); // not implemented
170 
172  ClassDef(AliAnalysisTaskEMCALAlig, 3);
174 
175 };
176 #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.
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