19 edm::LogError(
"HcalRecHitsDQMClient") <<
"unable to get DQMStore service, upshot is no client histograms will be made";
22 if(dbe_) dbe_->setVerbose(0);
29 if(dbe_) dbe_->setCurrentFolder(
dirName_);
79 std::vector<MonitorElement*> hcalMEs;
84 for(
unsigned int i=0;
i<fullPathHLTFolders.size();
i++) {
89 std::vector<std::string> fullSubPathHLTFolders =
dbe_->
getSubdirs();
90 for(
unsigned int j=0;
j<fullSubPathHLTFolders.size();
j++) {
94 if( strcmp(fullSubPathHLTFolders[
j].c_str(),
"HcalRecHitsV/HcalRecHitTask") ==0 ){
111 int useAllHistos = 0, subdet =5;
118 MonitorElement* ZS_HE1=0, *ZS_seqHE1=0, *ZS_HE2=0, *ZS_seqHE2=0, *ZS_HE3=0, *ZS_seqHE3=0;
119 MonitorElement* map_depth1 =0, *map_depth2 =0, *map_depth3 =0, *map_depth4 =0;
122 MonitorElement* emap_depth1 =0, *emap_depth2 =0, *emap_depth3 =0, *emap_depth4 =0;
124 MonitorElement* occupancy_seqHE1 =0, *occupancy_seqHE2 =0, *occupancy_seqHE3 =0;
128 MonitorElement* emean_seqHE1 =0, *emean_seqHE2 =0, *emean_seqHE3 =0;
140 MonitorElement* occupancy_map_HE1 =0, *occupancy_map_HE2 =0, *occupancy_map_HE3 =0;
147 MonitorElement* RMS_vs_ieta_HE1 =0, *RMS_vs_ieta_HE2 =0, *RMS_vs_ieta_HE3 =0;
150 MonitorElement* occupancy_vs_ieta_HB1 =0, *occupancy_vs_ieta_HB2 =0;
151 MonitorElement* occupancy_vs_ieta_HE1 =0, *occupancy_vs_ieta_HE2 =0, *occupancy_vs_ieta_HE3 =0;
152 MonitorElement* occupancy_vs_ieta_HF1 =0, *occupancy_vs_ieta_HF2 =0;
155 MonitorElement* RecHit_StatusWord_HB =0, *RecHit_StatusWord_HE=0, *RecHit_StatusWord_HO =0, *RecHit_StatusWord_HF =0, *RecHit_StatusWord_HF67 =0;
156 MonitorElement* RecHit_Aux_StatusWord_HB =0, *RecHit_Aux_StatusWord_HE=0, *RecHit_Aux_StatusWord_HO =0, *RecHit_Aux_StatusWord_HF =0;
158 for(
unsigned int ih=0; ih<hcalMEs.size(); ih++){
159 if( strcmp(hcalMEs[ih]->getName().c_str(),
"ZSmin_map_depth1") ==0 ){
160 useAllHistos =1; subdet =6;
162 if( strcmp(hcalMEs[ih]->getName().c_str(),
"RMS_vs_ieta_HB1") ==0 ){
166 if( strcmp(hcalMEs[ih]->getName().c_str(),
"ZSmin_simple1D_HO") ==0 ){ ZS_HO = hcalMEs[ih]; }
167 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"ZSmin_sequential1D_HO") ==0 ){ ZS_seqHO = hcalMEs[ih]; }
168 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"ZSmin_simple1D_HB1") ==0 ){ ZS_HB1 = hcalMEs[ih]; }
169 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"ZSmin_sequential1D_HB1") ==0 ){ ZS_seqHB1 = hcalMEs[ih]; }
170 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"ZSmin_simple1D_HB2") ==0 ){ ZS_HB2 = hcalMEs[ih]; }
171 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"ZSmin_sequential1D_HB2") ==0 ){ ZS_seqHB2 = hcalMEs[ih]; }
172 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"ZSmin_simple1D_HF1") ==0 ){ ZS_HF1 = hcalMEs[ih]; }
173 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"ZSmin_sequential1D_HF1") ==0 ){ ZS_seqHF1 = hcalMEs[ih]; }
174 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"ZSmin_simple1D_HF2") ==0 ){ ZS_HF2 = hcalMEs[ih]; }
175 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"ZSmin_sequential1D_HF2") ==0 ){ ZS_seqHF2 = hcalMEs[ih]; }
176 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"ZSmin_simple1D_HE1") ==0 ){ ZS_HE1 = hcalMEs[ih]; }
177 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"ZSmin_sequential1D_HE1") ==0 ){ ZS_seqHE1 = hcalMEs[ih]; }
178 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"ZSmin_simple1D_HE2") ==0 ){ ZS_HE2 = hcalMEs[ih]; }
179 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"ZSmin_sequential1D_HE2") ==0 ){ ZS_seqHE2 = hcalMEs[ih]; }
180 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"ZSmin_simple1D_HE3") ==0 ){ ZS_HE3 = hcalMEs[ih]; }
181 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"ZSmin_sequential1D_HE3") ==0 ){ ZS_seqHE3 = hcalMEs[ih]; }
182 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"ZSmin_map_depth1") ==0 ){ map_depth1= hcalMEs[ih]; }
183 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"ZSmin_map_depth2") ==0 ){ map_depth2= hcalMEs[ih]; }
184 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"ZSmin_map_depth3") ==0 ){ map_depth3= hcalMEs[ih]; }
185 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"ZSmin_map_depth4") ==0 ){ map_depth4= hcalMEs[ih]; }
187 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"N_HF") ==0 ){ Nhf= hcalMEs[ih]; }
188 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"emap_depth1") ==0 ){ emap_depth1= hcalMEs[ih]; }
189 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"emap_depth2") ==0 ){ emap_depth2= hcalMEs[ih]; }
190 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"emap_depth3") ==0 ){ emap_depth3= hcalMEs[ih]; }
191 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"emap_depth4") ==0 ){ emap_depth4= hcalMEs[ih]; }
193 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occ_sequential1D_HB1") ==0 ){ occupancy_seqHB1= hcalMEs[ih]; }
194 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occ_sequential1D_HB2") ==0 ){ occupancy_seqHB2= hcalMEs[ih]; }
195 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occ_sequential1D_HE1") ==0 ){ occupancy_seqHE1= hcalMEs[ih]; }
196 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occ_sequential1D_HE2") ==0 ){ occupancy_seqHE2= hcalMEs[ih]; }
197 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occ_sequential1D_HE3") ==0 ){ occupancy_seqHE3= hcalMEs[ih]; }
198 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occ_sequential1D_HF1") ==0 ){ occupancy_seqHF1= hcalMEs[ih]; }
199 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occ_sequential1D_HF2") ==0 ){ occupancy_seqHF2= hcalMEs[ih]; }
200 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occ_sequential1D_HO") ==0 ){ occupancy_seqHO= hcalMEs[ih]; }
201 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"emean_seq_HB1") ==0 ){ emean_seqHB1= hcalMEs[ih]; }
202 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"emean_seq_HB2") ==0 ){ emean_seqHB2= hcalMEs[ih]; }
203 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"emean_seq_HE1") ==0 ){ emean_seqHE1= hcalMEs[ih]; }
204 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"emean_seq_HE2") ==0 ){ emean_seqHE2= hcalMEs[ih]; }
205 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"emean_seq_HE3") ==0 ){ emean_seqHE3= hcalMEs[ih]; }
206 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"emean_seq_HF1") ==0 ){ emean_seqHF1= hcalMEs[ih]; }
207 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"emean_seq_HF2") ==0 ){ emean_seqHF2= hcalMEs[ih]; }
208 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"emean_seq_HO") ==0 ){ emean_seqHO= hcalMEs[ih]; }
209 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"RMS_seq_HB1") ==0 ){ RMS_seq_HB1= hcalMEs[ih]; }
210 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"RMS_seq_HB2") ==0 ){ RMS_seq_HB2= hcalMEs[ih]; }
211 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"RMS_seq_HE1") ==0 ){ RMS_seq_HE1= hcalMEs[ih]; }
212 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"RMS_seq_HE2") ==0 ){ RMS_seq_HE2= hcalMEs[ih]; }
213 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"RMS_seq_HE3") ==0 ){ RMS_seq_HE3= hcalMEs[ih]; }
214 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"RMS_seq_HF1") ==0 ){ RMS_seq_HF1= hcalMEs[ih]; }
215 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"RMS_seq_HF2") ==0 ){ RMS_seq_HF2= hcalMEs[ih]; }
216 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"RMS_seq_HO") ==0 ){ RMS_seq_HO= hcalMEs[ih]; }
217 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occupancy_map_HB1") ==0 ){ occupancy_map_HB1= hcalMEs[ih]; }
218 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occupancy_map_HB2") ==0 ){ occupancy_map_HB2= hcalMEs[ih]; }
219 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occupancy_map_HE1") ==0 ){ occupancy_map_HE1= hcalMEs[ih]; }
220 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occupancy_map_HE2") ==0 ){ occupancy_map_HE2= hcalMEs[ih]; }
221 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occupancy_map_HE3") ==0 ){ occupancy_map_HE3= hcalMEs[ih]; }
222 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occupancy_map_HF1") ==0 ){ occupancy_map_HF1= hcalMEs[ih]; }
223 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occupancy_map_HF2") ==0 ){ occupancy_map_HF2= hcalMEs[ih]; }
224 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occupancy_map_HO") ==0 ){ occupancy_map_HO= hcalMEs[ih]; }
225 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"emean_vs_ieta_HB1") ==0 ){ emean_vs_ieta_HB1= hcalMEs[ih]; }
226 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"emean_vs_ieta_HB2") ==0 ){ emean_vs_ieta_HB2= hcalMEs[ih]; }
227 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"emean_vs_ieta_HE1") ==0 ){ emean_vs_ieta_HE1= hcalMEs[ih]; }
228 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"emean_vs_ieta_HE2") ==0 ){ emean_vs_ieta_HE2= hcalMEs[ih]; }
233 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"RMS_vs_ieta_HB1") ==0 ){ RMS_vs_ieta_HB1= hcalMEs[ih]; }
234 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"RMS_vs_ieta_HB2") ==0 ){ RMS_vs_ieta_HB2= hcalMEs[ih]; }
235 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"RMS_vs_ieta_HE1") ==0 ){ RMS_vs_ieta_HE1= hcalMEs[ih]; }
236 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"RMS_vs_ieta_HE2") ==0 ){ RMS_vs_ieta_HE2= hcalMEs[ih]; }
237 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"RMS_vs_ieta_HE3") ==0 ){ RMS_vs_ieta_HE3= hcalMEs[ih]; }
238 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"RMS_vs_ieta_HF1") ==0 ){ RMS_vs_ieta_HF1= hcalMEs[ih]; }
239 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"RMS_vs_ieta_HF2") ==0 ){ RMS_vs_ieta_HF2= hcalMEs[ih]; }
240 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"RMS_vs_ieta_HO") ==0 ){ RMS_vs_ieta_HO= hcalMEs[ih]; }
241 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occupancy_vs_ieta_HB1") ==0 ){ occupancy_vs_ieta_HB1= hcalMEs[ih]; }
242 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occupancy_vs_ieta_HB2") ==0 ){ occupancy_vs_ieta_HB2= hcalMEs[ih]; }
243 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occupancy_vs_ieta_HE1") ==0 ){ occupancy_vs_ieta_HE1= hcalMEs[ih]; }
244 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occupancy_vs_ieta_HE2") ==0 ){ occupancy_vs_ieta_HE2= hcalMEs[ih]; }
245 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occupancy_vs_ieta_HE3") ==0 ){ occupancy_vs_ieta_HE3= hcalMEs[ih]; }
246 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occupancy_vs_ieta_HF1") ==0 ){ occupancy_vs_ieta_HF1= hcalMEs[ih]; }
247 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occupancy_vs_ieta_HF2") ==0 ){ occupancy_vs_ieta_HF2= hcalMEs[ih]; }
248 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"occupancy_vs_ieta_HO") ==0 ){ occupancy_vs_ieta_HO= hcalMEs[ih]; }
249 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"HcalRecHitTask_RecHit_StatusWord_HB") ==0 ){ RecHit_StatusWord_HB= hcalMEs[ih]; }
250 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"HcalRecHitTask_RecHit_StatusWord_HE") ==0 ){ RecHit_StatusWord_HE= hcalMEs[ih]; }
251 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"HcalRecHitTask_RecHit_StatusWord_HO") ==0 ){ RecHit_StatusWord_HO= hcalMEs[ih]; }
252 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"HcalRecHitTask_RecHit_StatusWord_HF") ==0 ){ RecHit_StatusWord_HF= hcalMEs[ih]; }
253 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"HcalRecHitTask_RecHit_StatusWord_HF67") ==0 ){ RecHit_StatusWord_HF67= hcalMEs[ih]; }
254 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"HcalRecHitTask_RecHit_Aux_StatusWord_HB") ==0 ){ RecHit_Aux_StatusWord_HB= hcalMEs[ih]; }
255 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"HcalRecHitTask_RecHit_Aux_StatusWord_HE") ==0 ){ RecHit_Aux_StatusWord_HE= hcalMEs[ih]; }
256 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"HcalRecHitTask_RecHit_Aux_StatusWord_HO") ==0 ){ RecHit_Aux_StatusWord_HO= hcalMEs[ih]; }
257 else if( strcmp(hcalMEs[ih]->getName().c_str(),
"HcalRecHitTask_RecHit_Aux_StatusWord_HF") ==0 ){ RecHit_Aux_StatusWord_HF= hcalMEs[ih]; }
259 if( useAllHistos !=0 && useAllHistos !=1 )
return 0;
262 if (subdet==6 && useAllHistos) {
265 double emap_min[82][72][4][4];
278 for (
unsigned int i1 = 0; i1 < 82; i1++) {
279 for (
unsigned int i2 = 0; i2 < 72; i2++) {
281 int index = (i1-41) * 72 + i2;
283 double e = emap_min[i1][i2][0][0];
286 ZS_seqHB1->Fill(
double(index),e);
288 e = emap_min[i1][i2][1][0];
291 ZS_seqHB2->Fill(
double(index),e);
294 e = emap_min[i1][i2][0][1];
297 ZS_seqHE1->Fill(
double(index),e);
299 e = emap_min[i1][i2][1][1];
302 ZS_seqHE2->Fill(
double(index),e);
304 e = emap_min[i1][i2][2][1];
307 ZS_seqHE3->Fill(
double(index),e);
310 e = emap_min[i1][i2][3][2];
313 ZS_seqHO->Fill(
double(index),e);
316 e = emap_min[i1][i2][0][3];
319 ZS_seqHF1->Fill(
double(index),e);
322 e = emap_min[i1][i2][1][3];
325 ZS_seqHF2->Fill(
double(index),e);
328 for (
unsigned int i3 = 0; i3 < 4; i3++) {
329 double emin = 100000.;
330 for (
unsigned int i4 = 0; i4 < 4; i4++) {
337 if ( emin > emap_min [i1][i2][i3][i4])
338 emin = emap_min [i1][i2][i3][i4];
342 if( i3 == 0 && emin < 10000.) {
343 map_depth1->
Fill(
double(ieta),
double(i2),emin);
349 if( i3 == 1 && emin < 10000.)
350 map_depth2->Fill(
double(ieta),
double(i2),emin);
351 if( i3 == 2 && emin < 10000.)
352 map_depth3->Fill(
double(ieta),
double(i2),emin);
353 if( i3 == 3 && emin < 10000.)
354 map_depth4->Fill(
double(ieta),
double(i2),emin);
369 float fev = float (nevtot);
372 float sumphi_hb1, sumphi_hb2, sumphi_he1, sumphi_he2, sumphi_he3,
373 sumphi_ho, sumphi_hf1, sumphi_hf2;
383 for (
int i = 1;
i <= nx1;
i++) {
384 for (
int j = 1;
j <= ny1;
j++) {
387 cnorm = emap_depth2->getBinContent(
i,
j) / fev;
388 emap_depth2->setBinContent(
i,
j,cnorm);
389 cnorm = emap_depth3->getBinContent(
i,
j) / fev;
390 emap_depth3->setBinContent(
i,
j,cnorm);
391 cnorm = emap_depth4->getBinContent(
i,
j) / fev;
392 emap_depth4->setBinContent(
i,
j,cnorm);
397 for (
int i = 1;
i <= nx;
i++) {
407 for (
int j = 1;
j <= ny;
j++) {
415 cnorm = occupancy_map_HB2->getBinContent(
i,
j) / fev;
416 occupancy_map_HB2->setBinContent(
i,
j,cnorm);
421 cnorm = occupancy_map_HE2->getBinContent(
i,
j) / fev;
422 occupancy_map_HE2->setBinContent(
i,
j,cnorm);
424 cnorm = occupancy_map_HE3->getBinContent(
i,
j) / fev;
425 occupancy_map_HE3->setBinContent(
i,
j,cnorm);
433 cnorm = occupancy_map_HF2->getBinContent(
i,
j) / fev;
434 occupancy_map_HF2->setBinContent(
i,
j,cnorm);
437 sumphi_hb2 += occupancy_map_HB2->getBinContent(
i,
j);
439 sumphi_he2 += occupancy_map_HE2->getBinContent(
i,
j);
440 sumphi_he3 += occupancy_map_HE3->getBinContent(
i,
j);
443 sumphi_hf2 += occupancy_map_HF2->getBinContent(
i,
j);
447 occupancy_seqHB1->
Fill(
double(index),cnorm);
448 occupancy_seqHB2->Fill(
double(index),cnorm);
449 occupancy_seqHE1->
Fill(
double(index),cnorm);
450 occupancy_seqHE2->Fill(
double(index),cnorm);
451 occupancy_seqHE3->Fill(
double(index),cnorm);
452 occupancy_seqHO->
Fill(
double(index),cnorm);
453 occupancy_seqHF1->
Fill(
double(index),cnorm);
454 occupancy_seqHF2->Fill(
double(index),cnorm);
459 if(ieta >=0 ) ieta +=1;
461 if(ieta >= -20 && ieta <= 20 )
464 if(ieta >= 40 || ieta <= -40 ) {phi_factor = 18.;}
468 if(ieta >= 0) ieta -= 1;
477 cnorm = sumphi_hb1 / phi_factor;
478 occupancy_vs_ieta_HB1->
Fill(
float(ieta), cnorm);
479 cnorm = sumphi_hb2 / phi_factor;
480 occupancy_vs_ieta_HB2->Fill(
float(ieta), cnorm);
481 cnorm = sumphi_he1 / phi_factor;
482 occupancy_vs_ieta_HE1->
Fill(
float(ieta), cnorm);
483 cnorm = sumphi_he2 / phi_factor;
484 occupancy_vs_ieta_HE2->Fill(
float(ieta), cnorm);
485 cnorm = sumphi_he3 / phi_factor;
486 occupancy_vs_ieta_HE3->Fill(
float(ieta), cnorm);
487 cnorm = sumphi_ho / phi_factor;
488 occupancy_vs_ieta_HO->
Fill(
float(ieta), cnorm);
489 cnorm = sumphi_hf1 / phi_factor;
490 occupancy_vs_ieta_HF1->
Fill(
float(ieta), cnorm);
491 cnorm = sumphi_hf2 / phi_factor;
492 occupancy_vs_ieta_HF2->Fill(
float(ieta), cnorm);
497 RMS_vs_ieta_HB1->
Fill(ieta,cnorm);
498 cnorm = emean_vs_ieta_HB2->getBinError(
i);
499 RMS_vs_ieta_HB2->Fill(ieta,cnorm);
501 RMS_vs_ieta_HE1->
Fill(ieta,cnorm);
502 cnorm = emean_vs_ieta_HE2->getBinError(
i);
503 RMS_vs_ieta_HE2->Fill(ieta,cnorm);
505 RMS_vs_ieta_HE3->Fill(ieta,cnorm);
507 RMS_vs_ieta_HO->
Fill(ieta,cnorm);
509 RMS_vs_ieta_HF1->
Fill(ieta,cnorm);
511 RMS_vs_ieta_HF2->Fill(ieta,cnorm);
519 for(
int ibin = 1; ibin <= nx; ibin++ ){
522 cnorm = emean_seqHB2->getBinError(ibin);
523 RMS_seq_HB2->setBinContent(ibin, cnorm);
528 for(
int ibin = 1; ibin <= nx; ibin++ ){
531 cnorm = emean_seqHE2->getBinError(ibin);
532 RMS_seq_HE2->setBinContent(ibin, cnorm);
533 cnorm = emean_seqHE3->getBinError(ibin);
534 RMS_seq_HE3->setBinContent(ibin, cnorm);
537 for(
int ibin = 1; ibin <= nx; ibin++ ){
540 cnorm = emean_seqHF2->getBinError(ibin);
541 RMS_seq_HF2->setBinContent(ibin, cnorm);
546 for (
int ibin = 1; ibin <= nx; ibin++) {
547 cnorm = RecHit_StatusWord_HB->
getBinContent(ibin) / (fev * 2592.);
550 cnorm = RecHit_StatusWord_HE->getBinContent(ibin) / (fev * 2592.);
551 RecHit_StatusWord_HE->setBinContent(ibin,cnorm);
553 cnorm = RecHit_StatusWord_HO->getBinContent(ibin) / (fev * 2160.);
554 RecHit_StatusWord_HO->setBinContent(ibin,cnorm);
556 cnorm = RecHit_StatusWord_HF->getBinContent(ibin) / (fev * 1728.);
557 RecHit_StatusWord_HF->setBinContent(ibin,cnorm);
559 cnorm = RecHit_Aux_StatusWord_HB->
getBinContent(ibin) / (fev * 2592.);
562 cnorm = RecHit_Aux_StatusWord_HE->getBinContent(ibin) / (fev * 2592.);
563 RecHit_Aux_StatusWord_HE->setBinContent(ibin,cnorm);
565 cnorm = RecHit_Aux_StatusWord_HO->getBinContent(ibin) / (fev * 2160.);
566 RecHit_Aux_StatusWord_HO->setBinContent(ibin,cnorm);
568 cnorm = RecHit_Aux_StatusWord_HF->getBinContent(ibin) / (fev * 1728.);
569 RecHit_Aux_StatusWord_HF->setBinContent(ibin,cnorm);
573 nx = RecHit_StatusWord_HF67->getNbinsX();
574 for (
int ibin = 1; ibin <= nx; ibin++) {
575 cnorm = RecHit_StatusWord_HF67->getBinContent(ibin) / (fev * 1728.);
576 RecHit_StatusWord_HF67->setBinContent(ibin,cnorm);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
virtual void endRun(const edm::Run &run, const edm::EventSetup &c)
void setBinContent(int binx, double content)
set content of bin (1-D)
std::vector< std::string > getSubdirs(void) const
#define DEFINE_FWK_MODULE(type)
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
virtual ~HcalRecHitsDQMClient()
double getEntries(void) const
get # of entries
int getNbinsY(void) const
get # of bins in Y-axis
virtual void analyze(const edm::Event &, const edm::EventSetup &)
virtual void beginJob(void)
std::vector< MonitorElement * > getContents(const std::string &path) const
int HcalRecHitsEndjob(const std::vector< MonitorElement * > &hcalMEs)
double getBinError(int binx) const
get uncertainty on content of bin (1-D) - See TH1::GetBinError for details
HcalRecHitsDQMClient(const edm::ParameterSet &)
virtual void runClient_()
virtual void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
double getBinContent(int binx) const
get content of bin (1-D)
virtual void beginRun(const edm::Run &run, const edm::EventSetup &c)
int getNbinsX(void) const
get # of bins in X-axis
void setCurrentFolder(const std::string &fullpath)