28 for (
int i=0;
i<2; ++
i)
29 for (
int j=0;
j<2; ++
j)
30 for (
int k=0;
k<40; ++
k)
31 for (
int m=0;
m<40; ++
m) {
37 for (
int i=0;
i<56; ++
i) {
41 for (
int j=0;
j<36; ++
j)
45 for(
int i=0;
i<2; ++
i)
46 for(
int j=0;
j<2; ++
j){
53 int nLines,
z, iz, ip, ix, iy, fed, kchip, pace, bundle, fiber, optorx;
54 ifstream
file(lutPath);
56 if( file.is_open() ) {
61 file>> iz >> ip >> ix >> iy >> fed >> kchip >> pace >> bundle >> fiber >> optorx;
64 fed_[z-1][ip-1][ix-1][iy-1] = fed;
65 kchip_[z-1][ip-1][ix-1][iy-1] = kchip;
66 fiber_[z-1][ip-1][ix-1][iy-1] = (fiber-1)+(optorx-1)*12;
72 cout<<
"ESIntegrityClient : Look up table file can not be found in "<<lutPath<<endl;
85 for (
int i=0 ;
i<2; ++
i)
86 for (
int j=0 ;
j<2; ++
j) {
87 int iz = (
i==0)? 1:-1;
88 snprintf(histo, 200,
"ES Integrity Summary 1 Z %d P %d", iz,
j+1);
89 meFED_[
i][
j] = _ibooker.
book2D(histo, histo, 40, 0.5, 40.5, 40, 0.5, 40.5);
93 snprintf(histo, 200,
"ES Integrity Summary 2 Z %d P %d", iz,
j+1);
94 meKCHIP_[
i][
j] = _ibooker.
book2D(histo, histo, 40, 0.5, 40.5, 40, 0.5, 40.5);
102 double nDI_FedErr[56];
103 for (
int i=0;
i<56; ++
i) nDI_FedErr[
i] = 0;
107 me = _igetter.
get(
prefixME_ +
"/ESIntegrityTask/ES FEDs used for data taking");
110 me = _igetter.
get(
prefixME_ +
"/ESIntegrityTask/ES Fiber Off");
113 me = _igetter.
get(
prefixME_ +
"/ESIntegrityTask/ES Fiber Bad Status");
116 me = _igetter.
get(
prefixME_ +
"/ESIntegrityTask/ES SLink CRC Errors");
122 for (
int i=1;
i<=56; ++
i)
123 if (nevFEDs < hFED_->GetBinContent(
i))
124 nevFEDs = (int)
hFED_->GetBinContent(
i);
128 for (
int i=1;
i<=56; ++
i) {
130 if (
hFED_->GetBinContent(
i) > 0)
137 for (
int j=0;
j<36; ++
j) {
152 me = _igetter.
get(
prefixME_ +
"/ESRawDataTask/ES L1A DCC errors");
155 me = _igetter.
get(
prefixME_ +
"/ESRawDataTask/ES BX DCC errors");
158 me = _igetter.
get(
prefixME_ +
"/ESRawDataTask/ES Orbit Number DCC errors");
161 for (
int i=1;
i<=56; ++
i) {
173 me = _igetter.
get(
prefixME_ +
"/ESIntegrityTask/ES KChip Flag 1 Error codes");
176 me = _igetter.
get(
prefixME_ +
"/ESIntegrityTask/ES KChip Flag 2 Error codes");
179 me = _igetter.
get(
prefixME_ +
"/ESIntegrityTask/ES KChip BC mismatch with OptoRX");
182 me = _igetter.
get(
prefixME_ +
"/ESIntegrityTask/ES KChip EC mismatch with OptoRX");
185 Int_t kchip_xval[1550];
186 for (
int i=0;
i<1550; ++
i) {
190 for (
int j=1;
j<16; ++
j) {
192 if (
hKF1_->GetBinContent(
i,
j+1)>0) {
198 if (
hKF2_->GetBinContent(
i,
j+1)>0) {
205 if (
hKBC_->GetBinContent(
i)>0) {
211 if (
hKEC_->GetBinContent(
i)>0) {
216 if (kErr>1) xval = 7;
217 kchip_xval[
i] = xval;
221 for (
int iz=0; iz<2; ++iz)
222 for (
int ip=0; ip<2; ++ip)
223 for (
int ix=0; ix<40; ++ix)
224 for (
int iy=0; iy<40; ++iy) {
225 if (
fed_[iz][ip][ix][iy] == -1)
continue;
227 kchip_xval[
kchip_[iz][ip][ix][iy]-1] = 0;
228 if ((kchip_[iz][ip][ix][iy]-2) >= 0)
229 meKCHIP_[iz][ip]->setBinContent(ix+1, iy+1, kchip_xval[kchip_[iz][ip][ix][iy]-2]);
234 for (
int iz=0; iz<2; ++iz)
235 for (
int ip=0; ip<2; ++ip)
236 for (
int ix=0; ix<40; ++ix)
237 for (
int iy=0; iy<40; ++iy) {
239 if (
fed_[iz][ip][ix][iy] == -1)
continue;
245 if (
hFED_->GetBinContent(
fed_[iz][ip][ix][iy]-520+1) == nevFEDs)
260 if (kchip_xval[
kchip_[iz][ip][ix][iy]-1] != 3 && kchip_xval[
kchip_[iz][ip][ix][iy]-1] != 0) {
272 if (nErr > 1) xval = 7;
MonitorElement * meFED_[2][2]
T getUntrackedParameter(std::string const &, T const &) const
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * get(const std::string &path)
~ESIntegrityClient()
Destructor.
MonitorElement * meKCHIP_[2][2]
void endLumiAnalyze(DQMStore::IGetter &) override
Analyze.
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
ESIntegrityClient(const edm::ParameterSet &ps)
Constructor.
T * getHisto(MonitorElement *, bool=false, T *=0) const
std::string fullPath() const
void book(DQMStore::IBooker &) override
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)