]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDPreprocessor.cxx
Copy arrays in assignment instead of the pointer; avoid double delete.
[u/mrichter/AliRoot.git] / TRD / AliTRDPreprocessor.cxx
index 09bc84ab915d1414616c16ebd101f6f34b54b26c..5b303e2e2dec1787283da0eb18fdf0a6261afb26 100644 (file)
@@ -61,6 +61,10 @@ AliTRDPreprocessor::AliTRDPreprocessor(AliShuttleInterface *shuttle)
   // Constructor
   //
 
+ AddRunType("PHYSICS");
+ AddRunType("STANDALONE");
+ AddRunType("PEDESTAL");
+
 }
 
 //______________________________________________________________________________________________
@@ -93,12 +97,12 @@ UInt_t AliTRDPreprocessor::Process(TMap* dcsAliasMap)
   TString runType = GetRunType();
   Log(Form("runtype %s\n",runType.Data()));
   
-  if (runType=="PEDESTAL_RUN"){
+  if (runType=="PEDESTAL"){
     if(ExtractPedestals()) return 1;
     return 0;
   } 
 
-  if (runType=="PHYSICS"){
+  if ((runType=="PHYSICS") || (runType=="STANDALONE")){
     // DCS
     if(ProcessDCS(dcsAliasMap)) return 1;
     // HLT if On
@@ -125,7 +129,7 @@ Bool_t AliTRDPreprocessor::ProcessDCS()
   //
 
   TString runType = GetRunType();
-  if (runType == "PHYSICS") {
+  if ((runType == "PHYSICS") || (runType == "STANDALONE")) {
     return kTRUE;
   }
   return kFALSE;