]> 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 4dbe0356c30ee225a171c3d336e9d2bab7821067..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;
@@ -571,7 +575,7 @@ Bool_t AliTRDPreprocessor::ExtractHLT()
          (nbfit        >= 0.95*nbE)) {
        // create the cal objects
        TObjArray object           = calibra->GetVectorFit();
-       AliTRDCalDet *objgaindet   = calibra->CreateDetObjectGain(&object,calibra->GetScaleFitFactor(),kTRUE);
+       AliTRDCalDet *objgaindet   = calibra->CreateDetObjectGain(&object);
        TObject *objgainpad        = calibra->CreatePadObjectGain();
        // store them
        if(!Store("Calib","ChamberGainFactor",(TObject *) objgaindet         ,&md1,0,kTRUE)){