]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliCaloRawAnalyzerPeakFinder.cxx
cosmetics
[u/mrichter/AliRoot.git] / EMCAL / AliCaloRawAnalyzerPeakFinder.cxx
index 6b7771dd15d2efe96e32169ebbfb86a46dbecc8f..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()
 {
@@ -269,8 +255,7 @@ AliCaloRawAnalyzerPeakFinder::LoadVectorsOCDB()
 
 void   
 AliCaloRawAnalyzerPeakFinder::WriteRootFile() const
-{
-  // Utility function to write Peak-Finder vectors to an root file
+{ // Utility function to write Peak-Finder vectors to an root file
   // The output is used to create an OCDB entry.
   fPeakFinderVectors->PrintVectors();
   TFile *f = new TFile("peakfindervectors2.root",  "recreate" );
@@ -282,7 +267,7 @@ AliCaloRawAnalyzerPeakFinder::WriteRootFile() const
 
 void 
 AliCaloRawAnalyzerPeakFinder::PrintVectors()
-{
+{ // Utility function to write Peak-Finder vectors 
   for(int i=0; i < 20; i++)
     {
       for( int j = 0; j < PF::MAXSTART; j ++ )