AliRoot Core  3dc7879 (3dc7879)
AliCaloRawAnalyzerPeakFinder.h
Go to the documentation of this file.
1 // -*- mode: c++ -*-
2 #ifndef ALICALORAWANALYZERPEAKFINDER_H
3 #define ALICALORAWANALYZERPEAKFINDER_H
4 
5 /* Copyright(c) 1998-2010, ALICE Experiment at CERN, All rights reserved. *
6  * See cxx source for full Copyright notice */
7 
8 //_________________________________________________________________________
23 //_________________________________________________________________________
24 
25 
26 #include "AliCaloRawAnalyzer.h"
27 #include "AliCaloConstants.h"
28 
29 class AliCaloBunchInfo;
31 
33 {
34  friend class AliCaloRawAnalyzerFactory; // rule checker request
35 
36  public:
37 
39 
40  virtual AliCaloFitResults Evaluate( const std::vector<AliCaloBunchInfo> &bunchvector,
41  UInt_t altrocfg1, UInt_t altrocfg2 );
42 
43  private:
44 
48 
49  void LoadVectorsOCDB();
50  void CopyVectors(const AliCaloPeakFinderVectors * pfvectors );
51  void ResetVectors();
52  void WriteRootFile() const;
53  void PrintVectors();
54  Double_t ScanCoarse( const Double_t *array, Int_t length ) const ; // Find a rough estimate of peak position and t0
55 
60 
62 
63  bool fRunOnAlien;
65 
67  ClassDef( AliCaloRawAnalyzerPeakFinder, 1 ) ;
69 
70 };
71 
72 #endif //ALICALORAWANALYZERPEAKFINDER_H
#define SAMPLERANGE
Definition: pfocdbmaker.C:23
Base class for extraction of signal amplitude and peak position.
#define MAXSTART
Definition: pfocdbmaker.C:22
bool fRunOnAlien
Wether or not we are running on the GRID.
AliCaloRawAnalyzerPeakFinder & operator=(const AliCaloRawAnalyzerPeakFinder &)
void CopyVectors(const AliCaloPeakFinderVectors *pfvectors)
Copy vectors.
Double_t fPFTofVectorsCoarse[PF::MAXSTART][PF::SAMPLERANGE][100]
Vectors for TOF extraction, first iteration.
Double_t fPFAmpVectors[PF::MAXSTART][PF::SAMPLERANGE][100]
Vectors for Amplitude extraction, second iteration.
Container class to hold results from fitting.
Container of ALTRO information.
TObjArray * array
Definition: AnalyzeLaser.C:12
Raw data fitters handling.
AliCaloPeakFinderVectors * fPeakFinderVectors
Collection of Peak-Fincer vectors.
Double_t fPFAmpVectorsCoarse[PF::MAXSTART][PF::SAMPLERANGE][100]
Vectors for Amplitude extraction, first iteration.
Double_t fPFTofVectors[PF::MAXSTART][PF::SAMPLERANGE][100]
Vectors for TOF extraction, second iteration.
Double_t ScanCoarse(const Double_t *array, Int_t length) const
virtual AliCaloFitResults Evaluate(const std::vector< AliCaloBunchInfo > &bunchvector, UInt_t altrocfg1, UInt_t altrocfg2)
Container class for Peak Finder vectors.
void PrintVectors()
Utility function to write Peak-Finder vectors.
Raw data fitting: Peak Finder.