]>
Commit | Line | Data |
---|---|---|
04236e67 | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
15 | ||
16 | ||
17 | /* $Id$ */ | |
18 | ||
19 | //--- | |
20 | // Produces the data needed to calculate the quality assurance. | |
1d7681da | 21 | // Alla.Maevskaya@cern.ch |
04236e67 | 22 | //--- |
23 | ||
24 | // --- ROOT system --- | |
25 | #include <TClonesArray.h> | |
26 | #include <TFile.h> | |
27 | #include <TH1F.h> | |
1d7681da | 28 | #include <TH2F.h> |
04236e67 | 29 | #include <TDirectory.h> |
30 | // --- Standard library --- | |
31 | ||
32 | // --- AliRoot header files --- | |
33 | #include "AliESDEvent.h" | |
34 | #include "AliLog.h" | |
35 | #include "AliT0digit.h" | |
36 | #include "AliT0hit.h" | |
37 | #include "AliT0RecPoint.h" | |
38 | #include "AliT0QADataMakerRec.h" | |
39 | #include "AliQAChecker.h" | |
40 | #include "AliT0RawReader.h" | |
332b9234 | 41 | #include "AliT0RecoParam.h" |
703bbd47 | 42 | #include "THnSparse.h" |
04236e67 | 43 | |
1d7681da | 44 | #include "Riostream.h" |
04236e67 | 45 | ClassImp(AliT0QADataMakerRec) |
46 | ||
47 | //____________________________________________________________________________ | |
48 | AliT0QADataMakerRec::AliT0QADataMakerRec() : | |
4e25ac79 | 49 | AliQADataMakerRec(AliQAv1::GetDetName(AliQAv1::kT0), |
3c85c814 | 50 | "T0 Quality Assurance Data Maker"), |
332b9234 | 51 | fnEventCal(0), |
52 | fnEventPhys(0) | |
04236e67 | 53 | |
54 | { | |
55 | // ctor | |
1d7681da | 56 | for (Int_t i=0; i<6; i++) { |
57 | fNumTriggers[i]=0; | |
58 | fNumTriggersCal[i]=0; | |
332b9234 | 59 | fTrEffCal[i] = 0; |
60 | fTrEffPhys[i] = 0; | |
61 | ||
04236e67 | 62 | } |
b9024d69 | 63 | for (Int_t i=0; i<24; i++) |
64 | { | |
65 | feffC[i]=0; | |
66 | feffA[i]=0; | |
394c1a6d | 67 | feffqtc[i]=0; |
be3ada9f | 68 | feffPhysC[i]=0; |
394c1a6d | 69 | } |
04236e67 | 70 | } |
71 | ||
72 | //____________________________________________________________________________ | |
73 | AliT0QADataMakerRec::AliT0QADataMakerRec(const AliT0QADataMakerRec& qadm) : | |
3c85c814 | 74 | AliQADataMakerRec(), |
332b9234 | 75 | fnEventCal(0), |
76 | fnEventPhys(0) | |
77 | ||
3c85c814 | 78 | |
04236e67 | 79 | { |
80 | //copy ctor | |
1d7681da | 81 | SetName((const char*)qadm.GetName()) ; |
04236e67 | 82 | SetTitle((const char*)qadm.GetTitle()); |
83 | } | |
84 | ||
85 | //__________________________________________________________________ | |
86 | AliT0QADataMakerRec& AliT0QADataMakerRec::operator = (const AliT0QADataMakerRec& qadm ) | |
87 | { | |
88 | // Equal operator. | |
89 | this->~AliT0QADataMakerRec(); | |
90 | new(this) AliT0QADataMakerRec(qadm); | |
91 | return *this; | |
92 | } | |
93 | //____________________________________________________________________________ | |
4e25ac79 | 94 | void AliT0QADataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArray ** list) |
04236e67 | 95 | { |
96 | //Detector specific actions at end of cycle | |
97 | // do the QA checking | |
4e25ac79 | 98 | AliQAChecker::Instance()->Run(AliQAv1::kT0, task, list) ; |
8825d145 | 99 | |
57acd2d2 | 100 | for (Int_t specie = 0 ; specie < AliRecoParam::kNSpecies ; specie++) { |
6252ceeb | 101 | if (! IsValidEventSpecie(specie, list)) |
eca4fa66 | 102 | continue ; |
8825d145 | 103 | SetEventSpecie(AliRecoParam::ConvertIndex(specie)) ; |
4e25ac79 | 104 | if ( task == AliQAv1::kRAWS ) { |
332b9234 | 105 | GetRawsData(0)->SetLabelSize(0.02); |
57acd2d2 | 106 | const Char_t *triggers[6] = {"mean", "vertex","ORA","ORC","central","semi-central"}; |
107 | for (Int_t itr=0; itr<6; itr++) { | |
332b9234 | 108 | if ( fnEventCal>0) |
109 | fTrEffCal[itr] = Float_t (fNumTriggersCal[itr])/Float_t (fnEventCal); | |
110 | if ( fnEventPhys>0) | |
111 | fTrEffPhys[itr] = Float_t (fNumTriggers[itr])/Float_t (fnEventPhys); | |
112 | ||
be3ada9f | 113 | GetRawsData(169+251)->Fill(triggers[itr], fTrEffCal[itr]); |
114 | GetRawsData(169+251)->SetBinContent(itr+1, fTrEffCal[itr]); | |
115 | GetRawsData(169)->Fill(triggers[itr], fTrEffPhys[itr]); | |
116 | GetRawsData(169)->SetBinContent(itr+1, fTrEffPhys[itr]); | |
332b9234 | 117 | } |
118 | Float_t effic=0; | |
119 | for(Int_t ik=0; ik<24; ik++) | |
120 | { | |
121 | effic=0; | |
6755a766 | 122 | if ( fnEventCal>0) effic = Float_t(feffC[ik])/Float_t(fnEventCal); |
be3ada9f | 123 | GetRawsData(207+251)->SetBinContent(ik+1,effic) ; |
332b9234 | 124 | effic=0; |
6755a766 | 125 | if ( fnEventCal>0) effic = Float_t(feffA[ik])/Float_t(fnEventCal); |
be3ada9f | 126 | GetRawsData(208+251)->SetBinContent(ik+1,effic ); |
332b9234 | 127 | effic=0; |
6755a766 | 128 | if ( fnEventCal>0) effic = Float_t(feffqtc[ik])/Float_t(fnEventCal); |
be3ada9f | 129 | GetRawsData(209+251)->SetBinContent(ik+1, effic); |
130 | ||
131 | effic=0; | |
132 | if ( fnEventPhys>0) effic = Float_t(feffPhysC[ik])/Float_t(fnEventPhys); | |
332b9234 | 133 | GetRawsData(207)->SetBinContent(ik+1, effic); |
be3ada9f | 134 | |
332b9234 | 135 | } |
8825d145 | 136 | |
137 | ||
57acd2d2 | 138 | } |
8825d145 | 139 | |
57acd2d2 | 140 | } |
04236e67 | 141 | |
8825d145 | 142 | } |
04236e67 | 143 | //____________________________________________________________________________ |
144 | void AliT0QADataMakerRec::StartOfDetectorCycle() | |
145 | { | |
146 | //Detector specific actions at start of cycle | |
be3ada9f | 147 | for (Int_t i=0; i<500; i++) |
148 | if(GetRawsData(i)) GetRawsData(i)->Reset(); | |
04236e67 | 149 | |
150 | } | |
151 | ||
152 | //____________________________________________________________________________ | |
153 | void AliT0QADataMakerRec::InitRaws() | |
154 | { | |
155 | // create Raw histograms in Raw subdir | |
7d297381 | 156 | const Bool_t expert = kTRUE ; |
157 | const Bool_t saveCorr = kTRUE ; | |
158 | const Bool_t image = kTRUE ; | |
a46b18e9 | 159 | Float_t low[500]; |
160 | Float_t high[500]; | |
8825d145 | 161 | |
7d297381 | 162 | |
a46b18e9 | 163 | for (Int_t i=0; i<500; i++){ |
703bbd47 | 164 | low[i] = 0; |
be3ada9f | 165 | high[i] = 30000; |
a46b18e9 | 166 | |
167 | } | |
168 | ||
1d7681da | 169 | TString timename, ampname, qtcname, ledname; |
170 | TString timeCalname, ampCalname, ledCalname, qtcCalname; | |
332b9234 | 171 | TString qt1name, qt0name, qt1Calname, qt0Calname; |
426a778b | 172 | TString nhits; |
04236e67 | 173 | |
be3ada9f | 174 | TH1F* fhRefPoint = new TH1F("hRefPoint","Ref Point", 10000, 0 ,50000); |
8825d145 | 175 | Add2RawsList( fhRefPoint,0, expert, !image, !saveCorr); |
703bbd47 | 176 | |
be3ada9f | 177 | TH1F* fhRefPointcal = new TH1F("hRefPointcal","Ref Point laser", 5000, 0 ,20000); |
178 | Add2RawsList( fhRefPointcal,250, expert, !image, !saveCorr); | |
703bbd47 | 179 | |
180 | TH1F *fhRawCFD[24]; | |
181 | TH1F * fhRawLEDamp[24]; | |
1d7681da | 182 | TH1F *fhRawQTC[24]; TH1F * fhRawLED[24]; |
183 | TH1F *fhRawCFDcal[24]; TH1F * fhRawLEDampcal[24]; | |
be3ada9f | 184 | TH1F *fhRawQTCcal[24]; TH1F * fhRawLEDcal[24]; |
332b9234 | 185 | TH1F *fhRawQT0cal[24]; TH1F *fhRawQT1cal[24]; |
186 | TH1F *fhRawQT1[24]; TH1F *fhRawQT0[24]; | |
426a778b | 187 | TH1F* fhRawNhits[24]; |
703bbd47 | 188 | |
04236e67 | 189 | for (Int_t i=0; i<24; i++) |
190 | { | |
191 | timename ="hRawCFD"; | |
1d7681da | 192 | ledname = "hRawLED"; |
04236e67 | 193 | qtcname = "hRawQTC"; |
332b9234 | 194 | qt0name = "hRawQT0_"; |
195 | qt1name = "hRawQT1_"; | |
1d7681da | 196 | ampname = "hRawLEDminCFD"; |
426a778b | 197 | nhits = "hRawNhits"; |
332b9234 | 198 | timename += i+1; |
199 | ampname += i+1; | |
200 | qtcname += i+1; | |
201 | qt0name += i+1; | |
202 | qt1name += i+1; | |
203 | ledname += i+1; | |
426a778b | 204 | nhits += i+1; |
be3ada9f | 205 | fhRawCFD[i] = new TH1F(timename.Data(), Form("%s;CFD [#channels];Counts", timename.Data()),Int_t((high[i+1]-low[i+1])/4),low[i+1],high[i+1]); |
206 | Add2RawsList( fhRawCFD[i],i+1, expert, !image, !saveCorr); | |
207 | fhRawLED[i] = new TH1F(ledname.Data(), Form("%s;LED[#channels];Counts", ledname.Data()),Int_t((high[i+25]-low[i+25])/4),low[i+25],high[i+25]); | |
208 | Add2RawsList( fhRawLED[i],i+25, expert, !image, !saveCorr); | |
332b9234 | 209 | fhRawLEDamp[i] = new TH1F(ampname.Data(), Form("%s;LED-CFD [#channels];Counts", ampname.Data()),1000,0,1000); |
be3ada9f | 210 | Add2RawsList( fhRawLEDamp[i],i+49, expert, !image, !saveCorr); |
332b9234 | 211 | fhRawQTC[i] = new TH1F(qtcname.Data(), Form("%s;QTC[#channels];Counts", qtcname.Data()),10000,0,10000); |
be3ada9f | 212 | Add2RawsList( fhRawQTC[i],i+73, expert, !image, !saveCorr); |
213 | fhRawQT1[i] = new TH1F(qt1name.Data(), Form("%s;QT1[#channels];Counts", qt1name.Data()),Int_t((high[97+i]-low[97+i])/4),low[97+i],high[97+i]); | |
214 | Add2RawsList( fhRawQT1[i],97+i, expert, !image, !saveCorr); | |
215 | fhRawQT0[i] = new TH1F(qt0name.Data(), Form("%s;QT0[#channels];Counts", qt0name.Data()),Int_t((high[121+i]-low[121+i])/4),low[121+i],high[121+i]); | |
216 | Add2RawsList( fhRawQT0[i],121+i, expert, !image, !saveCorr); | |
217 | ||
218 | fhRawNhits[i] = new TH1F(nhits.Data(), Form("%s;#Hits;Events", nhits.Data()),20, 0, 20); | |
219 | Add2RawsList( fhRawNhits[i],176+i, expert, !image, !saveCorr); | |
220 | ||
221 | ||
5ed41460 | 222 | timeCalname ="hRawCFDcal"; |
1d7681da | 223 | ledCalname = "hRawLEDcal"; |
224 | ampCalname = "hRawLEDminCFDcal"; | |
5ed41460 | 225 | qtcCalname = "hRawQTCcal"; |
332b9234 | 226 | qt0Calname = "hRawQT0cal"; |
227 | qt1Calname = "hRawQT1cal"; | |
228 | timeCalname += i+1; | |
229 | ledCalname += i+1; | |
230 | ampCalname += i+1; | |
231 | qtcCalname += i+1; | |
232 | qt0Calname += i+1; | |
233 | qt1Calname += i+1; | |
be3ada9f | 234 | fhRawCFDcal[i] = new TH1F(timeCalname.Data(), Form("LASER: %s;Time ;Counts", timeCalname.Data()),Int_t((high[251+i]-low[251+i])/4),low[251+i],high[251+i]); |
235 | Add2RawsList( fhRawCFDcal[i],251+i, expert, !image, !saveCorr); | |
236 | ||
237 | fhRawLEDcal[i] = new TH1F(ledCalname.Data(), Form("LASER: %s;Time ;Counts", ledCalname.Data()),Int_t((high[251+i+24]-low[251+i+24])/4),low[251+i+24],high[251+i+24]); | |
238 | Add2RawsList( fhRawLEDcal[i],251+i+24, expert, !image, !saveCorr); | |
239 | ||
240 | fhRawLEDampcal[i] = new TH1F(ampCalname.Data(), Form("LASER: %s;Amplitude [ADC counts];Counts", ampCalname.Data()),1000,0,1000); | |
241 | Add2RawsList( fhRawLEDampcal[i],251+i+48, expert, !image, !saveCorr); | |
242 | ||
243 | fhRawQTCcal[i] = new TH1F(qtcCalname.Data(), Form("LASER: %s;QTC[#channels]; ;Counts",qtcCalname.Data()),10000,0,10000); | |
244 | Add2RawsList( fhRawQTCcal[i],251+i+72, expert, !image, !saveCorr); | |
245 | ||
246 | fhRawQT0cal[i] = new TH1F(qt0Calname.Data(), Form("LASER: %s;QT0[#channels] ;Counts",qt0Calname.Data()),Int_t((high[251+96+i]-low[251+96+i])/4),low[251+96+i],high[251+96+i]); | |
247 | Add2RawsList( fhRawQT0cal[i],251+96+i, expert, !image, !saveCorr); | |
248 | ||
249 | fhRawQT1cal[i] = new TH1F(qt1Calname.Data(), Form("LASER: %s;QT1[#channels] ;Counts",qt1Calname.Data()),Int_t((high[i+251+120]-low[i+251+120])/4),low[i+251+120],high[i+251+120]); | |
250 | Add2RawsList( fhRawQT1cal[i],i+251+120, expert, !image, !saveCorr); | |
251 | ||
252 | } | |
253 | ||
254 | ||
255 | TH1F* fhRawTrigger = new TH1F("hRawTrigger"," phys triggers;Trigger ;Counts",6,0,6); | |
256 | Add2RawsList(fhRawTrigger ,169, expert, image, !saveCorr); | |
257 | ||
258 | TH1F* fhRawMean = new TH1F("hRawMean","online mean signal, physics event;",Int_t((high[170]-low[170])/4),low[170],high[170]); | |
259 | Add2RawsList( fhRawMean,170, expert, !image, !saveCorr); | |
a46b18e9 | 260 | |
be3ada9f | 261 | TH1F* fhRawVertex = new TH1F("hRawVertex","online vertex signal; counts",Int_t((high[171]-low[171])/4),low[171],high[171]); |
262 | Add2RawsList( fhRawVertex,171, expert, image, !saveCorr); | |
1d7681da | 263 | |
be3ada9f | 264 | TH1F* fhRawORA = new TH1F("hRawORA","online OR A; counts",Int_t((high[172]-low[172])/4),low[172],high[172]); |
265 | Add2RawsList( fhRawORA,172, expert, !image, !saveCorr); | |
266 | TH1F* fhRawORC = new TH1F("hRawORC","online OR C;counts",Int_t(( high[173]-low[173])/4),low[173],high[173]); | |
267 | Add2RawsList( fhRawORC,173, expert, !image, !saveCorr); | |
268 | TH1F* fhMultCentr = new TH1F("hMultCentr","online trigger Central;counts ",Int_t(( high[174]-low[174])/4),low[174],high[174]); | |
269 | Add2RawsList( fhMultCentr,174, expert, !image, !saveCorr); | |
270 | TH1F* fhMultSeCentr = new TH1F("hMultSemiCentr","online trigger SemiCentral;counts ",Int_t(( high[175]-low[175])/4),low[175],high[175]); | |
271 | Add2RawsList( fhMultSeCentr,175, expert, !image, !saveCorr); | |
332b9234 | 272 | |
332b9234 | 273 | |
1d7681da | 274 | TH1F* fhRawTriggerCal = new TH1F("hRawTriggerCal"," laser triggers",6,0,6); |
be3ada9f | 275 | Add2RawsList(fhRawTriggerCal ,169+251 , !expert, image, !saveCorr); |
276 | ||
277 | TH1F* fhRawMeanCal = new TH1F("hRawMeanCal","online mean signal, calibration event",Int_t((high[170+251]-low[170+251])/4),low[170+251],high[170+251]); | |
278 | Add2RawsList( fhRawMeanCal,170+251, expert, !image, !saveCorr); | |
279 | ||
280 | TH1F* fhRawVertexCal = new TH1F("hRawVertexCal","online vertex signal, calibration event ",Int_t((high[171+251]-low[171+251])/4),low[171+251],high[171+251] ); | |
281 | Add2RawsList( fhRawVertexCal,171+251, expert, !image, !saveCorr); | |
282 | ||
283 | ||
284 | TH1F* fhRawORAcal = new TH1F("hRawORAcal","laser OR A; counts",Int_t((high[172+251]-low[172+251])/4),low[172+251],high[172+251]); | |
285 | Add2RawsList( fhRawORAcal,172+251, expert, !image, !saveCorr ); | |
286 | ||
287 | ||
288 | TH1F* fhRawORCcal = new TH1F("hRawORCcal","laserOR C;counts ",Int_t(( high[173]-low[173])/4),low[173],high[173]); | |
289 | Add2RawsList( fhRawORCcal,173+251, expert, !image, !saveCorr); | |
290 | ||
291 | TH1F* fhMultCentrcal = new TH1F("hMultCentrcal","laser trigger Central;counts ",Int_t(( high[174]-low[174])/4),low[174],high[174]); | |
292 | Add2RawsList( fhMultCentrcal,174+251, expert, !image, !saveCorr); | |
293 | TH1F* fhMultSeCentrcal = new TH1F("hMultSemiCentrcal","laser trigger SemiCentral;counts ",Int_t(( high[175]-low[175])/4),low[175],high[175]); | |
294 | Add2RawsList( fhMultSeCentrcal,175+251, expert, !image, !saveCorr); | |
295 | ||
332b9234 | 296 | //multiplicity trigger |
be3ada9f | 297 | //side A |
298 | TH1F* fhMultAcal = new TH1F("hMultAcal","laser: full mulltiplicity;Multiplicity A side;Entries",Int_t((high[201]-low[201])/4),low[201],high[201]); | |
299 | Add2RawsList( fhMultAcal,201+251, expert, !image, !saveCorr ); | |
300 | TH1F* fhMultAScal = new TH1F("hMultASemical","laser:full multiplicity with semi-central trigger A side;Multiplicity;Entries", | |
301 | Int_t((high[202]-low[202])/4),low[202],high[202] ); | |
302 | Add2RawsList( fhMultAScal,202+251, expert, !image, !saveCorr); | |
303 | TH1F* fhMultACcal = new TH1F("hMultACentrcal","laser:full multiplicity with central trigger A side;Multiplicity;Entries", | |
304 | Int_t((high[203]-low[203])/4),low[203],high[203]); | |
305 | Add2RawsList( fhMultACcal,203+251, expert, !image, !saveCorr); | |
a46b18e9 | 306 | |
be3ada9f | 307 | TH1F* fhMultA = new TH1F("hMultA","full mulltiplicity A side;Multiplicity;Entries", Int_t((high[201]-low[201])/4) ,low[201],high[201]); |
308 | Add2RawsList( fhMultA,201, expert, image, !saveCorr ); | |
309 | ||
310 | TH1F* fhMultAS = new TH1F("hMultASemi","full multiplicity with semi-central trigger A side ;Multiplicity;Entries", | |
311 | Int_t((high[202]-low[202])/4),low[202],high[202] ); | |
312 | Add2RawsList( fhMultAS, 202, expert, !image, !saveCorr); | |
313 | TH1F* fhMultAC = new TH1F("hMultACentr","full multiplicity with central trigger;Multiplicity;Entries", | |
314 | Int_t((high[203]-low[203])/4),low[203],high[203]); | |
315 | Add2RawsList( fhMultAC, 203, expert, !image, !saveCorr); | |
316 | ||
317 | ||
318 | //side C | |
319 | TH1F* fhMultCcal = new TH1F("hMultCcal","laser:full mulltiplicity C side;Multiplicity;Entries",Int_t((high[204]-low[204])/4),low[204],high[204]); | |
320 | Add2RawsList( fhMultCcal,204+251, expert, !image, !saveCorr ); | |
321 | TH1F* fhMultCScal = new TH1F("hMultCSemical","laser:full multiplicity with semi-central trigger C side;Multiplicity;Entries", | |
322 | Int_t((high[205]-low[205])/4),low[205],high[205] ); | |
323 | Add2RawsList( fhMultCScal,205+251, expert, !image, !saveCorr); | |
324 | TH1F* fhMultCCcal = new TH1F("hMultCCentrcal","laser:full multiplicity with central trigger C side;Multiplicity;Entries", | |
325 | Int_t((high[206]-low[206])/4),low[206],high[206]); | |
326 | Add2RawsList( fhMultCCcal,206+251, expert, !image, !saveCorr); | |
327 | ||
d5fa4835 | 328 | TH1F* fhMultC = new TH1F("hMultC","full mulltiplicity C side;Multiplicity;Entries", Int_t(high[204]-low[204]/4) ,low[204],high[204]); |
be3ada9f | 329 | Add2RawsList( fhMultC,204, expert, image, !saveCorr ); |
330 | TH1F* fhMultCS = new TH1F("hMultCSemi","full multiplicity with semi-central trigger C side;Multiplicity;Entries", | |
331 | Int_t((high[205]-low[205])/4),low[205],high[205] ); | |
332 | Add2RawsList( fhMultCS,205, expert, !image, !saveCorr); | |
333 | TH1F* fhMultCC = new TH1F("hMultCentr","full multiplicity with central trigger C side;Multiplicity;Entries", | |
334 | Int_t((high[206]-low[206])/4),low[206],high[206]); | |
335 | Add2RawsList( fhMultCC,206, expert, !image, !saveCorr); | |
336 | ||
337 | ||
338 | //efficiency | |
339 | TH1F* fhEffCFD = new TH1F("hEffCFDcal","CFD efficiecy laser ;#PMT; #CFD counts/nEvents",24, 0 ,24); | |
340 | Add2RawsList( fhEffCFD,207+251, !expert, image, !saveCorr); | |
341 | ||
342 | TH1F* fhCFDeffpsys= new TH1F("fhCFDeffpsys"," CFD efficiency; #PMT; #CFD counts/nEvents",24, 0 ,24); | |
343 | // fhCFDeffpsys->SetMaximum(2); | |
344 | Add2RawsList( fhCFDeffpsys, 207, expert, image, !saveCorr); | |
345 | ||
346 | TH1F* fhEffLED = new TH1F("hEffLEDcal","LEDefficiecy; #PMT; #LED counts/nEvent",24, 0 ,24); | |
347 | Add2RawsList( fhEffLED,208+251, !expert, image, !saveCorr); | |
348 | ||
349 | TH1F* fhEffQTC = new TH1F("hEffQTCcal","QTC efficiecy; #PMT; QTC efficiency%s;",24, 0 ,24); | |
350 | Add2RawsList( fhEffQTC,209+251, !expert, image, !saveCorr); | |
351 | ||
352 | ||
353 | TH2F* fhCFD = new TH2F("hCFD","CFD phys; #PMT; CFD {#channnels}",25, 0 ,25,Int_t((high[210]-low[210])/4),low[210],high[210]); | |
354 | fhCFD->SetOption("COLZ"); | |
355 | Add2RawsList( fhCFD,210, expert, image, !saveCorr); | |
356 | ||
357 | TH2F* fhLED = new TH2F("hLED","LED phys; #PMT; LED [#channnels]",25, 0 ,25,Int_t((high[211]-low[211])/4),low[211],high[211]); | |
358 | fhLED->SetOption("COLZ"); | |
359 | Add2RawsList( fhLED,211, expert, image, !saveCorr); | |
a46b18e9 | 360 | |
be3ada9f | 361 | TH2F* fhQTC = new TH2F("hQTC","QTC phys; #PMT; QTC [#channnels]",25, 0 ,25,Int_t( high[212]-low[212]),low[212],high[212]); |
362 | fhQTC->SetOption("COLZ"); | |
363 | Add2RawsList( fhQTC,212, expert, image, !saveCorr); | |
a46b18e9 | 364 | |
be3ada9f | 365 | TH2F* fhCFDcal = new TH2F("hCFDcal","CFD laser; #PMT; CFD {#channnels}",25, 0 ,25,Int_t((high[210]-low[210])/4),low[210],high[210]); |
366 | fhCFDcal->SetOption("COLZ"); | |
367 | Add2RawsList( fhCFDcal,210+251, expert, image, !saveCorr); | |
368 | ||
369 | ||
370 | TH2F* fhLEDcal = new TH2F("hLEDcal","LED laser; #PMT; LED [#channnels]",25, 0 ,25,Int_t((high[211]-low[211])/4),low[211],high[211]); | |
394c1a6d | 371 | fhLEDcal->SetOption("COLZ"); |
be3ada9f | 372 | Add2RawsList( fhLEDcal,211+251, expert, image, !saveCorr); |
373 | ||
374 | TH2F* fhQTCcal = new TH2F("hQTCcal","QTC laser; #PMT; QTC [#channnels]",25, 0 ,25,Int_t( high[212]-low[212]),low[212],high[212]); | |
703bbd47 | 375 | fhQTCcal->SetOption("COLZ"); |
be3ada9f | 376 | Add2RawsList( fhQTCcal,212+251, expert, image, !saveCorr); |
377 | ||
378 | ||
703bbd47 | 379 | TH1F* fhNumPMTA= new TH1F("hNumPMTA","number of PMT hitted per event",13, 0 ,13); |
be3ada9f | 380 | Add2RawsList(fhNumPMTA ,213, expert, image, !saveCorr); |
381 | ||
703bbd47 | 382 | TH1F* fhNumPMTC= new TH1F("hNumPMTC","number of PMT hitted per event",13, 0 ,13); |
be3ada9f | 383 | Add2RawsList(fhNumPMTC ,214, expert, image, !saveCorr); |
384 | ||
385 | TH1F* fhHitsOrA= new TH1F("fhHitsOrA","T0_OR A hit multiplicitie",20, 0 ,20); | |
386 | Add2RawsList( fhHitsOrA,215, expert, !image, !saveCorr); | |
387 | ||
388 | TH1F* fhHitsOrC= new TH1F("fhHitsOrC","T0_OR C hit multiplicitie",20, 0 ,20); | |
389 | Add2RawsList(fhHitsOrC ,216, expert, !image, !saveCorr); | |
390 | ||
391 | ||
fce2006a | 392 | TH1F* fhOrCminOrA= new TH1F("fhOrCminOrA","T0_OR C - T0_OR A",10000,-5000,5000); |
be3ada9f | 393 | Add2RawsList( fhOrCminOrA,219, expert, !image, !saveCorr); |
394 | ||
fce2006a | 395 | TH1F* fhOrCminOrAcal= new TH1F("fhOrCminOrAcal","T0_OR C - T0_OR A",10000,-5000,5000); |
be3ada9f | 396 | Add2RawsList( fhOrCminOrAcal,219+251, expert, !image, !saveCorr); |
703bbd47 | 397 | |
fce2006a | 398 | TH1F* fhOrCminOrATvdcOn= new TH1F("fhOrCminOrATvdcOn","T0_OR C - T0_OR A TVDC on",10000,-5000,5000); |
be3ada9f | 399 | Add2RawsList( fhOrCminOrATvdcOn,217, expert, !image, !saveCorr); |
400 | ||
fce2006a | 401 | TH1F* fhOrCminOrATvdcOncal= new TH1F("fhOrCminOrATvdcOncal","T0_OR C - T0_OR A TVDC on laser",10000,-5000,5000); |
be3ada9f | 402 | Add2RawsList( fhOrCminOrATvdcOncal,217+251, expert, !image, !saveCorr); |
703bbd47 | 403 | |
fce2006a | 404 | TH1F* fhOrCminOrATvdcOff= new TH1F("fhOrCminOrATvdcOff","T0_OR C - T0_OR A TVDC off",10000,-5000,5000); |
be3ada9f | 405 | Add2RawsList( fhOrCminOrATvdcOff,218, expert, !image, !saveCorr); |
b2acd28d | 406 | |
b2acd28d | 407 | |
be3ada9f | 408 | TH1F* fhOrCminOrATvdcOffcal= new TH1F("fhOrCminOrATvdcOffcal","T0_OR C - T0_OR ATVDC off laser",10000,-5000,5000); |
409 | Add2RawsList( fhOrCminOrATvdcOffcal,218+251, expert, !image, !saveCorr); | |
b2acd28d | 410 | |
be3ada9f | 411 | |
412 | const Char_t *triggers[6] = {"mean", "vertex","ORA","ORC","central","semi-central"}; | |
413 | for (Int_t itr=0; itr<6; itr++) { | |
414 | GetRawsData(169)->Fill(triggers[itr], fNumTriggersCal[itr]); | |
415 | GetRawsData(169)->SetBinContent(itr+1, fNumTriggersCal[itr]); | |
416 | GetRawsData(169+251)->Fill(triggers[itr], fNumTriggers[itr]); | |
417 | GetRawsData(169+251)->SetBinContent(itr+1, fNumTriggers[itr]); | |
418 | } | |
419 | ||
44ed7a66 | 420 | } |
be3ada9f | 421 | |
422 | ||
44ed7a66 | 423 | |
424 | //____________________________________________________________________________ | |
425 | void AliT0QADataMakerRec::InitDigits() | |
426 | { | |
427 | // create Digits histograms in Digits subdir | |
428 | const Bool_t expert = kTRUE ; | |
429 | const Bool_t image = kTRUE ; | |
430 | ||
f628b9d2 | 431 | TH2F * fhDigCFD = new TH2F("fhDigCFD", " CFD digits; #PMT; CFD digits[#channels]",25,-0.5,24.5,100,0,1000); |
eca4fa66 | 432 | fhDigCFD->SetOption("COLZ"); |
f628b9d2 | 433 | Add2DigitsList( fhDigCFD,0, !expert, image); |
434 | TH2F *fhDigLEDamp = new TH2F("fhDigLEDamp", " LED-CFD digits; #PMT; LED-CFD amplitude ",25,-0.5,24.5,100,100,1000); | |
eca4fa66 | 435 | fhDigLEDamp->SetOption("COLZ"); |
394c1a6d | 436 | Add2DigitsList( fhDigLEDamp,1, !expert, !image); |
f628b9d2 | 437 | TH2F * fhDigQTC = new TH2F("fhDigQTC", " QTC digits; #PMT; QTC amplitude",25,-0.5,24.5,100,100,10000); |
eca4fa66 | 438 | fhDigQTC->SetOption("COLZ"); |
b2acd28d | 439 | Add2DigitsList( fhDigQTC,2, !expert, !image); |
440 | ||
441 | ||
442 | } | |
04236e67 | 443 | |
444 | //____________________________________________________________________________ | |
445 | ||
446 | void AliT0QADataMakerRec::InitRecPoints() | |
447 | { | |
448 | // create cluster histograms in RecPoint subdir | |
7d297381 | 449 | const Bool_t expert = kTRUE ; |
450 | const Bool_t image = kTRUE ; | |
1d7681da | 451 | |
703bbd47 | 452 | TH2F* fhRecCFD = new TH2F("hRecCFD"," CFD time;#PMT; CFD Time [ns];",24, 0 ,24, |
b9024d69 | 453 | 100,-50,50); |
eca4fa66 | 454 | fhRecCFD->SetOption("COLZ"); |
7d297381 | 455 | Add2RecPointsList ( fhRecCFD,0, !expert, image); |
b9024d69 | 456 | |
703bbd47 | 457 | TH2F* fhRecAmpDiff = new TH2F("hRecAmpDiff"," LED-CFD min QTC amplitude;#PMT; difference [MIPs];", |
b9024d69 | 458 | 24, 0 ,24, 200,-10,10); |
eca4fa66 | 459 | fhRecAmpDiff->SetOption("COLZ"); |
7d297381 | 460 | Add2RecPointsList (fhRecAmpDiff, 1, !expert, image); |
04236e67 | 461 | |
f628b9d2 | 462 | TH1F *fhMean = new TH1F("hMean","online - rec mean;online - rec mean[#channels];",2000, -1000, 1000); |
7d297381 | 463 | Add2RecPointsList ( fhMean,2, !expert, image); |
eca4fa66 | 464 | |
465 | } | |
04236e67 | 466 | |
467 | //____________________________________________________________________________ | |
468 | void AliT0QADataMakerRec::InitESDs() | |
469 | { | |
470 | //create ESDs histograms in ESDs subdir | |
7d297381 | 471 | const Bool_t expert = kTRUE ; |
472 | const Bool_t image = kTRUE ; | |
473 | ||
be3ada9f | 474 | TH1F *fhESDMean = new TH1F("hESDmean"," ESD mean; mean time[%channels]",1000, -5, 5); |
a581ca38 | 475 | Add2ESDsList(fhESDMean, 0, expert, !image) ; |
f628b9d2 | 476 | TH1F * fhESDVertex = new TH1F("hESDvertex","ESDvertex; vertex[cm];",82,-30,30); |
a581ca38 | 477 | Add2ESDsList(fhESDVertex, 1, expert, !image) ; |
c724dd64 | 478 | |
be3ada9f | 479 | TH1F * fhESDResolution = new TH1F("hESDResolution","(T0A-T0C)/2 corrected by SPD vertex; ns",800,-2,2); |
a581ca38 | 480 | Add2ESDsList(fhESDResolution, 2, !expert, image) ; |
04236e67 | 481 | |
482 | } | |
483 | ||
484 | //____________________________________________________________________________ | |
485 | void AliT0QADataMakerRec::MakeRaws( AliRawReader* rawReader) | |
486 | { | |
eca4fa66 | 487 | |
be3ada9f | 488 | |
332b9234 | 489 | rawReader->Reset() ; |
04236e67 | 490 | //fills QA histos for RAW |
5ed41460 | 491 | Int_t shift=0; |
45c5ba2d | 492 | // Int_t refPointParam = GetRecoParam()->GetRefPoint(); |
332b9234 | 493 | Int_t refpoint = 0; |
45c5ba2d | 494 | Int_t refPointParam = 0; |
be3ada9f | 495 | |
86c020af | 496 | AliT0RawReader *start = new AliT0RawReader(rawReader); |
332b9234 | 497 | |
86c020af | 498 | if (! start->Next()) |
5379c4a3 | 499 | AliDebug(AliQAv1::GetQADebugLevel(),Form(" no raw data found!!")); |
86c020af | 500 | else |
501 | { | |
332b9234 | 502 | |
5ed41460 | 503 | UInt_t type =rawReader->GetType(); |
be3ada9f | 504 | if (type == 8){ shift=251; fnEventCal++;} |
332b9234 | 505 | if (type == 7){ shift=0; fnEventPhys++;} |
d5fa4835 | 506 | // if (type == 7){ shift=1; fnEventPhys++;} |
86c020af | 507 | Int_t allData[110][5]; |
be3ada9f | 508 | for (Int_t i0=0; i0<110; i0++) |
86c020af | 509 | { |
510 | for (Int_t j0=0; j0<5; j0++) allData[i0][j0]=0; | |
04236e67 | 511 | } |
be3ada9f | 512 | for (Int_t i=0; i<107; i++) |
86c020af | 513 | for (Int_t iHit=0; iHit<5; iHit++) |
514 | allData[i][iHit]= start->GetData(i,iHit); | |
515 | ||
be3ada9f | 516 | if ( allData[0][0] > 0 && (type == 7)) |
517 | GetRawsData(0) -> Fill( allData[0][0]); | |
518 | if ( allData[0][0] > 0 && (type == 8)) | |
519 | GetRawsData(250) -> Fill( allData[0][0]); | |
520 | ||
a46b18e9 | 521 | refpoint = allData[refPointParam][0]; |
522 | if (refPointParam < 0 ) refpoint=0; | |
523 | if (refPointParam == 0 ) refpoint = allData[0][0] - 5000; | |
be3ada9f | 524 | |
525 | Int_t sideshift, sideshiftqtc; | |
426a778b | 526 | Int_t numPmtC=0; |
be3ada9f | 527 | Int_t numPmtA=0; |
528 | for (Int_t ik = 0; ik<24; ik++) | |
426a778b | 529 | { |
be3ada9f | 530 | if(ik<12) { |
531 | sideshift=1; | |
532 | sideshiftqtc=1; | |
533 | if(allData[ik+sideshift][0]>0 && type == 7 ) numPmtC++; | |
332b9234 | 534 | } |
be3ada9f | 535 | else { |
536 | if(allData[ik+45][0]>0 && type == 7 ) numPmtA++; | |
537 | sideshift=45; | |
538 | sideshiftqtc=33; | |
426a778b | 539 | |
394c1a6d | 540 | } |
be3ada9f | 541 | Int_t nhitsPMT=0; |
542 | ||
543 | for (Int_t iHt=0; iHt<5; iHt++){ | |
544 | //cfd | |
545 | if(allData[ik+sideshift][iHt]>0) { | |
d5fa4835 | 546 | GetRawsData(shift+ik+1) -> Fill(allData[ik+sideshift][iHt]); |
be3ada9f | 547 | GetRawsData(210+shift)->Fill(ik+1, allData[ik+sideshift][iHt]); |
548 | if(type == 8 ) feffC[ik]++; | |
549 | ||
550 | if(type == 7 ) { | |
551 | nhitsPMT++; | |
552 | feffPhysC[ik]++; | |
332b9234 | 553 | } |
be3ada9f | 554 | |
1d7681da | 555 | } |
be3ada9f | 556 | //led |
557 | if(allData[ik+12+sideshift][iHt] > 0) { | |
d5fa4835 | 558 | GetRawsData(shift+ik+24+1)-> Fill(allData[ik+12+sideshift][iHt]); |
be3ada9f | 559 | GetRawsData(211+shift)->Fill(ik+1, allData[ik+12+sideshift][iHt]); |
560 | if(type == 8 ) { | |
561 | feffA[ik]++; | |
562 | } | |
b2acd28d | 563 | } |
be3ada9f | 564 | //led -cfd |
426a778b | 565 | |
be3ada9f | 566 | if(allData[ik+12+sideshift][iHt] > 0 && allData[ik+sideshift][iHt] >0 ) |
d5fa4835 | 567 | GetRawsData(shift+ik+48+1)-> |
be3ada9f | 568 | Fill(allData[ik+12+sideshift][iHt]-allData[ik+sideshift][iHt]); |
b2acd28d | 569 | |
be3ada9f | 570 | //qtc |
571 | if(allData[2*ik+sideshiftqtc+24][iHt] > 0 && | |
572 | allData[2*ik+sideshiftqtc+25][iHt] > 0) { | |
d5fa4835 | 573 | GetRawsData(shift+ik+72+1)-> |
be3ada9f | 574 | Fill(allData[2*ik+sideshiftqtc+24][iHt]-allData[2*ik+sideshiftqtc+25][iHt]); |
575 | GetRawsData(212+shift)->Fill(ik+1, allData[2*ik+sideshiftqtc+24][iHt]-allData[2*ik+sideshiftqtc+25][iHt]); | |
576 | if(type == 8) feffqtc[ik]++; | |
577 | ||
578 | } | |
d5fa4835 | 579 | if(allData[2*ik+sideshiftqtc+24][iHt] > 0) GetRawsData(shift+ik+96+1)->Fill(allData[2*ik+sideshiftqtc+24][iHt]); |
580 | if(allData[2*ik+sideshiftqtc+25][iHt] > 0) GetRawsData(shift+ik+120+1)->Fill(allData[2*ik+sideshiftqtc+25][iHt]); | |
f6c2d5e2 | 581 | } |
be3ada9f | 582 | |
583 | if(type == 7 ) { | |
584 | GetRawsData(ik+176)->Fill(nhitsPMT); | |
585 | GetRawsData(213)->Fill(numPmtC); | |
586 | GetRawsData(214)->Fill(numPmtA); | |
587 | } | |
588 | } | |
589 | ||
590 | Int_t trChannel[6] = {49,50,51,52,55,56}; | |
591 | Float_t ch2cm = 24.4*0.029979; | |
592 | Int_t nhitsOrA=0; | |
593 | Int_t nhitsOrC=0; | |
594 | for (Int_t iHt=0; iHt<5; iHt++) { | |
595 | ||
596 | //orA-orC phys tvdc 1 | |
597 | if((allData[51][iHt]>0 && allData[52][iHt]>0) && allData[50][iHt]>0) | |
332b9234 | 598 | { |
be3ada9f | 599 | GetRawsData(217+shift)->Fill((allData[52][iHt]-allData[51][iHt])*ch2cm); |
600 | // GetRawsData(345) ->Fill((allData[51][iHt]+allData[52][iHt])/2.); | |
601 | } | |
602 | //orA-orC phys tvdc 0 | |
603 | if((allData[51][iHt]>0 && allData[52][iHt]>0) && allData[50][iHt]<=0) | |
604 | GetRawsData(218+shift)->Fill((allData[52][iHt]-allData[51][iHt])*ch2cm); | |
605 | if(allData[51][iHt]>0 && allData[52][iHt]>0) | |
606 | GetRawsData(219+shift)->Fill((allData[52][iHt]-allData[51][iHt])*ch2cm); | |
607 | for (Int_t itr=0; itr<6; itr++) { | |
608 | if (allData[trChannel[itr]][iHt] >0) { | |
609 | if(type == 7 )fNumTriggers[itr]++; | |
610 | if(type == 8 )fNumTriggersCal[itr]++; | |
611 | GetRawsData(170+itr+shift)->Fill(allData[trChannel[itr]][iHt]); | |
612 | } | |
613 | } | |
b2acd28d | 614 | |
be3ada9f | 615 | if(type == 7) if(allData[51][iHt] >0) nhitsOrA++; |
616 | if(type == 7)if(allData[52][iHt] >0) nhitsOrC++; | |
617 | ||
618 | //mult trigger signals phys | |
619 | //C side | |
620 | if(allData[53][iHt]>0 && allData[54][iHt]>0) { | |
621 | GetRawsData(201+shift)->Fill(allData[53][iHt]-allData[54][iHt]); | |
622 | if(allData[56][iHt]>0) GetRawsData(202+shift)->Fill(allData[53][iHt]-allData[54][iHt]); | |
623 | if(allData[55][iHt]>0) GetRawsData(203+shift)->Fill(allData[53][iHt]-allData[54][iHt]); | |
624 | } | |
625 | ||
626 | //A side | |
627 | if(allData[105][iHt]>0 && allData[106][iHt]>0) { | |
628 | GetRawsData(204+shift)->Fill(allData[105][iHt]-allData[106][iHt]); | |
629 | if(allData[56][iHt]>0) GetRawsData(205+shift)->Fill(allData[105][iHt]-allData[106][iHt]); | |
630 | if(allData[55][iHt]>0) GetRawsData(206+shift)->Fill(allData[105][iHt]-allData[106][iHt]); | |
631 | } | |
632 | } | |
633 | ||
634 | GetRawsData(215)->Fill(nhitsOrA); | |
635 | GetRawsData(216)->Fill(nhitsOrC); | |
426a778b | 636 | |
86c020af | 637 | } |
be3ada9f | 638 | |
639 | delete start; | |
332b9234 | 640 | } |
641 | ||
1d7681da | 642 | |
04236e67 | 643 | |
be3ada9f | 644 | |
44ed7a66 | 645 | //____________________________________________________________________________ |
646 | void AliT0QADataMakerRec::MakeDigits( TTree *digitsTree) | |
647 | { | |
648 | //fills QA histos for Digits | |
eca4fa66 | 649 | |
44ed7a66 | 650 | TArrayI *digCFD = new TArrayI(24); |
651 | TArrayI *digLED = new TArrayI(24); | |
652 | TArrayI *digQT0 = new TArrayI(24); | |
653 | TArrayI *digQT1 = new TArrayI(24); | |
654 | Int_t refpoint=0; | |
655 | ||
656 | TBranch *brDigits=digitsTree->GetBranch("T0"); | |
657 | AliT0digit *fDigits = new AliT0digit() ; | |
658 | if (brDigits) { | |
659 | brDigits->SetAddress(&fDigits); | |
660 | }else{ | |
661 | AliError(Form("EXEC Branch T0 digits not found")); | |
662 | return; | |
663 | } | |
664 | digitsTree->GetEvent(0); | |
665 | digitsTree->GetEntry(0); | |
666 | brDigits->GetEntry(0); | |
667 | fDigits->GetTimeCFD(*digCFD); | |
668 | fDigits->GetTimeLED(*digLED); | |
669 | fDigits->GetQT0(*digQT0); | |
670 | fDigits->GetQT1(*digQT1); | |
671 | refpoint = fDigits->RefPoint(); | |
672 | for (Int_t i=0; i<24; i++) | |
673 | { | |
674 | if (digCFD->At(i)>0) { | |
675 | Int_t cfd=digCFD->At(i)- refpoint; | |
676 | GetDigitsData(0) ->Fill(i,cfd); | |
f628b9d2 | 677 | GetDigitsData(1) -> Fill(i, (digLED->At(i) - digCFD->At(i))); |
44ed7a66 | 678 | GetDigitsData(2) -> Fill(i, (digQT1->At(i) - digQT0->At(i))); |
679 | } | |
680 | } | |
681 | ||
682 | delete digCFD; | |
683 | delete digLED; | |
684 | delete digQT0; | |
685 | delete digQT1; | |
686 | ||
687 | } | |
688 | ||
04236e67 | 689 | //____________________________________________________________________________ |
690 | void AliT0QADataMakerRec::MakeRecPoints(TTree * clustersTree) | |
691 | { | |
692 | //fills QA histos for clusters | |
693 | ||
446d6ec4 | 694 | AliT0RecPoint* frecpoints= new AliT0RecPoint (); |
f628b9d2 | 695 | if (!frecpoints) { |
394c1a6d | 696 | AliError(":MakeRecPoints >> no recpoints found"); |
04236e67 | 697 | return; |
698 | } | |
699 | TBranch *brRec =clustersTree ->GetBranch("T0"); | |
700 | if (brRec) { | |
701 | brRec->SetAddress(&frecpoints); | |
702 | }else{ | |
f628b9d2 | 703 | AliError(Form("EXEC Branch T0 rec not found ")); |
704 | return; | |
04236e67 | 705 | } |
eca4fa66 | 706 | |
04236e67 | 707 | brRec->GetEntry(0); |
f628b9d2 | 708 | |
04236e67 | 709 | for ( Int_t i=0; i<24; i++) { |
1d7681da | 710 | if(i<12) |
b9024d69 | 711 | GetRecPointsData(0) -> Fill(i, frecpoints -> GetTime(i) - frecpoints -> GetTime(0)); |
1d7681da | 712 | if(i>11) |
b9024d69 | 713 | GetRecPointsData(0) -> Fill(i, frecpoints -> GetTime(i) - frecpoints -> GetTime(12)); |
714 | GetRecPointsData(1) -> Fill( i, frecpoints -> GetAmp(i) - frecpoints->AmpLED(i)); | |
04236e67 | 715 | } |
b9024d69 | 716 | Double_t mmm=frecpoints->GetOnlineMean()- frecpoints->GetMeanTime(); |
f628b9d2 | 717 | GetRecPointsData(2) ->Fill(mmm); |
04236e67 | 718 | |
719 | } | |
720 | ||
721 | //____________________________________________________________________________ | |
722 | void AliT0QADataMakerRec::MakeESDs(AliESDEvent * esd) | |
723 | { | |
724 | //fills QA histos for ESD | |
f628b9d2 | 725 | |
a581ca38 | 726 | const Double32_t *mean; |
727 | mean = esd->GetT0TOF(); | |
728 | Double32_t t0time= 0.001*mean[0]; | |
729 | Double32_t orA= 0.001*mean[1]; | |
730 | Double32_t orC=0.001* mean[2]; | |
731 | ||
be3ada9f | 732 | if (t0time<99) GetESDsData(0) -> Fill(t0time); |
733 | if( esd->GetT0zVertex() <99) GetESDsData(1)-> Fill(esd->GetT0zVertex()); | |
734 | if( orA<99 && orC<99) GetESDsData(2)-> Fill((orA-orC)/2.); | |
f628b9d2 | 735 | |
04236e67 | 736 | } |