M Calib/AliTPCPreprocessorOffline.cxx - Exporting the Correction graphs for...
authormivanov <mivanov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 21 Sep 2013 18:32:09 +0000 (18:32 +0000)
committermivanov <mivanov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 21 Sep 2013 18:32:09 +0000 (18:32 +0000)
M       Base/AliTPCParam.cxx                -  Usage of named histograms

TPC/Base/AliTPCParam.cxx
TPC/Calib/AliTPCPreprocessorOffline.cxx

index c081350..126456c 100644 (file)
@@ -871,4 +871,6 @@ void AliTPCParam::SetNominalGainSlopes(){
   }
   fGainSlopesHV = new TGraphErrors(72,sector,gainHV,0,0);
   fGainSlopesPT = new TGraphErrors(72,sector,gainPT,0,0);
+  fGainSlopesHV->SetName("GainSlopesHV");
+  fGainSlopesPT->SetName("GainSlopesPT");
 }
index 33016a2..0d4f549 100644 (file)
@@ -1008,6 +1008,12 @@ Bool_t AliTPCPreprocessorOffline::AnalyzeGain(Int_t startRunNumber, Int_t endRun
   // with naming convention and backward compatibility
   fGainArray->AddAt(fGraphMIP,2);
   fGainArray->AddAt(fGraphCosmic,3);
+  //
+  // Add HV and PT correction parameterization
+  //
+  AliTPCParam *param= AliTPCcalibDB::Instance()->GetParameters();
+  if (param->GetGainSlopesHV())  fGainArray->AddLast(param->GetGainSlopesHV());
+  if (param->GetGainSlopesPT())  fGainArray->AddLast(param->GetGainSlopesPT());
   cout << "fGraphCosmic: " << fGraphCosmic << " fGraphMIP " << fGraphMIP << endl;
   return kTRUE;