add SetReference method
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALCalibHistoProducer.h
CommitLineData
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 *
6e49fcaa 10 * $Log$
11 * Revision 1.1 2006/12/07 16:32:16 gustavo
12 * First shuttle code, online calibration histograms producer, EMCAL preprocessor
13 *
9e788b10 14 *
15*/
16
17///////////////////////////////////////////////////////////////////////////////
18// Class AliEMCALCalibHistoProducer accumulating histograms
19// with amplitudes per EMCAL channel
20///////////////////////////////////////////////////////////////////////////////
21
22#include "TObject.h"
23
24class TProfile;
25class TString;
26class TH1F;
27class TFile;
28class AliRawReader;
29
30class AliEMCALCalibHistoProducer : public TObject {
31public:
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();
6e49fcaa 42 void SetUpdatingRate(Int_t rate) {fUpdatingRate = rate;}
6e49fcaa 43 void SetCalibHistoFileName(Int_t name) {fHistoFileName = name;}
44 void SetSMInstalled(Int_t nsm, Bool_t bsm) {fSMInstalled[nsm] = bsm;}
9e788b10 45
46protected:
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
9e788b10 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.
9a090ccd 59 ClassDef(AliEMCALCalibHistoProducer,2)
9e788b10 60
61};
62
63#endif