Calibrating TRD only if TPC is in the data taking (see https://savannah.cern.ch/bugs...
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 25 Jul 2012 07:45:14 +0000 (07:45 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 25 Jul 2012 07:45:14 +0000 (07:45 +0000)
PWGPP/CalibMacros/CPass0/makeOCDB.C
PWGPP/CalibMacros/CPass0/runCalibTrain.C
PWGPP/CalibMacros/CPass1/makeOCDB.C
PWGPP/CalibMacros/CPass1/runCalibTrain.C

index d895ae9..d33ab57 100644 (file)
@@ -91,7 +91,7 @@ void makeOCDB(Int_t runNumber, TString  targetOCDBstorage="", TString sourceOCDB
 
   //TRD part
   AliTRDPreprocessorOffline *procesTRD = 0;
-  if ( detStr.Contains("TRD")){
+  if ( detStr.Contains("TRD") && detStr.Contains("TPC")){
     Printf("\n******* Calibrating TRD *******");
     procesTRD = new  AliTRDPreprocessorOffline;
     procesTRD->SetLinearFitForVdrift(kTRUE);
index 1733eec..e44a131 100644 (file)
@@ -70,7 +70,7 @@ void runCalibTrain(Int_t runNumber, const char *inFileName = "AliESDs.root", con
   // Detector Tasks
   //
   if ( detStr.Contains("TPC"))    AddTaskTPCCalib(runNumber);
-  if ( detStr.Contains("TRD"))    AddTaskTRDCalib(runNumber);
+  if ( detStr.Contains("TRD") && detStr.Contains("TPC"))    AddTaskTRDCalib(runNumber);
   if ( detStr.Contains("TOF") && detStr.Contains("TPC"))    AddTOFAnalysisTaskCalibPass0();
   if ( detStr.Contains("T0"))     AddTaskT0Calib(runNumber);
   if ( detStr.Contains("ITSSPD")) AddTaskMeanVertexCalib();
index f624b49..48af6c3 100644 (file)
@@ -88,7 +88,7 @@ void makeOCDB(Int_t runNumber, TString  targetOCDBstorage="", TString sourceOCDB
 
   //TRD part
   AliTRDPreprocessorOffline *procesTRD = 0;
-  if ( detStr.Contains("TRD")){
+  if ( detStr.Contains("TRD") && detStr.Contains("TPC")){
     Printf("\n******* Calibrating TRD *******");
     procesTRD = new  AliTRDPreprocessorOffline;
     procesTRD->SetLinearFitForVdrift(kTRUE);
index d6a6bdc..9e8cf99 100644 (file)
@@ -75,7 +75,7 @@ void runCalibTrain(Int_t runNumber, const char *inFileName = "AliESDs.root", con
   // Detector Tasks
   //
   if ( detStr.Contains("TPC"))  AddTaskTPCCalib(runNumber);
-  if ( detStr.Contains("TRD"))  AddTaskTRDCalib(runNumber);
+  if ( detStr.Contains("TRD") && detStr.Contains("TPC"))  AddTaskTRDCalib(runNumber);
   if ( detStr.Contains("TOF") && detStr.Contains("TPC"))  AddTOFAnalysisTaskCalibPass0();
   if ( detStr.Contains("T0"))   AddTaskT0Calib(runNumber);
   //if ( detStr.Contains("ITSSPD")) tMeanVtx = AddTaskMeanVertexCalib();