changes in calibration to fix hardware bug
authoralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Dec 2009 13:19:34 +0000 (13:19 +0000)
committeralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Dec 2009 13:19:34 +0000 (13:19 +0000)
T0/AliT0Calibrator.cxx
T0/AliT0Reconstructor.cxx

index 2b12c6f..be4a787 100644 (file)
@@ -55,7 +55,9 @@ ClassImp(AliT0Calibrator)
   for (Int_t i=0; i<24; i++){
     fMaxValue[i]=0;
     fTimeDelayCFD[i] = Int_t (param->GetTimeDelayCFD(i));
-    TGraph* fu = param ->GetWalk(i);
+    //    TGraph* fu = param ->GetWalk(i);
+    // fWalk.AddAtAndExpand(fu,i);
+    TGraph* fu = param ->GetAmpLEDRec(i);
     fWalk.AddAtAndExpand(fu,i);
      
   }
@@ -112,8 +114,10 @@ Int_t  AliT0Calibrator::WalkCorrection(Int_t refAmp,  Int_t ipmt, Int_t qt, Int_
   
   timeWalk = time - walk   ;
   timeEq= timeWalk - fTimeDelayCFD[ipmt];
-  AliDebug(10,Form(" ipmt %i time before %i timeWalk %i , walk %i  qt %i timeEq %i \n ",
-                  ipmt, time,timeWalk, walk, qt, timeEq ));
+  // printf(" ipmt %i time before %i timeWalk %i , walk %i  qt %i fTimeDelayCFD[ipmt] %i timeEq %i \n ",
+  //    ipmt, time,timeWalk, walk, qt,fTimeDelayCFD[ipmt], timeEq );
+  //   AliDebug(10,Form(" ipmt %i time before %i timeWalk %i , walk %i  qt %i timeEq %i \n ",
+  //   ipmt, time,timeWalk, walk, qt, timeEq ));
   
    return timeEq;
 }
index aadb1e7..22bad77 100644 (file)
@@ -290,10 +290,10 @@ void AliT0Reconstructor::Reconstruct(AliRawReader* rawReader, TTree*recTree) con
             adc[ipmt] = 0;
           
 
-          time[ipmt] = fCalib-> WalkCorrection(refAmp, ipmt, adc[ipmt], timeCFD[ipmt] ) ;
+          //      time[ipmt] = fCalib-> WalkCorrection(refAmp, ipmt, adc[ipmt], timeCFD[ipmt] ) ;
           
           Double_t sl = timeLED[ipmt] - timeCFD[ipmt];
-            //    time[ipmt] = fCalib-> WalkCorrection( ipmt, Int_t(sl), timeCFD[ipmt] ) ;
+          time[ipmt] = fCalib-> WalkCorrection( refAmp,ipmt, Int_t(sl), timeCFD[ipmt] ) ;
           AliDebug(10,Form(" ipmt %i QTC %i , time in chann %i (led-cfd) %i ",
                            ipmt, Int_t(adc[ipmt]) ,Int_t(time[ipmt]),Int_t( sl)));
           Double_t ampMip =( (TGraph*)fAmpLED.At(ipmt))->Eval(sl);