- changes for QA part of standard GG task
[u/mrichter/AliRoot.git] / ACORDE / AliACORDECalibData.h
CommitLineData
19f796ed 1#ifndef ALIACORDECALIBDATA_H
2#define ALIACORDECALIBDATA_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7#include "TNamed.h"
68f6519c 8#include "TH1D.h"
19f796ed 9class AliACORDECalibData: public TNamed {
10
11 public:
12 AliACORDECalibData();
13 AliACORDECalibData(const char* name);
68f6519c 14
19f796ed 15 AliACORDECalibData(const AliACORDECalibData &calibda);
16 AliACORDECalibData& operator= (const AliACORDECalibData &calibda);
17 virtual ~AliACORDECalibData();
18 void Reset();
19
20 Float_t* GetEfficiencies() const { return (float*)fEfficiencies; }
21 Float_t GetEfficiency(Int_t i) const { return fEfficiencies[i-1];}
22 Float_t* GetRates() const {return (float*)fRates;}
23 Float_t GetRate(Int_t i) const {return fRates[i-1];}
fcdfb1ff 24 Float_t* GetModulesActivity() const {return (float*)fModulesActivity;}
25 Float_t GetModuleActivity(Int_t i) const {return fModulesActivity[i-1];}
68f6519c 26 // TList* GetHistos()const {return Hist;}
19f796ed 27 void SetRates(Float_t* Rt);
28 void SetRate(Float_t rate, Int_t mod){fRates[mod-1]=rate;}
29 void SetEfficiencies(Float_t* Eff);
30 void SetEfficiency(Float_t eff, Int_t mod) {fEfficiencies[mod-1]=eff;}
68f6519c 31 void AddHHits(TH1D *Histo){fHits=(TH1D*)Histo->Clone("Hits");}// Hits
32 void AddHTHits(TH1D *Histo){fTHits=(TH1D*)Histo->Clone("Total Hits");}//Total Hits
33 void AddHMultiHits(TH1D *Histo){fMultiHits=(TH1D*)Histo->Clone("MultiHits");}//
34 void AddHTMultiHits(TH1D *Histo){fTMultiHits=(TH1D*)Histo->Clone("Total Multi Hits");}
c61a7285 35 void Draw(Option_t *option="");
fcdfb1ff 36 void SetModulesActivity(Float_t* Mac);
37 void SetModuleActivity(Float_t mac,Int_t mod){fModulesActivity[mod-1]=mac;}
68f6519c 38
19f796ed 39
40 protected:
41 Float_t fEfficiencies[60];
42 Float_t fRates[60];
fcdfb1ff 43 Float_t fModulesActivity[60];
68f6519c 44 TH1D *fHits;
45 TH1D *fTHits;
46 TH1D *fMultiHits;
47 TH1D *fTMultiHits;
19f796ed 48
81642107 49 ClassDef(AliACORDECalibData,3) // ACORDE Calibration data
19f796ed 50};
51
52#endif
53