]>
Commit | Line | Data |
---|---|---|
9e788b10 | 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 | * | |
12 | */ | |
13 | ||
14 | /////////////////////////////////////////////////////////////////////////////// | |
15 | // Class AliEMCALCalibHistoProducer accumulating histograms | |
16 | // with amplitudes per EMCAL channel | |
17 | /////////////////////////////////////////////////////////////////////////////// | |
18 | ||
19 | #include "TObject.h" | |
20 | ||
21 | class TProfile; | |
22 | class TString; | |
23 | class TH1F; | |
24 | class TFile; | |
25 | class AliRawReader; | |
26 | ||
27 | class AliEMCALCalibHistoProducer : public TObject { | |
28 | public: | |
29 | ||
30 | AliEMCALCalibHistoProducer(); | |
31 | AliEMCALCalibHistoProducer(AliRawReader* rawReader); | |
32 | AliEMCALCalibHistoProducer(const AliEMCALCalibHistoProducer &histoproducer); | |
33 | AliEMCALCalibHistoProducer& operator= (const AliEMCALCalibHistoProducer &histoproducer); | |
34 | virtual ~AliEMCALCalibHistoProducer(); | |
35 | ||
36 | void Init(); | |
37 | void Run(); | |
38 | void UpdateHistoFile(); | |
39 | void SetUpdatingRate(const Int_t rate) {fUpdatingRate = rate;} | |
40 | void SetOldRCUFormat(Bool_t isOldRCUFormat) { fIsOldRCUFormat = isOldRCUFormat; } | |
41 | void SetCalibHistoFileName(const Int_t name) {fHistoFileName = name;} | |
42 | void SetSMInstalled(const Int_t nsm, Bool_t bsm) {fSMInstalled[nsm] = bsm;} | |
43 | ||
44 | protected: | |
45 | ||
46 | TH1F* fAmpHisto[12][48][24]; // amplitudes in [module][column][row]. | |
47 | TProfile *fAmpProf[12]; // one per SuperModule | |
48 | AliRawReader* fRawReader; // raw data reader. | |
49 | TFile* fHistoFile; // root file to store histograms in | |
50 | TString fHistoFileName; // name of root file to store histograms in | |
51 | Int_t fUpdatingRate; // update rate | |
52 | Bool_t fIsOldRCUFormat; // Old RCU format flag. | |
53 | Int_t fNSuperModules; //Number of SuperModules; | |
54 | Int_t fNCellsEta; //Number of Cells in Eta in a SuperModule; | |
55 | Int_t fNCellsPhi; //Number of Cells in Phi in a SuperModule; | |
56 | Int_t fNCellsPhiHalfSM; //Number of Cells in Phi in a Half SuperModule; | |
57 | Bool_t fSMInstalled[12]; //Check which detectors are on. | |
58 | ClassDef(AliEMCALCalibHistoProducer,1) | |
59 | ||
60 | }; | |
61 | ||
62 | #endif |