-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAliAnalysisTaskMatchTriggerForward.h
More file actions
430 lines (365 loc) · 20 KB
/
Copy pathAliAnalysisTaskMatchTriggerForward.h
File metadata and controls
430 lines (365 loc) · 20 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. */
/* See cxx source for full Copyright notice */
/* $Id$ */
#ifndef AliAnalysisTaskMatchTriggerForward_H
#define AliAnalysisTaskMatchTriggerForward_H
/**
* @file AliAnalysisTaskMatchTriggerForward.h
* @author Simone Ragoni <Simone.Ragoni@cern.ch>
* @date February 2019
*/
#include "AliAnalysisTaskSE.h"
#include "TBits.h"
class AliMuonTrackCuts; // Include class for standard muon tack cuts
/**
* \file AliAnalysisTaskMatchTriggerForward.h
* \brief Contains the declaration of the AliAnalysisTaskMatchTriggerForward class
*/
/**
* \class AliAnalysisTaskMatchTriggerForward
* \brief Contains the tools to every part of my analysis
*/
class AliAnalysisTaskMatchTriggerForward : public AliAnalysisTaskSE
{
public:
/**
* Create a new AliAnalysisTaskMatchTriggerForward with
* default constructor. Based on my understanding
* this is mostly related to input/output
* processes.
*/
AliAnalysisTaskMatchTriggerForward();
/**
* Create a new AliAnalysisTaskMatchTriggerForward with
* a specific name. This serves to instantiate
* the AliAnalysisTaskSE object built with the
* constructor, that will take this specific
* name.
*
* \param name , the name taken by the AliAnalysisTaskSE object.
* \param isMC , 0 if Data, 1 if MC(look at the AddTask please).
*/
AliAnalysisTaskMatchTriggerForward(const char *name);
/**
* Virtual destructor for the class. It will
* take care of all the particular objects to be
* destroyed for the class.
*/
virtual ~AliAnalysisTaskMatchTriggerForward();
/**
* The function related to the instantiation of
* all the histograms and the output list.
*/
virtual void UserCreateOutputObjects();
/**
* Everything happens here. Here, the cuts are
* applied, the histograms are filled and the
* J/Psi peak is manifested inside the histograms.
*
* \param option , actually it is not used for now...
*/
virtual void UserExec(Option_t* option);
/**
* Called at the END of the analysis (when all
* events are processed). But it is not actually
* doing anything! I guess it is mostly needed
* for I/O purposes and GRID interfacing...
*/
virtual void Terminate(Option_t* option);
/**
* Substitutes the trigger in MC.
*/
Bool_t IsTriggered();
/**
* Implement the NotifyRun to search for the new
* parameters at each new runs. Sets the run
* number for the successive cuts.
*/
virtual void NotifyRun();
/**
* Set the cap for the luminosity.
* For 2018 MC this is 40k*lumi per run...
* For 2015 it is different because the
* amount of kCohJPsiToMu is double the
* other processes!
*/
virtual void SetLuminosityCap();
/**
* This function is needed to record the MC
* truth information inside the nanoAODs.
* Everything MC related should go in here.
* This should help for a subsequent merging
* of the MC and DATA classes.
*/
void ProcessMCParticles(AliMCEvent* fMCEvent);
/**
* Use the class as a data member. It contains
* the cuts for the muon track.
*/
AliMuonTrackCuts* fMuonTrackCuts;
private:
/// The input events for the analysis.
AliAODEvent* fAOD; //!
/**
* The output list containing all the histograms
* required for the analysis. In a second time
* I will probably make it so to include every
* possible cut variation to better compute the
* systematics.
*/
TList* fOutputList; //!
/**
* The corresponding MC event as explained in
* the Analysis Tutorial...
*/
AliMCEvent* fMCEvent; //!
/**
* Utility type histo. It counts the GOOD muons
* per event.
*/
TH1F* fNumberMuonsH; //!
/**
* As far as I understand, it should be the
* pseudorapidity distribution of the many muons.
*/
TH1F* fEtaMuonH; //!
/**
* Counter to check everything goes alright.
*/
TH1F* fCounterH; //!
/**
*
*/
TH1F* fRAbsMuonH; //!
/**
* This histogram records the number of entries
* against the respective run number.
*/
TH1F* fEntriesAgainstRunNumberH; //!
/**
* This histogram records the number of entries
* against the respective run number, but the
* binning is done properly, like normally
* found for this type of histograms.
*/
TH1F* fEntriesAgainstRunNumberProperlyH; //!
//_______________________________
// Efficiency plots.
/**
* This histogram shows the entries distribution
* per run of the RECONSTRUCTED level.
* This has to be divided by the corresponding
* fMCEfficiencyPerRunH to extract the
* efficiency on a run-by-run basis.
*/
TH1F* fEfficiencyPerRunH; //!
/**
* This histogram shows the entries distribution
* per run of the GENERATED level.
* I believe that the errors in each bin
* have to be set to 0...
* If this doesn't appear on the histograms,
* it is because this doesn't apply anymore
* and I forgot to eliminate the comment
* from here....
*/
TH1F* fMCEfficiencyPerRunH; //!
/**
* This histogram shows the entries distribution
* per run of the RECONSTRUCTED level.
* This has to be divided by the corresponding
* fMCEfficiencyPerRunH to extract the
* efficiency on a run-by-run basis.
* NOTE: this is with the GetTrigger() request.
*/
TH1F* fEfficiencyPerRunWithTriggeringH; //!
/**
* This array of histograms shows the
* distribution of the dead zones of the
* detector on a run-by-run basis.
* To avoid a complicated logic, I have
* declared 60k histograms.
* This is because there are runs from about
* 240k to 300k.
* However, this is too heavy for ROOT.
* Hence, I have declared them as
* SPARSE. Most of these 60k histograms
* are empty anyway, so it is best to save
* on space...
*/
TH2F* fDeadZoneEtaVsPhiPerRunH[364]; //! number of total runs
TH2F* fDeadZoneEtaVsPhiPerRunWithTriggeringH[364]; //! number of total runs
/**
* This histogram records the energy distri-
* bution of the neutron ZDC. This plot should
* show the relative components of the 0 neutron
* peak, the 1 neutron peak and possibly the
* 2 neutrons peak. Anything higher than that,
* requires help from the user and is more like
* a guess...
*/
TH1F* fZNCEnergyAgainstEntriesH; //!
/**
* This histogram records the energy distri-
* bution of the neutron ZDC. This plot should
* show the relative components of the 0 neutron
* peak, the 1 neutron peak and possibly the
* 2 neutrons peak. Anything higher than that,
* requires help from the user and is more like
* a guess...
*/
TH1F* fZNAEnergyAgainstEntriesH; //!
/**
* This histogram records the energy distri-
* bution of the neutron ZDC. BEFORE timing
* selection.
*/
TH1F* fZNCEnergyBeforeTimingSelectionH; //!
/**
* This histogram records the energy distri-
* bution of the neutron ZDC. BEFORE timing
* selection.
*/
TH1F* fZNAEnergyBeforeTimingSelectionH; //!
/**
* This histogram records the energy distri-
* bution of the neutron ZDC. CALIBRATED.
*/
TH1F* fZNCEnergyCalibratedH; //!
/**
* This histogram records the energy distri-
* bution of the neutron ZDC. CALIBRATED.
*/
TH1F* fZNAEnergyCalibratedH; //!
/**
* This histogram records the energy distri-
* bution of the neutron ZDC. UNCALIBRATED.
*/
TH1F* fZNCEnergyUncalibratedH; //!
/**
* This histogram records the energy distri-
* bution of the neutron ZDC. UNCALIBRATED.
*/
TH1F* fZNAEnergyUncalibratedH; //!
/**
* This histogram records the energy distri-
* bution of the neutron ZDC. CALIBRATED.
* This is only a trial version for a possible
* future unified plot with the supposedly
* not calibrated runs. What happens here is
* that this plots are filled with the value
* obtained from the LOW RESOLUTION (HIGH GAIN)
* getter. This multiplies for 8 times the
* value obtained fro mnormal getters, and it
* should provide a better description of the
* lower part of the ZDC energy spectrum.
*/
TH1F* fZNCEnergyCalibratedHigherGainH; //!
/**
* This histogram records the energy distri-
* bution of the neutron ZDC. CALIBRATED.
* This is only a trial version for a possible
* future unified plot with the supposedly
* not calibrated runs. What happens here is
* that this plots are filled with the value
* obtained from the LOW RESOLUTION (HIGH GAIN)
* getter. This multiplies for 8 times the
* value obtained fro mnormal getters, and it
* should provide a better description of the
* lower part of the ZDC energy spectrum.
*/
TH1F* fZNAEnergyCalibratedHigherGainH; //!
/**
* This histogram records the time distribution
* of neutron ZDC.
*/
TH1F* fZNCTimeAgainstEntriesH; //!
/**
* This histogram records the time distribution
* of neutron ZDC.
*/
TH1F* fZNATimeAgainstEntriesH; //!
/**
* This array of histograms records the
* energy spectra
* of the neutron ZDC.
* On a run-by-run basis.
*/
TH1F* fZNCEnergyPerRunH[364]; //!
TH1F* fZNAEnergyPerRunH[364]; //!
/**
* This histogram records the pt-ditribution
* for the single muons.
*/
TH1F* fSingleMuonPtDistributionH; //!
//_______________________________
// CUTS
/*
* The following is all the possible checks for the event selections
* and the track selection as well. Enjoy.
*/
Int_t fRunNum; //!
Int_t fTracklets; //!
Double_t fLumiPerRun; //!
UInt_t fL0inputs; //!
UInt_t fL1inputs; //!
Double_t fZem1Energy; //!
Double_t fZem2Energy; //!
Double_t fZNCEnergy; //!
Double_t fZNAEnergy; //!
Double_t fZPCEnergy; //!
Double_t fZPAEnergy; //!
Double_t fZNATDC[4]; //!
Double_t fZNCTDC[4]; //!
Double_t fZPATDC[4]; //!
Double_t fZPCTDC[4]; //!
Double_t fZNATime; //!
Double_t fZNCTime; //!
Int_t fV0ADecision; //!
Int_t fV0CDecision; //!
Int_t fADADecision; //!
Int_t fADCDecision; //!
TBits fIR1Map; //!
TBits fIR2Map; //!
Bool_t fV0Hits[64]; //!
Int_t fV0TotalNCells; //!
//_______________________________
//_______________________________
// TRIGGER INPUTS for MC
// V0 inputs
Bool_t fBBFlag[64]; //!
Bool_t fBGFlag[64]; //!
UInt_t fBBAFlags; //!
UInt_t fBBCFlags; //!
UInt_t fBGAFlags; //!
UInt_t fBGCFlags; //!
// AD inputs
Bool_t fBBFlagAD[16]; //!
Bool_t fBGFlagAD[16]; //!
UInt_t fBBAFlagsAD; //!
UInt_t fBBCFlagsAD; //!
UInt_t fBGAFlagsAD; //!
UInt_t fBGCFlagsAD; //!
Double_t fCounterGeneratedLevel[60000]; //!
// FINISHED TRIGGER INPUTS for MC
//_______________________________
/**
* This is the vector containing the GOOD RunNumbers.
*/
// std::vector<Int_t> fVectorGoodRunNumbers;
/**
* Not implemented yet...
*/
AliAnalysisTaskMatchTriggerForward(const AliAnalysisTaskMatchTriggerForward&);
/**
* Not implemented yet...
*/
AliAnalysisTaskMatchTriggerForward& operator=(const AliAnalysisTaskMatchTriggerForward&);
/**
* This is important for ROOT only. I do not remember the reason anymore.
* If I happen to encounter it again in the future, I will make sure to
* record it!
*/
ClassDef(AliAnalysisTaskMatchTriggerForward, 5);
};
#endif