]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
#80516: AliFatal due to hardcoded run number in AliCaloRawAnalyzerPeakFinder
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 12 Nov 2012 14:23:04 +0000 (14:23 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 12 Nov 2012 14:23:04 +0000 (14:23 +0000)
EMCAL/AliCaloRawAnalyzerPeakFinder.cxx
EMCAL/AliCaloRawAnalyzerPeakFinder.h

index 0d58208cf769633382a85a91429913a359709bb9..0facb60dfc221f77dcbb8405d88230dbe61d25a2 100644 (file)
@@ -51,25 +51,11 @@ AliCaloRawAnalyzerPeakFinder::AliCaloRawAnalyzerPeakFinder() :AliCaloRawAnalyzer
 {
   //Comment
   fAlgo= Algo::kPeakFinder;
-  InitOCDB(fRunOnAlien);
   fPeakFinderVectors = new AliCaloPeakFinderVectors() ;
   ResetVectors();
   LoadVectorsOCDB();
 }
 
-
-void 
-AliCaloRawAnalyzerPeakFinder::InitOCDB(bool alien) const
-{
-  // Setting the default OCDB pathe depending on wether we work locally or on the GRID.
-  if( !AliCDBManager::Instance()->IsDefaultStorageSet ())
-    {
-      AliCDBManager::Instance()->SetDefaultStorage(  alien == true ? "alien://$ALICE_ROOT/OCDB" : "local://$ALICE_ROOT/OCDB" );
-      AliCDBManager::Instance()->SetRun(100);
-    }
-}
-
-
 void  
 AliCaloRawAnalyzerPeakFinder::ResetVectors()
 {
index 7e92d0746b9ef07d71721eada33d81fbeb03cdb3..a46a9964958740911b8164803e22bb47f91eefe3 100644 (file)
@@ -45,7 +45,6 @@ class  AliCaloRawAnalyzerPeakFinder : public AliCaloRawAnalyzer
   void     LoadVectorsOCDB();
   void     CopyVectors(const AliCaloPeakFinderVectors *const pfvectors );
   void     ResetVectors();
-  void     InitOCDB(bool alien) const;
   void     WriteRootFile() const;
   void PrintVectors();
   Double_t ScanCoarse(const Double_t *const array, const int length ) const ; // Find a rough estimate of peak position and t0