]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALCalibHistoProducer.h
added low and high flux parameters to the array
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALCalibHistoProducer.h
1 #ifndef ALIEMCALCALIBHISTOPRODUCER_H
2 #define ALIEMCALCALIBHISTOPRODUCER_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 /* History of cvs commits:
9  *
10  * $Log$
11  * Revision 1.1  2006/12/07 16:32:16  gustavo
12  * First shuttle code, online calibration histograms producer, EMCAL preprocessor
13  * 
14  *
15 */
16
17 ///////////////////////////////////////////////////////////////////////////////
18 // Class AliEMCALCalibHistoProducer accumulating histograms
19 // with amplitudes per EMCAL channel
20 ///////////////////////////////////////////////////////////////////////////////
21
22 #include "TObject.h"
23
24 class TProfile;
25 class TString;
26 class TH1F;
27 class TFile;
28 class AliRawReader;
29
30 class AliEMCALCalibHistoProducer : public TObject {
31 public:
32
33   AliEMCALCalibHistoProducer();
34   AliEMCALCalibHistoProducer(AliRawReader* rawReader);
35   AliEMCALCalibHistoProducer(const AliEMCALCalibHistoProducer &histoproducer);
36   AliEMCALCalibHistoProducer& operator= (const AliEMCALCalibHistoProducer &histoproducer);
37   virtual ~AliEMCALCalibHistoProducer();
38
39   void Init();
40   void Run();
41   void UpdateHistoFile();
42   void SetUpdatingRate(Int_t rate) {fUpdatingRate = rate;}
43   void SetCalibHistoFileName(Int_t name) {fHistoFileName = name;}
44   void SetSMInstalled(Int_t nsm, Bool_t bsm) {fSMInstalled[nsm] = bsm;}
45
46 protected:
47
48   TH1F* fAmpHisto[12][48][24]; // amplitudes in [module][column][row].
49   TProfile *fAmpProf[12]; // one per SuperModule
50   AliRawReader* fRawReader;   // raw data reader.
51   TFile* fHistoFile;          // root file to store histograms in
52   TString fHistoFileName;          // name of root file to store histograms in
53   Int_t fUpdatingRate;        // update rate
54   Int_t fNSuperModules;          //Number of SuperModules;
55   Int_t fNCellsEta;                  //Number of Cells in Eta in a SuperModule;
56   Int_t fNCellsPhi;                   //Number of Cells in Phi in a SuperModule;
57   Int_t fNCellsPhiHalfSM;      //Number of Cells in Phi in a Half SuperModule;
58   Bool_t fSMInstalled[12];  //Check which detectors are on.
59   ClassDef(AliEMCALCalibHistoProducer,2)
60
61 };
62
63 #endif