fix include file dependences and correct some inline methods
[u/mrichter/AliRoot.git] / VZERO / AliVZEROQADataMakerRec.cxx
CommitLineData
508b9fc0 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
6bec7c7c 17// Produces the data needed to calculate the quality assurance
18// All data must be mergeable objects
19// Handles ESDs and Raws
20// Histos defined will be used for Raw Data control and monitoring
508b9fc0 21
22// --- ROOT system ---
23#include <TClonesArray.h>
24#include <TFile.h>
25#include <TH1F.h>
26#include <TH1I.h>
4da80b8c 27#include <TH2I.h>
9bd82f77 28#include <TH2D.h>
29#include <TGraph.h>
f81355e3 30#include <TParameter.h>
508b9fc0 31
32// --- Standard library ---
33
34// --- AliRoot header files ---
35#include "AliESDEvent.h"
36#include "AliLog.h"
1e376713 37#include "AliCDBManager.h"
38#include "AliCDBStorage.h"
39#include "AliCDBEntry.h"
508b9fc0 40#include "AliVZEROQADataMakerRec.h"
41#include "AliQAChecker.h"
4da80b8c 42#include "AliRawReader.h"
508b9fc0 43#include "AliVZERORawStream.h"
5192f264 44#include "AliVZEROdigit.h"
508b9fc0 45#include "AliVZEROReconstructor.h"
9bd82f77 46#include "event.h"
508b9fc0 47
48
49ClassImp(AliVZEROQADataMakerRec)
50
51//____________________________________________________________________________
52 AliVZEROQADataMakerRec::AliVZEROQADataMakerRec() :
4e25ac79 53 AliQADataMakerRec(AliQAv1::GetDetName(AliQAv1::kVZERO), "VZERO Quality Assurance Data Maker"),
9bd82f77 54 fCalibData(0x0),
1e376713 55 fEvent(0)
56
508b9fc0 57{
6bec7c7c 58 // Constructor
59
5379c4a3 60 AliDebug(AliQAv1::GetQADebugLevel(), "Construct VZERO QA Object");
1e376713 61
62 for(Int_t i=0; i<64; i++){
63 fEven[i] = 0;
64 fOdd[i] = 0; }
65
66 for(Int_t i=0; i<128; i++){
6bec7c7c 67 fADCmean[i] = 0.0; }
508b9fc0 68}
69
70//____________________________________________________________________________
1e376713 71 AliVZEROQADataMakerRec::AliVZEROQADataMakerRec(const AliVZEROQADataMakerRec& qadm) :
72 AliQADataMakerRec(),
9bd82f77 73 fCalibData(0x0),
1e376713 74 fEvent(0)
75
508b9fc0 76{
6bec7c7c 77 // Copy constructor
78
1e376713 79 SetName((const char*)qadm.GetName()) ;
80 SetTitle((const char*)qadm.GetTitle());
508b9fc0 81}
82
83//__________________________________________________________________
84AliVZEROQADataMakerRec& AliVZEROQADataMakerRec::operator = (const AliVZEROQADataMakerRec& qadm )
85{
86 // Equal operator
6bec7c7c 87
508b9fc0 88 this->~AliVZEROQADataMakerRec();
89 new(this) AliVZEROQADataMakerRec(qadm);
90 return *this;
91}
1e376713 92
93//____________________________________________________________________________
94AliVZEROCalibData* AliVZEROQADataMakerRec::GetCalibData() const
95
96{
5f650de8 97 AliCDBManager *man = AliCDBManager::Instance();
6bec7c7c 98
5f650de8 99 AliCDBEntry *entry=0;
1e376713 100
5f650de8 101 entry = man->Get("VZERO/Calib/Data",fRun);
102 if(!entry){
103 AliWarning("Load of calibration data from default storage failed!");
104 AliWarning("Calibration data will be loaded from local storage ($ALICE_ROOT)");
105
106 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
107 entry = man->Get("VZERO/Calib/Data",fRun);
108 }
109 // Retrieval of data in directory VZERO/Calib/Data:
1e376713 110
5f650de8 111 AliVZEROCalibData *calibdata = 0;
1e376713 112
5f650de8 113 if (entry) calibdata = (AliVZEROCalibData*) entry->GetObject();
114 if (!calibdata) AliFatal("No calibration data from calibration database !");
1e376713 115
5f650de8 116 return calibdata;
1e376713 117}
5f650de8 118
119
508b9fc0 120
121//____________________________________________________________________________
4e25ac79 122void AliVZEROQADataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArray ** list)
508b9fc0 123{
6bec7c7c 124 // Detector specific actions at end of cycle
125 // Does the QA checking
126
4e25ac79 127 AliQAChecker::Instance()->Run(AliQAv1::kVZERO, task, list) ;
57acd2d2 128
129 for (Int_t specie = 0 ; specie < AliRecoParam::kNSpecies ; specie++) {
5e232cd6 130 SetEventSpecie(AliRecoParam::ConvertIndex(specie)) ;
4e25ac79 131 if(task == AliQAv1::kRAWS){
6bec7c7c 132 int nMaxBin = GetRawsData(kPedestalTimeInt0)->GetNbinsY();
57acd2d2 133 if(fCurrentCycle%nMaxBin==0) {
134 GetRawsData(kPedestalTimeInt0)->Reset();
135 GetRawsData(kPedestalTimeInt1)->Reset();
136 GetRawsData(kChargeEoITimeInt0)->Reset();
137 GetRawsData(kChargeEoITimeInt1)->Reset();
138 }
139 TH1D* hProj;
140 char name[50];
141 for(Int_t iChannel=0; iChannel<64; iChannel++) {
142 for(Int_t integrator=0;integrator<2;integrator++){
143 sprintf(name,"Ped_%d_%d",iChannel,integrator);
144 hProj = ((TH2I*)GetRawsData((integrator == 0 ? kPedestalCycleInt0 : kPedestalCycleInt1)))->ProjectionY(name,iChannel+1,iChannel+1);
145 ((TH2D*)GetRawsData((integrator == 0 ? kPedestalTimeInt0 : kPedestalTimeInt1)))->Fill((double)iChannel,(double)(fCurrentCycle%nMaxBin),(double)hProj->GetMean());
146 delete hProj;
147
148 sprintf(name,"Charge_%d_%d",iChannel,integrator);
149 hProj = ((TH2I*)GetRawsData((integrator == 0 ? kChargeEoICycleInt0 : kChargeEoICycleInt1)))->ProjectionY(name,iChannel+1,iChannel+1);
150 ((TH2D*)GetRawsData((integrator == 0 ? kChargeEoITimeInt0 : kChargeEoITimeInt1)))->Fill((double)iChannel,(double)(fCurrentCycle%nMaxBin),hProj->GetMean());
151 delete hProj;
152 }
153 }
4e25ac79 154 } else if (task == AliQAv1::kESDS) {
57acd2d2 155 }
9bd82f77 156 }
508b9fc0 157}
158
159//____________________________________________________________________________
160void AliVZEROQADataMakerRec::InitESDs()
161{
6bec7c7c 162 // Creates histograms to control ESDs
163
7d297381 164 const Bool_t expert = kTRUE ;
165 const Bool_t image = kTRUE ;
9bd82f77 166
6bec7c7c 167 TH2D * h2d;
168 TH1I * h1i;
169 TH1D * h1d;
9bd82f77 170
171 h1i = new TH1I("H1I_Cell_Multiplicity_V0A", "Cell Multiplicity in V0A", 35, 0, 35) ;
9bd82f77 172 h1i->GetXaxis()->SetTitle("Multiplicity (Nb of Cell)");
7d297381 173 Add2ESDsList(h1i, kCellMultiV0A, !expert, image) ;
4da80b8c 174
9bd82f77 175 h1i = new TH1I("H1I_Cell_Multiplicity_V0C", "Cell Multiplicity in V0C", 35, 0, 35) ;
9bd82f77 176 h1i->GetXaxis()->SetTitle("Multiplicity (Nb of Cell)");
7d297381 177 Add2ESDsList(h1i, kCellMultiV0C, !expert, image) ;
9bd82f77 178
179 h1d = new TH1D("H1D_MIP_Multiplicity_V0A", "MIP Multiplicity in V0A", 1000, 0, 1000) ;
9bd82f77 180 h1d->GetXaxis()->SetTitle("Multiplicity (Nb of MIP)");
7d297381 181 Add2ESDsList(h1d, kMIPMultiV0A, !expert, image) ;
9bd82f77 182
183 h1d = new TH1D("H1D_MIP_Multiplicity_V0C", "MIP Multiplicity in V0C", 1000, 0, 1000) ;
9bd82f77 184 h1d->GetXaxis()->SetTitle("Multiplicity (Nb of MIP)");
7d297381 185 Add2ESDsList(h1d, kMIPMultiV0C, !expert, image) ;
28fdf12c 186
9bd82f77 187 h2d = new TH2D("H2D_MIP_Multiplicity_Channel", "MIP Multiplicity per Channel",64, 0, 64, 100, 0, 100) ;
188 h2d->GetXaxis()->SetTitle("Channel");
189 h2d->GetYaxis()->SetTitle("Multiplicity (Nb of MIP)");
7d297381 190 Add2ESDsList(h2d, kMIPMultiChannel, !expert, image) ;
9bd82f77 191
192 h1d = new TH1D("H1D_BBFlag_Counters", "BB Flag Counters",64, 0, 64) ;
193 h1d->GetXaxis()->SetTitle("Channel");
7d297381 194 Add2ESDsList(h1d, kBBFlag, !expert, image) ;
9bd82f77 195
196 h1d = new TH1D("H1D_BGFlag_Counters", "BG Flag Counters",64, 0, 64) ;
197 h1d->GetXaxis()->SetTitle("Channel");
7d297381 198 Add2ESDsList(h1d, kBGFlag, !expert, image) ;
9bd82f77 199
200 h2d = new TH2D("H2D_Charge_Channel", "ADC Charge per channel",64, 0, 64, 1024, 0, 1024) ;
201 h2d->GetXaxis()->SetTitle("Channel");
202 h2d->GetYaxis()->SetTitle("Charge (ADC counts)");
7d297381 203 Add2ESDsList(h2d, kChargeChannel, !expert, image) ;
9bd82f77 204
205 h2d = new TH2D("H2D_Time_Channel", "Time per channel",64, 0, 64, 820, 0, 410) ;
206 h2d->GetXaxis()->SetTitle("Channel");
207 h2d->GetYaxis()->SetTitle("Time (ns)");
7d297381 208 Add2ESDsList(h2d, kTimeChannel, !expert, image) ;
9bd82f77 209
210 h1d = new TH1D("H1D_V0A_Time", "Mean V0A Time",2048, 0., 409.6);
211 h1d->GetXaxis()->SetTitle("Time (ns)");
7d297381 212 Add2ESDsList(h1d,kESDV0ATime, !expert, image);
9bd82f77 213
214 h1d = new TH1D("H1D_V0C_Time", "Mean V0C Time",2048, 0., 409.6);
215 h1d->GetXaxis()->SetTitle("Time (ns)");
7d297381 216 Add2ESDsList(h1d,kESDV0CTime, !expert, image);
9bd82f77 217
218 h1d = new TH1D("H1D_Diff_Time", "Diff Time V0A - V0C",2*2048, -409.6, 409.6);
219 h1d->GetXaxis()->SetTitle("Diff Time V0A - V0C (ns)");
7d297381 220 Add2ESDsList(h1d,kESDDiffTime, !expert, image);
9bd82f77 221
28fdf12c 222}
508b9fc0 223
224//____________________________________________________________________________
4da80b8c 225 void AliVZEROQADataMakerRec::InitRaws()
226 {
6bec7c7c 227 // Creates RAW histograms in Raws subdir
228
7d297381 229 const Bool_t expert = kTRUE ;
230 const Bool_t saveCorr = kTRUE ;
231 const Bool_t image = kTRUE ;
9bd82f77 232
6bec7c7c 233 char name[50] , title[100];
234 const Int_t kNintegrator = 2;
9bd82f77 235
6bec7c7c 236 const Int_t kNTdcTimeBins = 2048;
237 const Int_t kTdcTimeMin = 0;
238 const Int_t kTdcTimeMax = 4096;
239 const Int_t kNTdcWidthBins = 128;
240 const Int_t kTdcWidthMin = 0;
241 const Int_t kTdcWidthMax = 128;
242 const Int_t kNChargeBins = 1024;
243 const Int_t kChargeMin = 0;
244 const Int_t kChargeMax = 1024;
245 const Int_t kNChannelBins = 64;
246 const Int_t kChannelMin = 0;
247 const Int_t kChannelMax = 64;
248 const Int_t kNPedestalBins = 200;
249 const Int_t kPedestalMin = 0;
250 const Int_t kPedestalMax = 200;
251 const Int_t kTimeMin = 0;
252 const Int_t kTimeMax = 100;
253 const Int_t kNMIPBins = 200;
254 const Int_t kMIPMin = 0;
255 const Int_t kMIPMax = 200;
256
257 TH2I * h2i;
258 TH2D * h2d;
259 TH1I * h1i;
260 TH1D * h1d;
261
262 int iHisto =0;
9bd82f77 263
6bec7c7c 264 // Creation of Cell Multiplicity Histograms
9bd82f77 265 h1i = new TH1I("H1I_Multiplicity_V0A", "Cell Multiplicity in V0A", 35, 0, 35) ;
7d297381 266 Add2RawsList(h1i,kMultiV0A, !expert, image, saveCorr); iHisto++;
9bd82f77 267 h1i = new TH1I("H1I_Multiplicity_V0C", "Cell Multiplicity in V0C", 35, 0, 35) ;
7d297381 268 Add2RawsList(h1i,kMultiV0C, !expert, image, saveCorr); iHisto++;
9bd82f77 269
6bec7c7c 270 // Creation of Total Charge Histograms
9bd82f77 271 h1d = new TH1D("H1D_Charge_V0A", "Total Charge in V0A", 2048, 0, 32768) ;
7d297381 272 Add2RawsList(h1d,kChargeV0A, !expert, image, saveCorr); iHisto++;
9bd82f77 273 h1d = new TH1D("H1D_Charge_V0C", "Total Charge in V0C", 2048, 0, 32768) ;
7d297381 274 Add2RawsList(h1d,kChargeV0C, !expert, image, saveCorr); iHisto++;
9bd82f77 275 h1d = new TH1D("H1D_Charge_V0", "Total Charge in V0", 2048, 0, 65536) ;
7d297381 276 Add2RawsList(h1d,kChargeV0, !expert, image, saveCorr); iHisto++;
9bd82f77 277
278 // Creation of MIP Histograms
279 h1d = new TH1D("H1D_MIP_V0A", "Total MIP in V0A", 2*kNMIPBins,kMIPMin ,32*kMIPMax) ;
7d297381 280 Add2RawsList(h1d,kRawMIPV0A, !expert, image, saveCorr); iHisto++;
9bd82f77 281 h1d = new TH1D("H1D_MIP_V0C", "Total MIP in V0C", 2*kNMIPBins,kMIPMin ,32*kMIPMax) ;
7d297381 282 Add2RawsList(h1d,kRawMIPV0C, !expert, image, saveCorr); iHisto++;
9bd82f77 283 h1d = new TH1D("H1D_MIP_V0", "Total MIP in V0", 2*kNMIPBins,kMIPMin ,32*kMIPMax) ;
7d297381 284 Add2RawsList(h1d,kRawMIPV0, !expert, image, saveCorr); iHisto++;
9bd82f77 285 h2d = new TH2D("H2D_MIP_Channel", "Nb of MIP per channel", kNChannelBins, kChannelMin, kChannelMax,kNMIPBins,kMIPMin ,kMIPMax) ;
7d297381 286 Add2RawsList(h2d,kRawMIPChannel, expert, !image, !saveCorr); iHisto++;
9bd82f77 287
288
d62942e8 289 for(Int_t iInt=0;iInt<kNintegrator;iInt++){
9bd82f77 290 // Creation of Pedestal histograms
6bec7c7c 291 sprintf(name,"H2I_Pedestal_Int%d",iInt);
292 sprintf(title,"Pedestal (Int%d)",iInt);
293 h2i = new TH2I(name, title,kNChannelBins, kChannelMin, kChannelMax,kNPedestalBins,kPedestalMin ,kPedestalMax );
7d297381 294 Add2RawsList(h2i,(iInt == 0 ? kPedestalInt0 : kPedestalInt1), expert, !image, !saveCorr); iHisto++;
9bd82f77 295
6bec7c7c 296 // Creation of temporary Pedestal histo used for the mean versus time histogram. This histogram will be reset at the end of each cycle
297 sprintf(name,"H2I_Pedestal_CycleInt%d",iInt);
298 sprintf(title,"One Cycle Pedestal (Int%d)",iInt);
299 h2i = new TH2I(name, title,kNChannelBins, kChannelMin, kChannelMax,kNPedestalBins,kPedestalMin ,kPedestalMax );
7d297381 300 Add2RawsList(h2i,(iInt == 0 ? kPedestalCycleInt0 : kPedestalCycleInt1), expert, !image, !saveCorr); iHisto++;
9bd82f77 301
6bec7c7c 302 // Creation of Pedestal versus time graph.
303 sprintf(name,"H2D_Pedestal_Time_Int%d",iInt);
304 sprintf(title,"Pedestal Versus Time (Int%d)",iInt);
305 h2d = new TH2D(name, title,kNChannelBins, kChannelMin, kChannelMax,kTimeMax,kTimeMin ,kTimeMax );
7d297381 306 Add2RawsList(h2d,(iInt == 0 ? kPedestalTimeInt0 : kPedestalTimeInt1), expert, !image, !saveCorr); iHisto++;
9bd82f77 307
308 // Creation of Charge EoI histograms
6bec7c7c 309 sprintf(name,"H2I_ChargeEoI_Int%d",iInt);
310 sprintf(title,"Charge EoI (Int%d)",iInt);
311 h2i = new TH2I(name, title,kNChannelBins, kChannelMin, kChannelMax, kNChargeBins, kChargeMin, kChargeMax);
7d297381 312 Add2RawsList(h2i,(iInt == 0 ? kChargeEoIInt0 : kChargeEoIInt1), !expert, image, !saveCorr); iHisto++;
9bd82f77 313
314 // Creation of temporary Charge EoI histograms used for the mean versus time histogram. This histogram will be reset at the end of each cycle
6bec7c7c 315 sprintf(name,"H2I_ChargeEoI_CycleInt%d",iInt);
316 sprintf(title,"One Cycle Charge EoI (Int%d)",iInt);
317 h2i = new TH2I(name, title,kNChannelBins, kChannelMin, kChannelMax, kNChargeBins, kChargeMin, kChargeMax);
7d297381 318 Add2RawsList(h2i,(iInt == 0 ? kChargeEoICycleInt0 : kChargeEoICycleInt1), expert, !image, !saveCorr); iHisto++;
9bd82f77 319
6bec7c7c 320 // Creation of Charge EoI versus time graphs
321 sprintf(name,"H2D_ChargeEoI_Time_Int%d",iInt);
322 sprintf(title,"Charge EoI Versus Time (Int%d)",iInt);
323 h2d = new TH2D(name, title,kNChannelBins, kChannelMin, kChannelMax,kTimeMax,kTimeMin ,kTimeMax );
7d297381 324 Add2RawsList(h2d,(iInt == 0 ? kChargeEoITimeInt0 : kChargeEoITimeInt1), expert, !image, !saveCorr); iHisto++;
f81355e3 325
6bec7c7c 326 sprintf(name,"H2I_ChargeEoI_BB_Int%d",iInt);
327 sprintf(title,"Charge EoI w/ BB Flag (Int%d)",iInt);
328 h2i = new TH2I(name, title,kNChannelBins, kChannelMin, kChannelMax, kNChargeBins, kChargeMin, kChargeMax);
7d297381 329 Add2RawsList(h2i,(iInt == 0 ? kChargeEoIBBInt0 : kChargeEoIBBInt1), expert, !image, !saveCorr); iHisto++;
f81355e3 330
6bec7c7c 331 sprintf(name,"H2I_ChargeEoI_BG_Int%d",iInt);
332 sprintf(title,"Charge EoI w/ BG Flag (Int%d)",iInt);
333 h2i = new TH2I(name, title,kNChannelBins, kChannelMin, kChannelMax, kNChargeBins, kChargeMin, kChargeMax);
7d297381 334 Add2RawsList(h2i,(iInt == 0 ? kChargeEoIBGInt0: kChargeEoIBGInt1), expert, !image, !saveCorr); iHisto++;
9bd82f77 335
336 // Creation of Charge versus LHC Clock histograms
6bec7c7c 337 sprintf(name,"H2D_ChargeVsClock_Int%d",iInt);
338 sprintf(title,"Charge Versus LHC-Clock (Int%d)",iInt);
339 h2d = new TH2D(name, title,kNChannelBins, kChannelMin, kChannelMax,21, -10.5, 10.5 );
7d297381 340 Add2RawsList(h2d,(iInt == 0 ? kChargeVsClockInt0 : kChargeVsClockInt1 ), expert, !image, !saveCorr); iHisto++;
9bd82f77 341
6bec7c7c 342 // Creation of Minimum Bias Charge histograms
343 for(Int_t iBB=0;iBB<2;iBB++){
d62942e8 344 for(Int_t iBG=0;iBG<2;iBG++){
6bec7c7c 345 sprintf(name,"H2I_ChargeMB_BB%d_BG%d_Int%d",iBB,iBG,iInt);
346 sprintf(title,"MB Charge (BB=%d, BG=%d, Int=%d)",iBB,iBG,iInt);
347 h2i = new TH2I(name, title,kNChannelBins, kChannelMin, kChannelMax,kNChargeBins, kChargeMin, kChargeMax);
9bd82f77 348 int idx;
349 if(iInt==0){
350 if(iBB==0){
6bec7c7c 351 if(iBG==0) idx = kChargeMBBB0BG0Int0;
352 else idx = kChargeMBBB0BG1Int0;
9bd82f77 353 } else {
6bec7c7c 354 if(iBG==0) idx = kChargeMBBB1BG0Int0;
355 else idx = kChargeMBBB1BG1Int0;
9bd82f77 356 }
357 } else {
358 if(iBB==0){
6bec7c7c 359 if(iBG==0) idx = kChargeMBBB0BG0Int1;
360 else idx = kChargeMBBB0BG1Int1;
9bd82f77 361 } else {
6bec7c7c 362 if(iBG==0) idx = kChargeMBBB1BG0Int1;
363 else idx = kChargeMBBB1BG1Int1;
9bd82f77 364 }
365 }
7d297381 366 Add2RawsList(h2i,idx, expert, !image, !saveCorr); iHisto++;
9bd82f77 367 }
6bec7c7c 368 }
9bd82f77 369
370 }
371
6bec7c7c 372 // Creation of Time histograms
373 sprintf(name,"H2I_Width");
374 sprintf(title,"HPTDC Width");
375 h2i = new TH2I(name, title,kNChannelBins, kChannelMin, kChannelMax, kNTdcWidthBins, kTdcWidthMin, kTdcWidthMax);
7d297381 376 Add2RawsList(h2i,kWidth, expert, !image, !saveCorr); iHisto++;
9bd82f77 377
6bec7c7c 378 sprintf(name,"H2I_Width_BB");
379 sprintf(title,"HPTDC Width w/ BB Flag condition");
380 h2i = new TH2I(name, title,kNChannelBins, kChannelMin, kChannelMax, kNTdcWidthBins, kTdcWidthMin, kTdcWidthMax);
7d297381 381 Add2RawsList(h2i,kWidthBB, expert, !image, !saveCorr); iHisto++;
9bd82f77 382
6bec7c7c 383 sprintf(name,"H2I_Width_BG");
384 sprintf(title,"HPTDC Width w/ BG Flag condition");
385 h2i = new TH2I(name, title,kNChannelBins, kChannelMin, kChannelMax, kNTdcWidthBins, kTdcWidthMin, kTdcWidthMax);
7d297381 386 Add2RawsList(h2i,kWidthBG, expert, !image, !saveCorr); iHisto++;
9bd82f77 387
6bec7c7c 388 sprintf(name,"H2I_HPTDCTime");
389 sprintf(title,"HPTDC Time");
390 h2i = new TH2I(name, title,kNChannelBins, kChannelMin, kChannelMax, kNTdcTimeBins, kTdcTimeMin, kTdcTimeMax);
7d297381 391 Add2RawsList(h2i,kHPTDCTime, !expert, image, !saveCorr); iHisto++;
9bd82f77 392
6bec7c7c 393 sprintf(name,"H2I_HPTDCTime_BB");
394 sprintf(title,"HPTDC Time w/ BB Flag condition");
395 h2i = new TH2I(name, title,kNChannelBins, kChannelMin, kChannelMax, kNTdcTimeBins, kTdcTimeMin, kTdcTimeMax);
7d297381 396 Add2RawsList(h2i,kHPTDCTimeBB, expert, !image, !saveCorr); iHisto++;
9bd82f77 397
6bec7c7c 398 sprintf(name,"H2I_HPTDCTime_BG");
399 sprintf(title,"HPTDC Time w/ BG Flag condition");
400 h2i = new TH2I(name, title,kNChannelBins, kChannelMin, kChannelMax, kNTdcTimeBins, kTdcTimeMin, kTdcTimeMax);
7d297381 401 Add2RawsList(h2i,kHPTDCTimeBG, expert, !image, !saveCorr); iHisto++;
9bd82f77 402
6bec7c7c 403 sprintf(name,"H1D_V0A_Time");
404 sprintf(title,"V0A Time");
405 h1d = new TH1D(name, title,kNTdcTimeBins, kTdcTimeMin/10, kTdcTimeMax/10);
7d297381 406 Add2RawsList(h1d,kV0ATime, !expert, !image, saveCorr); iHisto++;
9bd82f77 407
6bec7c7c 408 sprintf(name,"H1D_V0C_Time");
409 sprintf(title,"V0C Time");
410 h1d = new TH1D(name, title,kNTdcTimeBins, kTdcTimeMin/10, kTdcTimeMax/10);
7d297381 411 Add2RawsList(h1d,kV0CTime, !expert, !image, saveCorr); iHisto++;
9bd82f77 412
6bec7c7c 413 sprintf(name,"H1D_Diff_Time");
414 sprintf(title,"Diff V0A-V0C Time");
415 h1d = new TH1D(name, title,2*kNTdcTimeBins, -kTdcTimeMax/10, kTdcTimeMax/10);
7d297381 416 Add2RawsList(h1d,kDiffTime, !expert, !image, saveCorr); iHisto++;
9bd82f77 417
9bd82f77 418 // Creation of Flag versus LHC Clock histograms
6bec7c7c 419 sprintf(name,"H2D_BBFlagVsClock");
420 sprintf(title,"BB-Flags Versus LHC-Clock");
421 h2d = new TH2D(name, title,kNChannelBins, kChannelMin, kChannelMax,21, -10.5, 10.5 );
7d297381 422 Add2RawsList(h2d,kBBFlagVsClock, expert, !image, !saveCorr); iHisto++;
9bd82f77 423
6bec7c7c 424 sprintf(name,"H2D_BGFlagVsClock");
425 sprintf(title,"BG-Flags Versus LHC-Clock");
426 h2d = new TH2D(name, title,kNChannelBins, kChannelMin, kChannelMax,21, -10.5, 10.5 );
7d297381 427 Add2RawsList(h2d,kBGFlagVsClock, expert, !image, !saveCorr); iHisto++;
9bd82f77 428
5379c4a3 429 AliDebug(AliQAv1::GetQADebugLevel(), Form("%d Histograms has been added to the Raws List",iHisto));
4da80b8c 430 }
508b9fc0 431
44ed7a66 432//____________________________________________________________________________
433void AliVZEROQADataMakerRec::InitDigits()
434{
435 // create Digits histograms in Digits subdir
436 const Bool_t expert = kTRUE ;
437 const Bool_t image = kTRUE ;
438
439 char TDCname[100];
440 char ADCname[100];
441 TH1I *fhDigTDC[64];
442 TH1I *fhDigADC[64];
443 char texte[100];
444
445 // create Digits histograms in Digits subdir
446 TH1I * h0 = new TH1I("hDigitMultiplicity", "Digits multiplicity distribution in VZERO", 100, 0, 99) ;
447 h0->Sumw2() ;
448 Add2DigitsList(h0, 0, !expert, image) ;
449
450 for (Int_t i=0; i<64; i++)
451 {
452 sprintf(TDCname, "hDigitTDC%d", i);
453 sprintf(texte,"Digit TDC in cell %d",i);
454 fhDigTDC[i] = new TH1I(TDCname,texte,300,0.,149.);
455
456 sprintf(ADCname,"hDigitADC%d",i);
457 sprintf(texte,"Digit ADC in cell %d",i);
458 fhDigADC[i]= new TH1I(ADCname,texte,1024,0.,1023.);
459
460 Add2DigitsList(fhDigTDC[i],i+1, !expert, image);
461 Add2DigitsList(fhDigADC[i],i+1+64, !expert, image);
462 }
463}
464
465//____________________________________________________________________________
466void AliVZEROQADataMakerRec::MakeDigits(TClonesArray * digits)
467{
468 // makes data from Digits
469
470 GetDigitsData(0)->Fill(digits->GetEntriesFast()) ;
471 TIter next(digits) ;
472 AliVZEROdigit *VZERODigit ;
473 while ( (VZERODigit = dynamic_cast<AliVZEROdigit *>(next())) ) {
474 Int_t PMNumber = VZERODigit->PMNumber();
475 GetDigitsData(PMNumber +1)->Fill( VZERODigit->Time()) ; // in 100 of picoseconds
476 GetDigitsData(PMNumber +1+64)->Fill( VZERODigit->ADC()) ;
477 }
478}
479
480
481//____________________________________________________________________________
482void AliVZEROQADataMakerRec::MakeDigits(TTree *digitTree)
483{
484 // makes data from Digit Tree
485
486 TClonesArray * digits = new TClonesArray("AliVZEROdigit", 1000) ;
487
488 TBranch * branch = digitTree->GetBranch("VZERODigit") ;
489 if ( ! branch ) {
490 AliWarning("VZERO branch in Digit Tree not found") ;
491 } else {
492 branch->SetAddress(&digits) ;
493 branch->GetEntry(0) ;
494 MakeDigits(digits) ;
495 }
496}
497
498
508b9fc0 499//____________________________________________________________________________
500void AliVZEROQADataMakerRec::MakeESDs(AliESDEvent * esd)
501{
6bec7c7c 502 // Creates QA data from ESDs
503
504 UInt_t eventType = esd->GetEventType();
508b9fc0 505
6bec7c7c 506 switch (eventType){
9bd82f77 507 case PHYSICS_EVENT:
6bec7c7c 508 AliESDVZERO *esdVZERO=esd->GetVZEROData();
508b9fc0 509
6bec7c7c 510 if (!esdVZERO) break;
9bd82f77 511
512 GetESDsData(kCellMultiV0A)->Fill(esdVZERO->GetNbPMV0A());
513 GetESDsData(kCellMultiV0C)->Fill(esdVZERO->GetNbPMV0C());
514 GetESDsData(kMIPMultiV0A)->Fill(esdVZERO->GetMTotV0A());
515 GetESDsData(kMIPMultiV0C)->Fill(esdVZERO->GetMTotV0C());
516
6bec7c7c 517 Float_t timeV0A = 0., timeV0C = 0., diffTime;
518 Int_t iTimeV0A = 0, iTimeV0C = 0;
9bd82f77 519
6bec7c7c 520 for(Int_t i=0;i<64;i++) {
9bd82f77 521 GetESDsData(kMIPMultiChannel)->Fill((Float_t) i,(Float_t) esdVZERO->GetMultiplicity(i));
522 GetESDsData(kChargeChannel)->Fill((Float_t) i,(Float_t) esdVZERO->GetAdc(i));
523 if(esdVZERO->GetBBFlag(i)) GetESDsData(kBBFlag)->Fill((Float_t) i);
524 if(esdVZERO->GetBGFlag(i)) GetESDsData(kBGFlag)->Fill((Float_t) i);
525
6bec7c7c 526 Float_t time = (Float_t) esdVZERO->GetTime(i)/10.; //Convert in ns: 1 TDC channel = 100ps
527 GetESDsData(kTimeChannel)->Fill((Float_t) i,time);
9bd82f77 528
6bec7c7c 529 if(time>0.){
9bd82f77 530 if (i<32) {
531 iTimeV0C++;
6bec7c7c 532 timeV0C += time;
9bd82f77 533 }else{
534 iTimeV0A++;
6bec7c7c 535 timeV0A += time;
9bd82f77 536 }
537 }
538 }
6bec7c7c 539 if(iTimeV0A>0) timeV0A /= iTimeV0A;
540 else timeV0A = -1.;
541 if(iTimeV0C>0) timeV0C /= iTimeV0C;
542 else timeV0C = -1.;
543 if(timeV0A<0. || timeV0C<0.) diffTime = -10000.;
544 else diffTime = timeV0A - timeV0C;
9bd82f77 545
6bec7c7c 546 GetESDsData(kESDV0ATime)->Fill(timeV0A);
547 GetESDsData(kESDV0CTime)->Fill(timeV0C);
548 GetESDsData(kESDDiffTime)->Fill(diffTime);
9bd82f77 549
6bec7c7c 550 break;
9bd82f77 551 }
28fdf12c 552
508b9fc0 553}
554
555//____________________________________________________________________________
4da80b8c 556 void AliVZEROQADataMakerRec::MakeRaws(AliRawReader* rawReader)
557 {
6bec7c7c 558 // Fills histograms with Raws, computes average ADC values dynamically (pedestal subtracted)
1e376713 559
f81355e3 560 rawReader->Reset() ;
561 AliVZERORawStream* rawStream = new AliVZERORawStream(rawReader);
4da80b8c 562 rawStream->Next();
1e376713 563
6bec7c7c 564 eventTypeType eventType = rawReader->GetType();
9bd82f77 565
6bec7c7c 566 Int_t mulV0A = 0 ;
567 Int_t mulV0C = 0 ;
568 Double_t timeV0A =0., timeV0C = 0.;
569 UInt_t itimeV0A=0, itimeV0C=0;
570 Double_t chargeV0A=0., chargeV0C=0.;
571 Double_t mipV0A=0., mipV0C=0.;
9bd82f77 572
6bec7c7c 573 Double_t diffTime=-100000.;
9bd82f77 574
575
6bec7c7c 576 switch (eventType){
577 case PHYSICS_EVENT:
578 Int_t iFlag=0;
579 Int_t pedestal;
580 Int_t integrator;
581 Bool_t BBFlag;
9bd82f77 582 Bool_t BGFlag;
6bec7c7c 583 UInt_t time, width;
584 Int_t MBCharge, charge;
585 Int_t offlineCh;
586 TH1D * hProj;
9bd82f77 587
d62942e8 588 for(Int_t iChannel=0; iChannel<64; iChannel++) { // BEGIN : Loop over channels
9bd82f77 589
6bec7c7c 590 offlineCh = rawStream->GetOfflineChannel(iChannel);
9bd82f77 591
6bec7c7c 592 // Fill Pedestal histograms
593
594 for(Int_t j=15; j<21; j++) {
9bd82f77 595 if((rawStream->GetBGFlag(iChannel,j) || rawStream->GetBBFlag(iChannel,j))) iFlag++;
6bec7c7c 596 }
9bd82f77 597
6bec7c7c 598 if(iFlag == 0){ //No Flag found
d62942e8 599 for(Int_t j=15; j<21; j++){
9bd82f77 600 pedestal=rawStream->GetPedestal(iChannel, j);
601 integrator = rawStream->GetIntegratorFlag(iChannel, j);
602
6bec7c7c 603 GetRawsData((integrator == 0 ? kPedestalInt0 : kPedestalInt1))->Fill(offlineCh,pedestal);
604 GetRawsData((integrator == 0 ? kPedestalCycleInt0 : kPedestalCycleInt1))->Fill(offlineCh,pedestal);
9bd82f77 605 }
6bec7c7c 606 }
9bd82f77 607
6bec7c7c 608 // Fill Charge EoI histograms
609
610 // Look for the maximum in the LHC clock train
611 charge = 0;
9bd82f77 612 Int_t iClock = 0;
613 Int_t iCharge = 0;
d62942e8 614 for(Int_t iEvent=0; iEvent<21; iEvent++){
9bd82f77 615 iCharge = rawStream->GetPedestal(iChannel,iEvent);
6bec7c7c 616 if(iCharge>charge) {
617 charge = iCharge;
9bd82f77 618 iClock = iEvent;
619 }
620 } // End of maximum searching procedure
621
6bec7c7c 622 integrator = rawStream->GetIntegratorFlag(iChannel,iClock);
9bd82f77 623 BBFlag = rawStream->GetBBFlag(iChannel, iClock);
624 BGFlag = rawStream->GetBGFlag(iChannel,iClock );
625
6bec7c7c 626 GetRawsData((integrator == 0 ? kChargeEoIInt0 : kChargeEoIInt1))->Fill(offlineCh,charge);
627 if(BBFlag) GetRawsData((integrator == 0 ? kChargeEoIBBInt0 : kChargeEoIBBInt1))->Fill(offlineCh,charge);
628 if(BGFlag) GetRawsData((integrator == 0 ? kChargeEoIBGInt0 : kChargeEoIBGInt1))->Fill(offlineCh,charge);
9bd82f77 629
6bec7c7c 630 hProj = ((TH2I*)GetRawsData((integrator == 0 ? kPedestalInt0 : kPedestalInt1)))->ProjectionY("",offlineCh+1,offlineCh+1);
631 Double_t ped = hProj->GetMean();
632 Double_t sigma = hProj->GetRMS();
633 delete hProj;
9bd82f77 634
6bec7c7c 635 Double_t chargeEoI = charge - ped;
9bd82f77 636
6bec7c7c 637 // Calculation of the number of MIP
638 Double_t mipEoI = chargeEoI * fCalibData->GetMIPperADC(offlineCh);
9bd82f77 639
640
6bec7c7c 641 if(charge<1023 && chargeEoI > 5.*sigma){
642 ((TH2I*)GetRawsData((integrator == 0 ? kChargeEoICycleInt0 : kChargeEoICycleInt1)))->Fill(offlineCh,chargeEoI);
643 ((TH2D*)GetRawsData(kRawMIPChannel))->Fill(offlineCh,mipEoI);
644 if(offlineCh<32) {
9bd82f77 645 mulV0C++;
6bec7c7c 646 chargeV0C += chargeEoI;
647 mipV0C += mipEoI;
648 } else {
9bd82f77 649 mulV0A++;
6bec7c7c 650 chargeV0A += chargeEoI;
651 mipV0A += mipEoI;
9bd82f77 652 }
6bec7c7c 653 }
9bd82f77 654
6bec7c7c 655 // Fill Charge Minimum Bias Histograms
656
657 int idx;
658 for(Int_t iBunch=0; iBunch<10; iBunch++){
9bd82f77 659 integrator = rawStream->GetIntMBFlag(iChannel, iBunch);
6bec7c7c 660 BBFlag = rawStream->GetBBMBFlag(iChannel, iBunch);
661 BGFlag = rawStream->GetBGMBFlag(iChannel, iBunch);
9bd82f77 662 MBCharge = rawStream->GetChargeMB(iChannel, iBunch);
663
664 if(integrator==0){
665 if(BBFlag==0){
6bec7c7c 666 if(BGFlag==0) idx = kChargeMBBB0BG0Int0;
667 else idx = kChargeMBBB0BG1Int0;
9bd82f77 668 } else {
6bec7c7c 669 if(BGFlag==0) idx = kChargeMBBB1BG0Int0;
670 else idx = kChargeMBBB1BG1Int0;
9bd82f77 671 }
672 } else {
673 if(BBFlag==0){
6bec7c7c 674 if(BGFlag==0) idx = kChargeMBBB0BG0Int1;
675 else idx = kChargeMBBB0BG1Int1;
9bd82f77 676 } else {
6bec7c7c 677 if(BGFlag==0) idx = kChargeMBBB1BG0Int1;
678 else idx = kChargeMBBB1BG1Int1;
9bd82f77 679 }
680 }
6bec7c7c 681 GetRawsData(idx)->Fill(offlineCh,MBCharge);
682 }
683
684 // Fill HPTDC Time Histograms
685
686 BBFlag = rawStream->GetBBFlag(iChannel, 10);
687 BGFlag = rawStream->GetBGFlag(iChannel, 10);
688 time = rawStream->GetTime(iChannel);
689 width = rawStream->GetWidth(iChannel);
690
691 if(time>0.){
692 if (offlineCh<32) {
693 itimeV0C++;
694 timeV0C += time;
695 }else{
696 itimeV0A++;
697 timeV0A += time;
698 }
699 }
700 GetRawsData(kHPTDCTime)->Fill(offlineCh,time);
701 GetRawsData(kWidth)->Fill(offlineCh,width);
9bd82f77 702 if(BBFlag) {
6bec7c7c 703 GetRawsData(kHPTDCTimeBB)->Fill(offlineCh,time);
704 GetRawsData(kWidthBB)->Fill(offlineCh,width);
9bd82f77 705 }
6bec7c7c 706 if(BGFlag) {
707 GetRawsData(kHPTDCTimeBG)->Fill(offlineCh,time);
708 GetRawsData(kWidthBG)->Fill(offlineCh,width);
9bd82f77 709 }
710
6bec7c7c 711 // Fill Flag and Charge Versus LHC-Clock histograms
712
d62942e8 713 for(Int_t iEvent=0; iEvent<21; iEvent++){
6bec7c7c 714 charge = rawStream->GetPedestal(iChannel,iEvent);
715 integrator = rawStream->GetIntegratorFlag(iChannel,iEvent);
716 BBFlag = rawStream->GetBBFlag(iChannel, iEvent);
717 BGFlag = rawStream->GetBGFlag(iChannel,iEvent );
718
719 ((TH2*) GetRawsData((integrator == 0 ? kChargeVsClockInt0 : kChargeVsClockInt1 )))->Fill(offlineCh,(float)iEvent-10,(float)charge);
720 ((TH2*) GetRawsData(kBBFlagVsClock))->Fill(offlineCh,(float)iEvent-10,(float)BBFlag);
721 ((TH2*) GetRawsData(kBGFlagVsClock))->Fill(offlineCh,(float)iEvent-10,(float)BGFlag);
9bd82f77 722 }
723
6bec7c7c 724 }// END of Loop over channels
9bd82f77 725
6bec7c7c 726 if(itimeV0A>0) timeV0A /= (itimeV0A * 10); // itimeV0A Channels and divide by 10 to have the result in ns because 1 TDC Channel = 100 ps
727 else timeV0A = -1.;
728 if(itimeV0C>0) timeV0C /= (itimeV0C * 10);
729 else timeV0C = -1.;
730 if(timeV0A<0. || timeV0C<0.) diffTime = -10000.;
731 else diffTime = timeV0A - timeV0C;
9bd82f77 732
6bec7c7c 733 GetRawsData(kV0ATime)->Fill(timeV0A);
734 GetRawsData(kV0CTime)->Fill(timeV0C);
735 GetRawsData(kDiffTime)->Fill(diffTime);
9bd82f77 736
6bec7c7c 737 GetRawsData(kMultiV0A)->Fill(mulV0A);
738 GetRawsData(kMultiV0C)->Fill(mulV0C);
9bd82f77 739
6bec7c7c 740 GetRawsData(kChargeV0A)->Fill(chargeV0A);
741 GetRawsData(kChargeV0C)->Fill(chargeV0C);
742 GetRawsData(kChargeV0)->Fill(chargeV0A + chargeV0C);
9bd82f77 743
6bec7c7c 744 GetRawsData(kRawMIPV0A)->Fill(mipV0A);
745 GetRawsData(kRawMIPV0C)->Fill(mipV0C);
746 GetRawsData(kRawMIPV0)->Fill(mipV0A + mipV0C);
747 break;
748
749 } // END of SWITCH : EVENT TYPE
9bd82f77 750
751 fEvent++;
4e25ac79 752 TParameter<double> * p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kMultiV0A)->GetName()))) ;
719e870c 753 if (p) p->SetVal((double)mulV0A) ;
9bd82f77 754
4e25ac79 755 p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kMultiV0C)->GetName()))) ;
719e870c 756 if (p) p->SetVal((double)mulV0C) ;
9bd82f77 757
4e25ac79 758 p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kChargeV0A)->GetName()))) ;
719e870c 759 if (p) p->SetVal((double)chargeV0A) ;
9bd82f77 760
4e25ac79 761 p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kChargeV0C)->GetName()))) ;
719e870c 762 if (p) p->SetVal((double)chargeV0C) ;
9bd82f77 763
4e25ac79 764 p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kChargeV0)->GetName()))) ;
719e870c 765 if (p) p->SetVal((double)(chargeV0A + chargeV0C)) ;
9bd82f77 766
4e25ac79 767 p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kRawMIPV0A)->GetName()))) ;
719e870c 768 if (p) p->SetVal((double)mipV0A) ;
9bd82f77 769
4e25ac79 770 p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kRawMIPV0C)->GetName()))) ;
719e870c 771 if (p) p->SetVal((double)mipV0C) ;
9bd82f77 772
4e25ac79 773 p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kRawMIPV0)->GetName()))) ;
719e870c 774 if (p) p->SetVal((double)(mipV0A + mipV0C)) ;
9bd82f77 775
4e25ac79 776 p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kV0ATime)->GetName()))) ;
719e870c 777 if (p) p->SetVal((double)timeV0A) ;
9bd82f77 778
4e25ac79 779 p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kV0CTime)->GetName()))) ;
719e870c 780 if (p) p->SetVal((double)timeV0C) ;
9bd82f77 781
4e25ac79 782 p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kDiffTime)->GetName()))) ;
719e870c 783 if (p) p->SetVal((double)diffTime) ;
9bd82f77 784
785 delete rawStream; rawStream = 0x0;
786
787
4da80b8c 788 }
508b9fc0 789
790//____________________________________________________________________________
791void AliVZEROQADataMakerRec::StartOfDetectorCycle()
792{
793 // Detector specific actions at start of cycle
794
6bec7c7c 795 // Reset of the histogram used - to have the trend versus time -
e6d13307 796
797 fCalibData = GetCalibData();
6bec7c7c 798
9bd82f77 799 TH1* h;
6bec7c7c 800 h = GetRawsData(kPedestalCycleInt0);
9bd82f77 801 if(h) h->Reset();
6bec7c7c 802 h = GetRawsData(kPedestalCycleInt1);
9bd82f77 803 if(h) h->Reset();
6bec7c7c 804 h = GetRawsData(kChargeEoICycleInt0);
9bd82f77 805 if(h) h->Reset();
6bec7c7c 806 h = GetRawsData(kChargeEoICycleInt1);
9bd82f77 807 if(h) h->Reset();
808
508b9fc0 809}