]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSCalibHistoProducer.h
Modification needed to sync DA version and realease fields with svn
[u/mrichter/AliRoot.git] / PHOS / AliPHOSCalibHistoProducer.h
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;
17 class AliPHOSRawDecoder;
18
19 class AliPHOSCalibHistoProducer : public TObject {
20 public:
21
22   AliPHOSCalibHistoProducer();
23   AliPHOSCalibHistoProducer(Int_t nbinsx, Double_t xlow, Double_t xup);
24   AliPHOSCalibHistoProducer(const AliPHOSCalibHistoProducer &histoproducer);
25   AliPHOSCalibHistoProducer& operator= (const AliPHOSCalibHistoProducer &histoproducer);
26   virtual ~AliPHOSCalibHistoProducer();
27
28   void Run();
29   void UpdateHistoFile();
30   void SetUpdatingRate(Int_t rate) {fUpdatingRate = rate;}
31   void SetOldRCUFormat(Bool_t isOldRCUFormat) { fIsOldRCUFormat = isOldRCUFormat; }
32   void SetRawDecoder(AliPHOSRawDecoder* decoder) { fRawDecoder = decoder; }
33
34 protected:
35
36   TH1F* fAmpHisto[5][56][64]; // amplitudes in [module][column][row].
37   AliPHOSRawDecoder* fRawDecoder;   // raw data decoder.
38   TFile* fHistoFile;          // root file to store histograms in
39   Int_t fUpdatingRate;        // update rate
40   Bool_t fIsOldRCUFormat;     // Old RCU format flag.
41   Int_t fEvents;
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.
45
46   ClassDef(AliPHOSCalibHistoProducer,1)
47
48 };
49
50 #endif