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 */
8 /* History of cvs commits:
14 ///////////////////////////////////////////////////////////////////////////////
15 // Class AliEMCALCalibHistoProducer accumulating histograms
16 // with amplitudes per EMCAL channel
17 ///////////////////////////////////////////////////////////////////////////////
27 class AliEMCALCalibHistoProducer : public TObject {
30 AliEMCALCalibHistoProducer();
31 AliEMCALCalibHistoProducer(AliRawReader* rawReader);
32 AliEMCALCalibHistoProducer(const AliEMCALCalibHistoProducer &histoproducer);
33 AliEMCALCalibHistoProducer& operator= (const AliEMCALCalibHistoProducer &histoproducer);
34 virtual ~AliEMCALCalibHistoProducer();
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;}
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)