class AliCaloRawStreamV3;
class AliCaloAltroMapping;
class AliRawReader;
+class AliCaloRawAnalyzer;
class AliCaloCalibSignal : public TObject {
AliCaloCalibSignal(kDetType detectorType = kPhos); //ctor
virtual ~AliCaloCalibSignal(); //dtor
-
+
private:
//Just declare them, avoid compilation warning
AliCaloCalibSignal(const AliCaloCalibSignal & /*sig*/); // copy ctor
AliCaloAltroMapping **GetAltroMapping() const { return fMapping; };
void SetAltroMapping(AliCaloAltroMapping **mapp) { fMapping = mapp; };
+ // Fitter / Analyzer
+ Int_t GetFittingAlgorithm() const {return fFittingAlgorithm; }
+ void SetFittingAlgorithm(Int_t val) ;
+ AliCaloRawAnalyzer *GetRawAnalyzer() const { return fRawAnalyzer;}
+
// Parameter/cut handling
void SetParametersFromFile(const char *parameterFile);
void WriteParametersToFile(const char *parameterFile);
void SetSecInAverage(int secInAverage) {fSecInAverage = secInAverage;}; // length of the interval that should be used for the average calculation (determines number of bins in TProfile)
int GetSecInAverage() const {return fSecInAverage;}; //!
+ void SetDownscale(int i) {fDownscale = i;}; //!
+ int GetDownscale() const {return fDownscale;}; //!
+
// Info on time since start of run
double GetHour() const { return fHour; }; // time info for current event
double GetCurrentHour() const { return fHour; }; // time info for current event (same as GetHour(), just more explicitly named)
int fModules; //The number of modules
TString fCaloString; // id for which detector type we have
AliCaloAltroMapping **fMapping; //! Altro Mapping object
+ Int_t fFittingAlgorithm; // select the fitting algorithm
+ AliCaloRawAnalyzer *fRawAnalyzer; //! e.g. for sample selection for fits
int fRunNumber; //The run number. Needs to be set by the user.
int fStartTime; // Time of first event
bool fUseAverage; // flag to average graph points into over a time interval
int fSecInAverage; // time interval for the graph averaging
+ int fDownscale; // to select 1 out every N (fDownscale) events
+
// status counters
int fNEvents; // # events processed
int fNAcceptedEvents; // # events accepted
int fNLowGain[fgkMaxTowers]; // same, for low gain
int fNRef[fgkMaxRefs * 2]; // same, for LED refs; *2 for both gains
- ClassDef(AliCaloCalibSignal, 6) // don't forget to change version if you change class member list..
+ ClassDef(AliCaloCalibSignal, 8) // don't forget to change version if you change class member list..
};