]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliCaloRawAnalyzerPeakFinder.cxx
EbE q vector correlations
[u/mrichter/AliRoot.git] / EMCAL / AliCaloRawAnalyzerPeakFinder.cxx
index 0d58208cf769633382a85a91429913a359709bb9..e8bc413026a5babdcd1e56af0b941c1dce375363 100644 (file)
 // The amplitude is extracted  as a
 // weighted sum of the samples using the 
 // best possible weights.
-// The wights is calculated only once and the
-// Actual extraction of amplitude and peak position
-// Is done with a simple vector multiplication, allowing for
-// Extreemely fast computations. 
+// The weights are calculated only once and the
+// actual extraction of amplitude and peak position
+// is done with a simple vector multiplication, allowing
+// extremely fast computations.
 
 #include "AliCaloRawAnalyzerPeakFinder.h"
 #include "AliCaloBunchInfo.h"
@@ -39,8 +39,6 @@
 
 using namespace std;
 
-
-
 ClassImp( AliCaloRawAnalyzerPeakFinder )
 
 
@@ -49,27 +47,13 @@ AliCaloRawAnalyzerPeakFinder::AliCaloRawAnalyzerPeakFinder() :AliCaloRawAnalyzer
                                                              fRunOnAlien(false),
                                                              fIsInitialized(false)
 {
-  //Comment
+  // Ctor
   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()
 {
@@ -90,12 +74,6 @@ AliCaloRawAnalyzerPeakFinder::ResetVectors()
 }
 
 
-AliCaloRawAnalyzerPeakFinder::~AliCaloRawAnalyzerPeakFinder()
-{
-  //comment
-}
-
-
 Double_t  
 AliCaloRawAnalyzerPeakFinder::ScanCoarse(const Double_t *const array, const int length ) const
 {