X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;ds=sidebyside;f=EMCAL%2FAliCaloRawAnalyzerPeakFinder.cxx;h=0facb60dfc221f77dcbb8405d88230dbe61d25a2;hb=d7de45c2aad12b3afa8390c537fb4070b5868ce2;hp=6b7771dd15d2efe96e32169ebbfb86a46dbecc8f;hpb=9ae19208c6afcc1883098c50047125985e2ebc9d;p=u%2Fmrichter%2FAliRoot.git diff --git a/EMCAL/AliCaloRawAnalyzerPeakFinder.cxx b/EMCAL/AliCaloRawAnalyzerPeakFinder.cxx index 6b7771dd15d..0facb60dfc2 100644 --- a/EMCAL/AliCaloRawAnalyzerPeakFinder.cxx +++ b/EMCAL/AliCaloRawAnalyzerPeakFinder.cxx @@ -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 ++ )