Run number in query set to -1: forces AliCDBManager to use its run number (A.Colla)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 Apr 2006 15:28:51 +0000 (15:28 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 Apr 2006 15:28:51 +0000 (15:28 +0000)
TOF/AliTOFClusterFinder.cxx
TOF/AliTOFDigitizer.cxx

index f40af02..bc792af 100644 (file)
@@ -547,7 +547,8 @@ void AliTOFClusterFinder::CalibrateRecPoint()
   Float_t tdcCorr;
   AliInfo(" Calibrating TOF Clusters: ")
   AliTOFcalib *calib = new AliTOFcalib(fTOFGeometry);
-  calib->ReadParFromCDB("TOF/Calib",0);
+  // calib->ReadParFromCDB("TOF/Calib",0); // original
+  calib->ReadParFromCDB("TOF/Calib",-1); // Use AliCDBManager's run number
   AliTOFCal *calTOFArray = calib->GetTOFCalArray();  
 
   for (ii=0; ii<fNumberOfTofClusters; ii++) {
index 0f505e9..348fb5d 100644 (file)
@@ -378,7 +378,8 @@ void AliTOFDigitizer::CollectSDigit(AliTOFSDigit * sdigit)
 
 //_____________________________________________________________________________
 void AliTOFDigitizer::InitDecalibration( AliTOFcalib *calib) const {
-  calib->ReadSimParFromCDB("TOF/Calib", 0);
+  // calib->ReadSimParFromCDB("TOF/Calib", 0); // original
+  calib->ReadSimParFromCDB("TOF/Calib", -1); // use AliCDBManager's number
 }
 //---------------------------------------------------------------------
 void AliTOFDigitizer::DecalibrateTOFSignal( AliTOFcalib *calib){