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 SetCalibHistoFileName(Int_t name) {fHistoFileName = name;}
44 void SetSMInstalled(Int_t nsm, Bool_t bsm) {fSMInstalled[nsm] = bsm;}
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)