// 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"
using namespace std;
-
-
ClassImp( AliCaloRawAnalyzerPeakFinder )
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()
{
}
-AliCaloRawAnalyzerPeakFinder::~AliCaloRawAnalyzerPeakFinder()
-{
- //comment
-}
-
-
Double_t
AliCaloRawAnalyzerPeakFinder::ScanCoarse(const Double_t *const array, const int length ) const
{