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:
11 * Revision 1.1 2006/12/07 16:32:16 gustavo
12 * First shuttle code, online calibration histograms producer, EMCAL preprocessor
17 ///////////////////////////////////////////////////////////////////////////////
18 // Class AliEMCALCalibHistoProducer accumulating histograms
19 // with amplitudes per EMCAL channel
20 ///////////////////////////////////////////////////////////////////////////////
30 class AliEMCALCalibHistoProducer : public TObject {
33 AliEMCALCalibHistoProducer();
34 AliEMCALCalibHistoProducer(AliRawReader* rawReader);
35 AliEMCALCalibHistoProducer(const AliEMCALCalibHistoProducer &histoproducer);
36 AliEMCALCalibHistoProducer& operator= (const AliEMCALCalibHistoProducer &histoproducer);
37 virtual ~AliEMCALCalibHistoProducer();
41 void UpdateHistoFile();
42 void SetUpdatingRate(Int_t rate) {fUpdatingRate = rate;}
43 void SetOldRCUFormat(Bool_t isOldRCUFormat) { fIsOldRCUFormat = isOldRCUFormat; }
44 void SetCalibHistoFileName(Int_t name) {fHistoFileName = name;}
45 void SetSMInstalled(Int_t nsm, Bool_t bsm) {fSMInstalled[nsm] = bsm;}
49 TH1F* fAmpHisto[12][48][24]; // amplitudes in [module][column][row].
50 TProfile *fAmpProf[12]; // one per SuperModule
51 AliRawReader* fRawReader; // raw data reader.
52 TFile* fHistoFile; // root file to store histograms in
53 TString fHistoFileName; // name of root file to store histograms in
54 Int_t fUpdatingRate; // update rate
55 Bool_t fIsOldRCUFormat; // Old RCU format flag.
56 Int_t fNSuperModules; //Number of SuperModules;
57 Int_t fNCellsEta; //Number of Cells in Eta in a SuperModule;
58 Int_t fNCellsPhi; //Number of Cells in Phi in a SuperModule;
59 Int_t fNCellsPhiHalfSM; //Number of Cells in Phi in a Half SuperModule;
60 Bool_t fSMInstalled[12]; //Check which detectors are on.
61 ClassDef(AliEMCALCalibHistoProducer,1)