From: mivanov Date: Sat, 9 Aug 2014 08:12:42 +0000 (+0200) Subject: ATO-17 - temporary fix to retrieve voltage for 2010 data (Mesut) X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=b1e572105123565dda602144edec8af1637a9d6b;p=u%2Fmrichter%2FAliRoot.git ATO-17 - temporary fix to retrieve voltage for 2010 data (Mesut) --- diff --git a/TPC/Base/AliTPCcalibDB.cxx b/TPC/Base/AliTPCcalibDB.cxx index e2eb63b1941..3fd7401ad5b 100644 --- a/TPC/Base/AliTPCcalibDB.cxx +++ b/TPC/Base/AliTPCcalibDB.cxx @@ -609,13 +609,15 @@ Bool_t AliTPCcalibDB::GetTailcancelationGraphs(Int_t sector, TGraphErrors ** gra // Naming of the TRF objects is: "gr____" --> "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;