+}
+
+//--------------------------------------------------------------------------
+Double_t AliT0QAChecker::CheckRaw(TObjArray *listrec , TObjArray *listref) const
+{
+
+ //TH1 *fhRawEff;
+ //TH1 *fhRawRef;
+ TH2 *fhRawRec2d;
+ TH2 *fhTime;
+
+ TIter next(listref) ;
+ //Int_t counter=0;
+ Float_t refmean[50][25];
+ Float_t refrms[50][25];
+ Float_t checkr = 0;
+
+ //Int_t nref = listref->GetEntries();
+ //Int_t nrec = listrec->GetEntries();
+
+ for (Int_t iii=4; iii<6; iii++){
+ fhRawRec2d =(TH2*) listref->At(iii);
+ for (Int_t idet=1; idet<25; idet++) {
+
+ refmean[iii-4][idet] = fhRawRec2d->
+ ProjectionY(Form("%s_py_%i_%i", fhRawRec2d ->GetName(), idet,iii-4),
+ idet,idet+1)->GetMean();
+
+ refrms[iii-4][idet] = fhRawRec2d->
+ ProjectionY(Form("%s_py%i_%i",
+ fhRawRec2d ->GetName(), idet,iii-4),
+ idet,idet+1)->GetRMS();
+
+ }
+ }
+
+
+ TString nameDev[2] = {"CDF", "LED"};
+ for (Int_t icase=208; icase<210; icase++) {
+ fhTime = (TH2*) listrec->At(icase);
+ for (Int_t idet=1; idet<25; idet++) {
+ Double_t binmean = fhTime->
+ ProjectionY(Form("%s_py_%i_%i", fhTime ->GetName(), idet,icase),
+ idet,idet+1)->GetMean();
+// Double_t rms= fhTime ->ProjectionY(Form("%s_py%i_%i",
+// fhTime ->GetName(), idet,icase),
+// idet,idet+1)->GetRMS();
+ Double_t diffmean = binmean-refmean[icase-208][idet];
+
+ if (TMath::Abs(diffmean) < 2 ) {
+ checkr = 1;
+ // printf(" Laser calibration signal sits on its place %f for PMT %s %i : check = %f\n", diffmean, nameDev[icase-208].Data() ,idet, checkr);
+ AliDebug(AliQAv1::GetQADebugLevel(),
+ Form(" Laser calibration signal sits on its place %f for PMT %s %i : check = %f\n", diffmean, nameDev[icase-208].Data(),idet, checkr)) ;
+ }
+ if (TMath::Abs(diffmean) <= 5 && TMath::Abs(diffmean) >= 2 ){
+ checkr = 0.5;
+ // printf(" Laser calibration signal shifted by %f ps for PMT %s %i : check = %f\n", diffmean*24.4, nameDev[icase-208].Data(),idet, checkr);
+ AliDebug(AliQAv1::GetQADebugLevel(),
+ Form(" Laser calibration signal shifted by %f ps (%f channels) for PMT %s %i : check = %f\n", diffmean*24.4 ,diffmean , nameDev[icase-208].Data(),idet, checkr)) ;
+ }
+ if (TMath::Abs(diffmean) > 5) {
+ checkr = 0.25;
+ // printf(" Big problems :laser calibration signal shifted by %f ps (%f channels) for PMT %s %i : check = %f\n", diffmean*24.4, diffmean, nameDev[icase-208].Data(),idet, checkr);
+ AliDebug(AliQAv1::GetQADebugLevel(),
+ Form(" Big problems :laser calibration signal shifted by %f ps (%f channels) for PMT %s %i : check = %i\n", diffmean*24.4, diffmean, nameDev[icase-208].Data(),idet, checkr)) ;
+
+ }
+
+ }
+ }
+
+ return checkr;