]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSCalibHistoProducer.h
Changes to make analysis macro working with trunk
[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 SetRawDecoder(AliPHOSRawDecoder* decoder) { fRawDecoder = decoder; }
32
33 protected:
34
35   TH1F* fAmpHisto[5][56][64]; // amplitudes in [module][column][row].
36   AliPHOSRawDecoder* fRawDecoder;   // raw data decoder.
37   TFile* fHistoFile;          // root file to store histograms in
38   Int_t fUpdatingRate;        // update rate
39   Int_t fEvents;
40   Int_t fNbins;               // Number of bins in histograms.
41   Double_t fXlow;             // Low X in histograms.
42   Double_t fXup;              // High X in histograms.
43
44   ClassDef(AliPHOSCalibHistoProducer,2)
45
46 };
47
48 #endif