Analyze.
146 double nDI_FedErr[56];
147 for (
int i=0;
i<56; ++
i) nDI_FedErr[
i] = 0;
151 sprintf(histo, (
prefixME_ +
"/ESIntegrityTask/ES FEDs used for data taking").c_str());
155 sprintf(histo, (
prefixME_ +
"/ESIntegrityTask/ES Fiber Off").c_str());
159 sprintf(histo, (
prefixME_ +
"/ESIntegrityTask/ES Fiber Bad Status").c_str());
163 sprintf(histo, (
prefixME_ +
"/ESIntegrityTask/ES SLink CRC Errors").c_str());
170 for (
int i=1;
i<=56; ++
i)
171 if (nevFEDs < hFED_->GetBinContent(
i))
172 nevFEDs = (
int)
hFED_->GetBinContent(
i);
176 for (
int i=1;
i<=56; ++
i) {
178 if (
hFED_->GetBinContent(
i) > 0)
185 for (
int j=0;
j<36; ++
j) {
200 sprintf(histo, (
prefixME_ +
"/ESRawDataTask/ES L1A DCC errors").c_str());
204 sprintf(histo, (
prefixME_ +
"/ESRawDataTask/ES BX DCC errors").c_str());
208 sprintf(histo, (
prefixME_ +
"/ESRawDataTask/ES Orbit Number DCC errors").c_str());
212 for (
int i=1;
i<=56; ++
i) {
224 sprintf(histo, (
prefixME_ +
"/ESIntegrityTask/ES KChip Flag 1 Error codes").c_str());
228 sprintf(histo, (
prefixME_ +
"/ESIntegrityTask/ES KChip Flag 2 Error codes").c_str());
232 sprintf(histo, (
prefixME_ +
"/ESIntegrityTask/ES KChip BC mismatch with OptoRX").c_str());
236 sprintf(histo, (
prefixME_ +
"/ESIntegrityTask/ES KChip EC mismatch with OptoRX").c_str());
240 Int_t kchip_xval[1550];
241 for (
int i=0;
i<=1550; ++
i) {
245 for (
int j=1;
j<16; ++
j) {
247 if (
hKF1_->GetBinContent(
i,
j+1)>0) {
253 if (
hKF2_->GetBinContent(
i,
j+1)>0) {
260 if (
hKBC_->GetBinContent(
i)>0) {
266 if (
hKEC_->GetBinContent(
i)>0) {
271 if (kErr>1) xval = 7;
272 kchip_xval[
i] = xval;
276 for (
int iz=0; iz<2; ++iz)
277 for (
int ip=0; ip<2; ++ip)
278 for (
int ix=0; ix<40; ++ix)
279 for (
int iy=0; iy<40; ++iy) {
280 if (
fed_[iz][ip][ix][iy] == -1)
continue;
282 kchip_xval[
kchip_[iz][ip][ix][iy]-1] = 0;
283 if ((kchip_[iz][ip][ix][iy]-2) >= 0)
284 meKCHIP_[iz][ip]->setBinContent(ix+1, iy+1, kchip_xval[kchip_[iz][ip][ix][iy]-2]);
289 for (
int iz=0; iz<2; ++iz)
290 for (
int ip=0; ip<2; ++ip)
291 for (
int ix=0; ix<40; ++ix)
292 for (
int iy=0; iy<40; ++iy) {
294 if (
fed_[iz][ip][ix][iy] == -1)
continue;
300 if (
hFED_->GetBinContent(
fed_[iz][ip][ix][iy]-520+1) == nevFEDs)
315 if (kchip_xval[kchip_[iz][ip][ix][iy]-1] != 3 && kchip_xval[kchip_[iz][ip][ix][iy]-1] != 0) {
327 if (nErr > 1) xval = 7;
MonitorElement * meFED_[2][2]
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * meKCHIP_[2][2]
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")