Logics of high gain adding to digits has changed
[u/mrichter/AliRoot.git] / PHOS / AliPHOSCalibHistoProducer.h
CommitLineData
1ab07e55 1#ifndef ALIPHOSCALIBHISTOPRODUCER_H
2#define ALIPHOSCALIBHISTOPRODUCER_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///////////////////////////////////////////////////////////////////////////////
9// Class AliPHOSCalibHistoProducer accumulating histograms
10// with amplitudes per PHOS channel
11///////////////////////////////////////////////////////////////////////////////
12
13#include "TObject.h"
14
15class TH1F;
16class TFile;
17class AliRawReader;
18
19class AliPHOSCalibHistoProducer : public TObject {
20public:
21
22 AliPHOSCalibHistoProducer();
23 AliPHOSCalibHistoProducer(AliRawReader* rawReader);
24 AliPHOSCalibHistoProducer(const AliPHOSCalibHistoProducer &histoproducer);
25 AliPHOSCalibHistoProducer& operator= (const AliPHOSCalibHistoProducer &histoproducer);
26 virtual ~AliPHOSCalibHistoProducer();
27
28 void Run();
29 void UpdateHistoFile();
30 void SetUpdatingRate(const Int_t rate) {fUpdatingRate = rate;}
72429802 31 void SetOldRCUFormat(Bool_t isOldRCUFormat) { fIsOldRCUFormat = isOldRCUFormat; }
1ab07e55 32
33protected:
34
35 TH1F* fAmpHisto[5][56][64]; // amplitudes in [module][column][row].
36 AliRawReader* fRawReader; // raw data reader.
37 TFile* fHistoFile; // root file to store histograms in
38 Int_t fUpdatingRate; // update rate
72429802 39 Bool_t fIsOldRCUFormat; // Old RCU format flag.
1ab07e55 40
41 ClassDef(AliPHOSCalibHistoProducer,1)
42
43};
44
45#endif