Modifications needed to run analysis with proof.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSCalibData.h
CommitLineData
52783dbc 1#ifndef ALIPHOSCALIBDATA_H
2#define ALIPHOSCALIBDATA_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/* $Id$ */
8
9////////////////////////////////////////////////
fc6706cb 10// class for PHOS calibration //
52783dbc 11////////////////////////////////////////////////
12
13#include "TNamed.h"
fc6706cb 14#include "TString.h"
1fdb1c5e 15
16class AliPHOSEmcCalibData;
17class AliPHOSCpvCalibData;
18class AliCDBMetaData;
52783dbc 19
20class AliPHOSCalibData: public TNamed {
21
22 public:
23 AliPHOSCalibData();
fc6706cb 24 AliPHOSCalibData(Int_t runNumber);
1fdb1c5e 25 AliPHOSCalibData(AliPHOSCalibData & phosCDB);
52783dbc 26 virtual ~AliPHOSCalibData();
3f7dbdb7 27
28 AliPHOSCalibData & operator = (const AliPHOSCalibData & rhs);
29
52783dbc 30 void Reset();
31 virtual void Print(Option_t *option = "") const;
fc6706cb 32
33 void CreateNew();
e2e977c3 34 void RandomEmc(Float_t ccMin=0.5 , Float_t ccMax=1.5);
35 void RandomCpv(Float_t ccMin=0.0009, Float_t ccMax=0.0015);
fc6706cb 36
072de3a8 37 Float_t GetADCchannelEmc(Int_t module, Int_t column, Int_t row) const;
38 Float_t GetADCpedestalEmc(Int_t module, Int_t column, Int_t row) const;
fc6706cb 39
072de3a8 40 void SetADCchannelEmc(Int_t module, Int_t column, Int_t row, Float_t value);
41 void SetADCpedestalEmc(Int_t module, Int_t column, Int_t row, Float_t value);
52783dbc 42
fc6706cb 43 Float_t GetADCchannelCpv(Int_t module, Int_t column, Int_t row) const;
44 Float_t GetADCpedestalCpv(Int_t module, Int_t column, Int_t row) const;
45
46 void SetADCchannelCpv(Int_t module, Int_t column, Int_t row, Float_t value);
47 void SetADCpedestalCpv(Int_t module, Int_t column, Int_t row, Float_t value);
48
fc6706cb 49 void SetEmcDataPath(const char* emcPath) {fEmcDataPath=emcPath;}
50 void SetCpvDataPath(const char* cpvPath) {fCpvDataPath=cpvPath;}
51
52 Bool_t WriteEmc(Int_t firstRun, Int_t lastRun, AliCDBMetaData *md);
53 Bool_t WriteCpv(Int_t firstRun, Int_t lastRun, AliCDBMetaData *md);
54
55 private:
56
57 AliPHOSEmcCalibData* fCalibDataEmc; // EMC calibration data
58 AliPHOSCpvCalibData* fCalibDataCpv; // CPV calibration data
59
fc6706cb 60 TString fEmcDataPath; // path to EMC calibration data
61 TString fCpvDataPath; // path to CPV calibration data
62
1fdb1c5e 63 ClassDef(AliPHOSCalibData,2) // PHOS Calibration data
52783dbc 64};
65
66#endif