]>
Commit | Line | Data |
---|---|---|
1ab07e55 | 1 | #ifndef ALIPHOSCALIBHISTOPRODUCER_H |
2 | #define ALIPHOSCALIBHISTOPRODUCER_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | /////////////////////////////////////////////////////////////////////////////// | |
9 | // Class AliPHOSCalibHistoProducer accumulating histograms | |
10 | // with amplitudes per PHOS channel | |
11 | /////////////////////////////////////////////////////////////////////////////// | |
12 | ||
13 | #include "TObject.h" | |
14 | ||
15 | class TH1F; | |
16 | class TFile; | |
a3925367 | 17 | class AliPHOSRawDecoder; |
1ab07e55 | 18 | |
19 | class AliPHOSCalibHistoProducer : public TObject { | |
20 | public: | |
21 | ||
22 | AliPHOSCalibHistoProducer(); | |
67346abc | 23 | AliPHOSCalibHistoProducer(Int_t nbinsx, Double_t xlow, Double_t xup); |
1ab07e55 | 24 | AliPHOSCalibHistoProducer(const AliPHOSCalibHistoProducer &histoproducer); |
25 | AliPHOSCalibHistoProducer& operator= (const AliPHOSCalibHistoProducer &histoproducer); | |
26 | virtual ~AliPHOSCalibHistoProducer(); | |
27 | ||
28 | void Run(); | |
29 | void UpdateHistoFile(); | |
14b34be5 | 30 | void SetUpdatingRate(Int_t rate) {fUpdatingRate = rate;} |
72429802 | 31 | void SetOldRCUFormat(Bool_t isOldRCUFormat) { fIsOldRCUFormat = isOldRCUFormat; } |
a3925367 | 32 | void SetRawDecoder(AliPHOSRawDecoder* decoder) { fRawDecoder = decoder; } |
1ab07e55 | 33 | |
34 | protected: | |
35 | ||
36 | TH1F* fAmpHisto[5][56][64]; // amplitudes in [module][column][row]. | |
a3925367 | 37 | AliPHOSRawDecoder* fRawDecoder; // raw data decoder. |
1ab07e55 | 38 | TFile* fHistoFile; // root file to store histograms in |
39 | Int_t fUpdatingRate; // update rate | |
72429802 | 40 | Bool_t fIsOldRCUFormat; // Old RCU format flag. |
383d8adb | 41 | Int_t fEvents; |
67346abc | 42 | Int_t fNbins; // Number of bins in histograms. |
43 | Double_t fXlow; // Low X in histograms. | |
44 | Double_t fXup; // High X in histograms. | |
1ab07e55 | 45 | |
46 | ClassDef(AliPHOSCalibHistoProducer,1) | |
47 | ||
48 | }; | |
49 | ||
50 | #endif |