Fix in return code + cleanup of unused method
authorfprino <prino@to.infn.it>
Fri, 20 Feb 2015 22:44:45 +0000 (23:44 +0100)
committerfprino <prino@to.infn.it>
Fri, 20 Feb 2015 22:44:45 +0000 (23:44 +0100)
ITS/ITSrec/AliITSPreprocessorSDD.cxx
ITS/ITSrec/AliITSPreprocessorSDD.h

index ab3f38d..74b5db0 100644 (file)
@@ -85,12 +85,7 @@ UInt_t AliITSPreprocessorSDD::Process(TMap* /*dcsAliasMap*/ ){
     Log("Process FXS files from INJECTOR RUN");
     retcode=ProcessInjector(ddlmap);
   }
-  if(retcode!=0) return retcode;
-
-  // Log("Process DCS data");
-  // Bool_t retcodedcs =ProcessDCSDataPoints(dcsAliasMap);
-  // if(retcodedcs) return 0; 
-  // else return 1;           
+  return retcode;
 
 }
 //______________________________________________________________________
@@ -448,22 +443,5 @@ Double_t* AliITSPreprocessorSDD::RescaleDriftSpeedModule(const TList* theList,
   return params;
 }
 
-//______________________________________________________________________
-Bool_t AliITSPreprocessorSDD::ProcessDCSDataPoints(TMap* dcsAliasMap){
-  // Process DCS data
-  AliITSDCSAnalyzerSDD *dcs=new AliITSDCSAnalyzerSDD();
-  dcs->AnalyzeData(dcsAliasMap);
-  TObjArray refDCS(kNumberOfSDD);
-  refDCS.SetOwner(kFALSE);
-  for(Int_t imod=0;imod<kNumberOfSDD;imod++){
-    AliITSDCSDataSDD *dcsdata=dcs->GetDCSData(imod);
-    refDCS.Add(dcsdata);
-  }    
-  AliCDBMetaData *md= new AliCDBMetaData();
-  md->SetResponsible("Francesco Prino");
-  md->SetBeamPeriod(0);
-  md->SetComment("AliITSDCSDataSDD objects from DCS DB");
-  Bool_t retCode = StoreReferenceData("DCS","DataSDD",&refDCS,md);
-  return retCode;
-}
+
 
index 3cfa682..9de1f69 100644 (file)
@@ -41,7 +41,7 @@ class AliITSPreprocessorSDD : public AliPreprocessor {
   UInt_t ProcessPulser(AliITSDDLModuleMapSDD* ddlmap);
   UInt_t ProcessInjector(AliITSDDLModuleMapSDD* ddlmap);
   Bool_t ProcessDCS() { return kFALSE; } 
-  Bool_t ProcessDCSDataPoints(TMap* dcsAliasMap);
+
   Double_t* RescaleDriftSpeedModule(const TList* theList, Int_t iBadMod, Int_t iBadSide, const AliITSDriftSpeedSDD* refSpeed) const;
 
   static const TString fgkNameHistoPedestals; //name of ped. histo