1 #ifndef EMC_CALIBRATION_H
2 #define EMC_CALIBRATION_H
14 inline float getPhi() {
return phi; };
15 inline float getEta() {
return eta; };
16 inline float getEtaMin() {
return etamin; };
17 inline float getEtaMax() {
return etamax; };
18 inline float getPed() {
return ped; };
19 inline float getGain() {
return gain; };
20 inline int getID() {
return id; };
21 inline int getDaqID() {
return daqId; };
23 inline void setPhi(
float _phi) { phi = _phi ; };
24 inline void setEta(
float _eta) { eta = _eta ; };
25 inline void setEtaMin(
float _etamin) { etamin = _etamin ; };
26 inline void setEtaMax(
float _etamax) { etamax = _etamax ; };
27 inline void setPed(
float _ped) { ped= _ped ; };
28 inline void setGain(
float _gain) { gain = _gain ; }
29 inline void setID(
int _id) {
id = _id ; } ;
30 inline void setDaqID(
int _daqid) { daqId = _daqid ; } ;
32 inline void set(
float _phi,
float _eta,
float _etamin,
float _etamax,
33 float _ped,
float _gain,
int _id,
int _daqID) {
65 int loadMap(
const char *filename);
66 int loadTextMap(
const char *filename);
67 int saveTextMap(
const char *filename);
73 inline int daqToId(
int daq) {
if(daq > nTowers)
return 0;
else return daq2id[daq]; }
75 inline int getNTowers() {
return nTowers; }
86 void set(
int _nCols,
int _id,
int _daqId,
int _phi,
87 int _eta,
int _etamin,
int _etamax,
int _ped,
int _gain) {
116 int readCalib(ifstream *from, colDef_t colDef);