22 #ifndef STSVTBADANODESMAKER_H
23 #define STSVTBADANODESMAKER_H
60 float BAD_MEAN_RMS_MIN;
61 float BAD_MEAN_RMS_MAX;
63 int NULL_ADC_THRESHOLD;
64 int OVERLOADED_ADC_THRESHOLD;
68 float FREQ_OVERLOADED_ADC;
72 TH2F** mBadAnodesHist;
73 TH1F** mBadAnodesBarrel;
74 TH1F** mBadAnodesLadder;
78 TString* mFileNameTxt;
92 void setRMSPedestal();
93 void setSvtBadAnodes();
94 void bookHistograms();
96 void setBadValues(
int x1,
int x2,
int x3);
97 void setThresholds(
int x1,
int x2,
int x3,
int x4);
98 void setThresholdNull(
int);
99 void setThresholdOver(
int);
100 void setThresholdOccup(
int);
101 void setThresholdRMS(
int);
102 void setFrequencies(
float x1,
float x2,
float x3);
103 void setFrequencyNull(
float);
104 void setFrequencyOver(
float);
105 void setFrequencyOccup(
float);
106 void setNullADC(
int);
107 void setOverloadedADC(
int);
108 void setBadRMS(
float);
109 void setBadMeanPedMin(
int);
110 void setBadMeanPedMax(
int);
111 void setBadMeanRMSMin(
float);
112 void setBadMeanRMSMax(
float);
113 void setRMSFactor(
int factor){mRmsScaleFactor = factor;}
115 void setOutputFile(
const char* name);
116 void writeToFile(
const char* fileName =
"badAnodes.txt");
117 void blwh2rma(
int barrel,
int ladder,
int wafer,
int hybrid,
118 int& recBoard,
int& mezz,
int& mz_hyb);
123 inline void StSvtBadAnodesMaker::setNullADC(
int x)
125 inline void StSvtBadAnodesMaker::setOverloadedADC(
int x)
126 {OVERLOADED_ADC = x;};
127 inline void StSvtBadAnodesMaker::setBadRMS(
float x)
129 inline void StSvtBadAnodesMaker::setBadMeanPedMin(
int x)
130 {BAD_MEAN_PED_MIN = x;};
131 inline void StSvtBadAnodesMaker::setBadMeanPedMax(
int x)
132 {BAD_MEAN_PED_MAX = x;};
133 inline void StSvtBadAnodesMaker::setBadMeanRMSMin(
float x)
134 {BAD_MEAN_RMS_MIN = x;};
135 inline void StSvtBadAnodesMaker::setBadMeanRMSMax(
float x)
136 {BAD_MEAN_RMS_MAX = x;};
137 inline void StSvtBadAnodesMaker::setThresholds(
int x1,
int x2,
int x3,
int x4)
138 {NULL_ADC_THRESHOLD = x1; OVERLOADED_ADC_THRESHOLD = x2;
139 OCCUP_THRESHOLD = x3; RMS_THRESHOLD = x4;};
140 inline void StSvtBadAnodesMaker::setThresholdNull(
int x1)
141 {NULL_ADC_THRESHOLD = x1;};
142 inline void StSvtBadAnodesMaker::setThresholdOver(
int x2)
143 {OVERLOADED_ADC_THRESHOLD = x2;};
144 inline void StSvtBadAnodesMaker::setThresholdOccup(
int x3)
145 {OCCUP_THRESHOLD = x3;};
146 inline void StSvtBadAnodesMaker::setThresholdRMS(
int x4)
147 {RMS_THRESHOLD = x4;};
148 inline void StSvtBadAnodesMaker::setFrequencies(
float x1,
float x2,
float x3)
149 {FREQ_NULL_ADC = x1; FREQ_OVERLOADED_ADC = x2;
151 inline void StSvtBadAnodesMaker::setFrequencyNull(
float x1)
152 {FREQ_NULL_ADC = x1;};
153 inline void StSvtBadAnodesMaker::setFrequencyOver(
float x2)
154 {FREQ_OVERLOADED_ADC = x2;};
155 inline void StSvtBadAnodesMaker::setFrequencyOccup(
float x3)