Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / PHOS / PHOSshuttle / AliPHOSCpvDA1.h
CommitLineData
55ec1be0 1#ifndef AliPHOSCPVDA1_H
2#define AliPHOSCPVDA1_H
3/* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6///////////////////////////////////////////////////////////////////////////////
7// Class AliPHOSCpvDA1 accumulates histograms with amplitudes per CPV channel.
8// It is intended to run at DAQ or HLT computers.
9///////////////////////////////////////////////////////////////////////////////
10
11#include "TNamed.h"
12#include "TH1.h"
13#include "TFile.h"
14
15class AliPHOSCpvDA1 : public TNamed {
16
17 public:
18
19 AliPHOSCpvDA1(Int_t module);
20 AliPHOSCpvDA1(const AliPHOSCpvDA1& );
21 AliPHOSCpvDA1& operator= (const AliPHOSCpvDA1& );
22 ~AliPHOSCpvDA1();
23
24 void FillHistograms(Float_t e[128][56]);
25 Int_t GetModule() { return fMod; }
26 void UpdateHistoFile();
27
28 private:
29
30 TFile* fHistoFile; // root file to store histograms in
31 TH1F* fCharge[128][56]; // charge deposited on CPV pads
32 Int_t fMod; // PHOS module number (0..4)
33
34 ClassDef(AliPHOSCpvDA1,1)
35
36};
37
38#endif