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 f40af02b585ab26c4aeec1541b781334fa53c28c..bc792af4795e7cbdf5f940305c26e550ff60f234 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 0f505e99eabdb1398ffa3a7f53bcca13f4cba25f..348fb5dbe96cd1c4fc68626b52f264fb56114289 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){