]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
ATO-17 - temporary fix to retrieve voltage for 2010 data (Mesut)
authormivanov <marian.ivanov@cern.ch>
Sat, 9 Aug 2014 08:12:42 +0000 (10:12 +0200)
committermivanov <marian.ivanov@cern.ch>
Sat, 9 Aug 2014 08:12:42 +0000 (10:12 +0200)
TPC/Base/AliTPCcalibDB.cxx

index e2eb63b194131bc7bac0bc059727a2936c4c0641..3fd7401ad5be5f0ec247b15744b411ed7f9fa4dd 100644 (file)
@@ -609,13 +609,15 @@ Bool_t AliTPCcalibDB::GetTailcancelationGraphs(Int_t sector, TGraphErrors ** gra
 //   Naming of the TRF objects is: "gr_<chamber_type>_<voltage>_<laser_track_angle>_<distance_to_COG>" --> "gr_iroc_1240_1_1" 
 //   
   
-  Int_t run = fTransform->GetCurrentRunNumber();
-  SetRun(run);
-  Float_t rocVoltage = GetChamberHighVoltage(run,sector, -1);      // Get the voltage from OCDB with a getter (old function)
+  //Int_t run = fTransform->GetCurrentRunNumber();
+  //SetRun(run);
+  //Float_t rocVoltage = GetChamberHighVoltage(run,sector, -1);      // Get the voltage from OCDB with a getter (old function)
 //   Float_t rocVoltage=GetChamberHighVoltageMedian(sector);                      // Get the voltage from OCDB, new function from Jens
  
   Int_t nominalVoltage = (sector<36) ? 1240 : 1470 ;     // nominal voltage of 2012 when the TRF functions were produced
 
+  Float_t rocVoltage = nominalVoltage;
+
   if ( rocVoltage < nominalVoltage/2. || rocVoltage > nominalVoltage*2. )
   {
     AliInfo(Form("rocVoltage out of range: roc: %.2f, nominal: %i", rocVoltage, nominalVoltage));
@@ -664,7 +666,7 @@ Bool_t AliTPCcalibDB::GetTailcancelationGraphs(Int_t sector, TGraphErrors ** gra
       }     
   }
   tempVoltage = voltages[ampIndex];    // use closest voltage to current voltage
-  if (run<140000) tempVoltage = nominalVoltage;    // for 2010 data
+  //if (run<140000) tempVoltage = nominalVoltage;    // for 2010 data
   
   // assign TGraphErrors   
   Int_t igraph=0;