]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliEMCALCalibHistoProducer.h
Protection against special particle types.
[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;}
9e788b10 43 void SetOldRCUFormat(Bool_t isOldRCUFormat) { fIsOldRCUFormat = isOldRCUFormat; }
6e49fcaa 44 void SetCalibHistoFileName(Int_t name) {fHistoFileName = name;}
45 void SetSMInstalled(Int_t nsm, Bool_t bsm) {fSMInstalled[nsm] = bsm;}
9e788b10 46
47protected:
48
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)
62
63};
64
65#endif