15 printProvenanceInfo(
false), theCSCStripPedestalSum(0),
16 theCSCStripPedestalCount(0),
count(0)
18 std::string MsgLoggerCat =
"GlobalDigisHistogrammer_GlobalDigisHistogrammer";
29 m_Prov.getUntrackedParameter<
bool>(
"GetAllProvenances");
31 m_Prov.getUntrackedParameter<
bool>(
"PrintProvenanceInfo");
55 <<
"\n===============================\n"
56 <<
"Initialized as EDHistogrammer with parameter values:\n"
57 <<
" Name = " <<
fName <<
"\n"
58 <<
" Verbosity = " << verbosity <<
"\n"
59 <<
" Frequency = " << frequency <<
"\n"
60 <<
" OutputFile = " << outputfile <<
"\n"
61 <<
" DoOutput = " << doOutput <<
"\n"
62 <<
" GetProv = " << getAllProvenances <<
"\n"
63 <<
" PrintProv = " << printProvenanceInfo <<
"\n"
64 <<
" Global Src = " << GlobalDigisSrc_ <<
"\n"
66 <<
"===============================\n";
92 std::string SiStripString[19] = {
"TECW1",
"TECW2",
"TECW3",
"TECW4",
"TECW5",
"TECW6",
"TECW7",
"TECW8",
"TIBL1",
"TIBL2",
"TIBL3",
"TIBL4",
"TIDW1",
"TIDW2",
"TIDW3",
"TOBL1",
"TOBL2",
"TOBL3",
"TOBL4"};
93 for(
int i = 0;
i<19; ++
i)
99 std::string hcharname, hchartitle;
101 for(
int amend = 0; amend < 19; ++amend)
103 hcharname =
"hSiStripn_"+SiStripString[amend];
104 hchartitle= SiStripString[amend]+
" Digis";
105 sprintf(hname, hcharname.c_str());
106 sprintf(htitle, hchartitle.c_str());
109 mehSiStripn[amend]->setAxisTitle(
"Count",2);
110 hcharname =
"hSiStripADC_"+SiStripString[amend];
111 hchartitle= SiStripString[amend]+
" ADC";
112 sprintf(hname, hcharname.c_str());
113 sprintf(htitle, hchartitle.c_str());
116 mehSiStripADC[amend]->setAxisTitle(
"Count",2);
117 hcharname =
"hSiStripStripADC_"+SiStripString[amend];
118 hchartitle= SiStripString[amend]+
" Strip";
119 sprintf(hname, hcharname.c_str());
120 sprintf(htitle, hchartitle.c_str());
123 mehSiStripStrip[amend]->setAxisTitle(
"Count",2);
128 std::string HCalString[4] = {
"HB",
"HE",
"HO",
"HF"};
129 float calnUpper[4] = {3000.,3000.,3000.,2000.};
float calnLower[4]={2000.,2000.,2000.,1000.};
130 float SHEUpper[4]={0.05,.05,0.05,20};
131 float SHEvAEEUpper[4] = {5000, 5000, 5000, 20};
float SHEvAEELower[4] = {-5000, -5000, -5000, -20};
132 int SHEvAEEnBins[4] = {200,200,200,40};
133 double ProfileUpper[4] = {1.,1.,1.,20.};
135 for(
int i =0;
i<4; ++
i)
145 for(
int amend = 0; amend < 4; ++amend)
147 hcharname =
"hHcaln_"+HCalString[amend];
148 hchartitle= HCalString[amend]+
" digis";
149 sprintf(hname, hcharname.c_str());
150 sprintf(htitle, hchartitle.c_str());
151 mehHcaln[amend] =
dbe->
book1D(hname,htitle, 1000, calnLower[amend], calnUpper[amend]);
153 mehHcaln[amend]->setAxisTitle(
"Count",2);
154 hcharname =
"hHcalAEE_"+HCalString[amend];
155 hchartitle= HCalString[amend]+
"Cal AEE";
156 sprintf(hname, hcharname.c_str());
157 sprintf(htitle, hchartitle.c_str());
159 mehHcalAEE[amend]->
setAxisTitle(
"Analog Equivalent Energy",1);
160 mehHcalAEE[amend]->setAxisTitle(
"Count",2);
161 hcharname =
"hHcalSHE_"+HCalString[amend];
162 hchartitle= HCalString[amend]+
"Cal SHE";
163 sprintf(hname, hcharname.c_str());
164 sprintf(htitle, hchartitle.c_str());
166 mehHcalSHE[amend]->
setAxisTitle(
"Simulated Hit Energy",1);
167 mehHcalSHE[amend]->setAxisTitle(
"Count",2);
168 hcharname =
"hHcalAEESHE_"+HCalString[amend];
169 hchartitle= HCalString[amend]+
"Cal AEE/SHE";
170 sprintf(hname, hcharname.c_str());
171 sprintf(htitle, hchartitle.c_str());
172 mehHcalAEESHE[amend] =
dbe->
book1D(hname, htitle, SHEvAEEnBins[amend], SHEvAEELower[amend], SHEvAEEUpper[amend]);
174 mehHcalAEESHE[amend]->setAxisTitle(
"Count",2);
178 hcharname =
"hHcalSHEvAEE_"+HCalString[amend];
179 hchartitle= HCalString[amend]+
"Cal SHE vs. AEE";
180 sprintf(hname, hcharname.c_str());
181 sprintf(htitle, hchartitle.c_str());
184 mehHcalSHEvAEE[amend]->setAxisTitle(
"SHE",2);
192 std::string ECalString[2] = {
"EB",
"EE"};
194 for(
int i =0;
i<2; ++
i)
205 for(
int amend = 0; amend < 2; ++amend)
207 hcharname =
"hEcaln_"+ECalString[amend];
208 hchartitle= ECalString[amend]+
" digis";
209 sprintf(hname, hcharname.c_str());
210 sprintf(htitle, hchartitle.c_str());
213 mehEcaln[amend]->setAxisTitle(
"Count",2);
214 hcharname =
"hEcalAEE_"+ECalString[amend];
215 hchartitle= ECalString[amend]+
"Cal AEE";
216 sprintf(hname, hcharname.c_str());
217 sprintf(htitle, hchartitle.c_str());
219 mehEcalAEE[amend]->
setAxisTitle(
"Analog Equivalent Energy",1);
220 mehEcalAEE[amend]->setAxisTitle(
"Count",2);
221 hcharname =
"hEcalSHE_"+ECalString[amend];
222 hchartitle= ECalString[amend]+
"Cal SHE";
223 sprintf(hname, hcharname.c_str());
224 sprintf(htitle, hchartitle.c_str());
226 mehEcalSHE[amend]->
setAxisTitle(
"Simulated Hit Energy",1);
227 mehEcalSHE[amend]->setAxisTitle(
"Count",2);
228 hcharname =
"hEcalMaxPos_"+ECalString[amend];
229 hchartitle= ECalString[amend]+
"Cal MaxPos";
230 sprintf(hname, hcharname.c_str());
231 sprintf(htitle, hchartitle.c_str());
233 mehEcalMaxPos[amend]->
setAxisTitle(
"Maximum Position",1);
234 mehEcalMaxPos[amend]->setAxisTitle(
"Count",2);
237 hcharname =
"hEcalSHEvAEESHE_"+ECalString[amend];
238 hchartitle= ECalString[amend]+
"Cal SHE vs. AEE/SHE";
239 sprintf(hname, hcharname.c_str());
240 sprintf(htitle, hchartitle.c_str());
243 mehEcalSHEvAEESHE[amend]->setAxisTitle(
"SHE",2);
244 hcharname =
"hEcalMultvAEE_"+ECalString[amend];
245 hchartitle= ECalString[amend]+
"Cal Multi vs. AEE";
246 sprintf(hname, hcharname.c_str());
247 sprintf(htitle, hchartitle.c_str());
249 mehEcalMultvAEE[amend]->
setAxisTitle(
"Analog Equivalent Energy",1);
250 mehEcalMultvAEE[amend]->setAxisTitle(
"Number of Digis",2);
256 hcharname =
"hEcaln_ES";
257 hchartitle=
"ESCAL digis";
258 sprintf(hname, hcharname.c_str());
259 sprintf(htitle, hchartitle.c_str());
262 mehEcaln[2]->setAxisTitle(
"Count",2);
263 std::string ADCNumber[3] = {
"0",
"1",
"2"};
264 for(
int i =0;
i<3; ++
i)
267 hcharname =
"hEcalADC"+ADCNumber[
i]+
"_ES";
268 hchartitle=
"ESCAL ADC"+ADCNumber[
i];
269 sprintf(hname, hcharname.c_str());
270 sprintf(htitle, hchartitle.c_str());
273 mehEScalADC[
i]->setAxisTitle(
"Count",2);
278 std::string SiPixelString[7] = {
"BRL1",
"BRL2",
"BRL3",
"FWD1n",
"FWD1p",
"FWD2n",
"FWD2p"};
279 for(
int j =0;
j<7; ++
j)
288 for(
int amend = 0; amend < 7; ++amend)
290 hcharname =
"hSiPixeln_"+SiPixelString[amend];
291 hchartitle= SiPixelString[amend]+
" Digis";
292 sprintf(hname, hcharname.c_str());
293 sprintf(htitle, hchartitle.c_str());
298 hcharname =
"hSiPixelADC_"+SiPixelString[amend];
299 hchartitle= SiPixelString[amend]+
" ADC";
300 sprintf(hname, hcharname.c_str());
301 sprintf(htitle, hchartitle.c_str());
304 mehSiPixelADC[amend]->setAxisTitle(
"Count",2);
305 hcharname =
"hSiPixelRow_"+SiPixelString[amend];
306 hchartitle= SiPixelString[amend]+
" Row";
307 sprintf(hname, hcharname.c_str());
308 sprintf(htitle, hchartitle.c_str());
311 mehSiPixelRow[amend]->setAxisTitle(
"Count",2);
312 hcharname =
"hSiPixelColumn_"+SiPixelString[amend];
313 hchartitle= SiPixelString[amend]+
" Column";
314 sprintf(hname, hcharname.c_str());
315 sprintf(htitle, hchartitle.c_str());
318 mehSiPixelCol[amend]->setAxisTitle(
"Count",2);
322 std::string MuonString[4] = {
"MB1",
"MB2",
"MB3",
"MB4"};
324 for(
int i =0;
i < 4; ++
i)
332 for(
int j = 0;
j < 4; ++
j)
334 hcharname =
"hDtMuonn_"+MuonString[
j];
335 hchartitle= MuonString[
j]+
" digis";
336 sprintf(hname,hcharname.c_str());
337 sprintf(htitle,hchartitle.c_str());
340 mehDtMuonn[
j]->setAxisTitle(
"Count",2);
341 hcharname =
"hDtLayer_"+MuonString[
j];
342 hchartitle= MuonString[
j]+
" Layer";
343 sprintf(hname,hcharname.c_str());
344 sprintf(htitle,hchartitle.c_str());
346 mehDtMuonLayer[
j]->
setAxisTitle(
"4 * (SuperLayer - 1) + Layer",1);
347 mehDtMuonLayer[
j]->setAxisTitle(
"Count",2);
348 hcharname =
"hDtMuonTime_"+MuonString[
j];
349 hchartitle= MuonString[
j]+
" Time";
350 sprintf(hname,hcharname.c_str());
351 sprintf(htitle,hchartitle.c_str());
354 mehDtMuonTime[
j]->setAxisTitle(
"Count",2);
355 hcharname =
"hDtMuonTimevLayer_"+MuonString[
j];
356 hchartitle= MuonString[
j]+
" Time vs. Layer";
357 sprintf(hname,hcharname.c_str());
358 sprintf(htitle,hchartitle.c_str());
360 mehDtMuonTimevLayer[
j]->
setAxisTitle(
"4 * (SuperLayer - 1) + Layer",1);
361 mehDtMuonTimevLayer[
j]->setAxisTitle(
"Time",2);
367 hcharname =
"hCSCStripn";
368 hchartitle =
"CSC Strip digis";
369 sprintf(hname,hcharname.c_str());
370 sprintf(htitle,hchartitle.c_str());
373 mehCSCStripn->setAxisTitle(
"Count",2);
376 hcharname =
"hCSCStripADC";
377 hchartitle =
"CSC Strip ADC";
378 sprintf(hname,hcharname.c_str());
379 sprintf(htitle,hchartitle.c_str());
382 mehCSCStripADC->setAxisTitle(
"Count",2);
385 hcharname =
"hCSCWiren";
386 hchartitle =
"CSC Wire digis";
387 sprintf(hname,hcharname.c_str());
388 sprintf(htitle,hchartitle.c_str());
391 mehCSCWiren->setAxisTitle(
"Count",2);
396 hcharname =
"hCSCWireTime";
397 hchartitle =
"CSC Wire Time";
398 sprintf(hname,hcharname.c_str());
399 sprintf(htitle,hchartitle.c_str());
400 mehCSCWiren =
dbe->
book1D(hname,htitle,10, 0., 10.);
402 mehCSCWiren->setAxisTitle(
"Count",2);
429 std::string MsgLoggerCat =
"GlobalDigisHistogrammer_beginJob";
465 std::string MsgLoggerCat =
"GlobalDigisHistogrammer_endJob";
468 <<
"Terminating having processed " <<
count <<
" events.";
475 std::string MsgLoggerCat =
"GlobalDigisHistogrammer_analyze";
481 int nrun = iEvent.
id().
run();
482 int nevt = iEvent.
id().
event();
486 <<
"Processing run " << nrun <<
", event " << nevt
487 <<
" (" <<
count <<
" events total)";
491 <<
"Processing run " << nrun <<
", event " << nevt
492 <<
" (" <<
count <<
" events total)";
502 std::vector<const edm::Provenance*> AllProv;
507 <<
"Number of Provenances = " << AllProv.size();
510 TString eventout(
"\nProvenance info:\n");
512 for (
unsigned int i = 0;
i < AllProv.size(); ++
i) {
513 eventout +=
"\n ******************************";
514 eventout +=
"\n Module : ";
516 eventout += AllProv[
i]->moduleLabel();
517 eventout +=
"\n ProductID : ";
519 eventout += AllProv[
i]->productID().id();
520 eventout +=
"\n ClassName : ";
522 eventout += AllProv[
i]->className();
523 eventout +=
"\n InstanceName : ";
525 eventout += AllProv[
i]->productInstanceName();
526 eventout +=
"\n BranchName : ";
528 eventout += AllProv[
i]->branchName();
530 eventout +=
"\n ******************************\n";
537 if (!srcGlobalDigis.
isValid()) {
539 <<
"Unable to find PGlobalDigis in event!";
546 int nEBCalDigis = srcGlobalDigis->getnEBCalDigis();
547 int nEECalDigis = srcGlobalDigis->getnEECalDigis();
548 int nESCalDigis = srcGlobalDigis->getnESCalDigis();
550 int nHBCalDigis = srcGlobalDigis->getnHBCalDigis();
551 int nHECalDigis = srcGlobalDigis->getnHECalDigis();
552 int nHOCalDigis = srcGlobalDigis->getnHOCalDigis();
553 int nHFCalDigis = srcGlobalDigis->getnHFCalDigis();
555 int nTIBL1Digis = srcGlobalDigis->getnTIBL1Digis();
556 int nTIBL2Digis = srcGlobalDigis->getnTIBL2Digis();
557 int nTIBL3Digis = srcGlobalDigis->getnTIBL3Digis();
558 int nTIBL4Digis = srcGlobalDigis->getnTIBL4Digis();
559 int nTOBL1Digis = srcGlobalDigis->getnTOBL1Digis();
560 int nTOBL2Digis = srcGlobalDigis->getnTOBL2Digis();
561 int nTOBL3Digis = srcGlobalDigis->getnTOBL3Digis();
562 int nTOBL4Digis = srcGlobalDigis->getnTOBL4Digis();
563 int nTIDW1Digis = srcGlobalDigis->getnTIDW1Digis();
564 int nTIDW2Digis = srcGlobalDigis->getnTIDW2Digis();
565 int nTIDW3Digis = srcGlobalDigis->getnTIDW3Digis();
566 int nTECW1Digis = srcGlobalDigis->getnTECW1Digis();
567 int nTECW2Digis = srcGlobalDigis->getnTECW2Digis();
568 int nTECW3Digis = srcGlobalDigis->getnTECW3Digis();
569 int nTECW4Digis = srcGlobalDigis->getnTECW4Digis();
570 int nTECW5Digis = srcGlobalDigis->getnTECW5Digis();
571 int nTECW6Digis = srcGlobalDigis->getnTECW6Digis();
572 int nTECW7Digis = srcGlobalDigis->getnTECW7Digis();
573 int nTECW8Digis = srcGlobalDigis->getnTECW8Digis();
575 int nBRL1Digis = srcGlobalDigis->getnBRL1Digis();
576 int nBRL2Digis = srcGlobalDigis->getnBRL2Digis();
577 int nBRL3Digis = srcGlobalDigis->getnBRL3Digis();
578 int nFWD1nDigis = srcGlobalDigis->getnFWD1nDigis();
579 int nFWD1pDigis = srcGlobalDigis->getnFWD1pDigis();
580 int nFWD2nDigis = srcGlobalDigis->getnFWD2nDigis();
581 int nFWD2pDigis = srcGlobalDigis->getnFWD2pDigis();
583 int nMB1Digis = srcGlobalDigis->getnMB1Digis();
584 int nMB2Digis = srcGlobalDigis->getnMB2Digis();
585 int nMB3Digis = srcGlobalDigis->getnMB3Digis();
586 int nMB4Digis = srcGlobalDigis->getnMB4Digis();
588 int nCSCstripDigis = srcGlobalDigis->getnCSCstripDigis();
590 int nCSCwireDigis = srcGlobalDigis->getnCSCwireDigis();
593 std::vector<PGlobalDigi::ECalDigi> EECalDigis =
594 srcGlobalDigis->getEECalDigis();
596 for (
unsigned int i = 0;
i < EECalDigis.size(); ++
i) {
600 if (EECalDigis[
i].SHE != 0.) {
603 Fill(EECalDigis[
i].AEE/EECalDigis[
i].SHE,EECalDigis[
i].SHE,1);
607 std::vector<PGlobalDigi::ECalDigi> EBCalDigis =
608 srcGlobalDigis->getEBCalDigis();
610 for (
unsigned int i = 0;
i < EBCalDigis.size(); ++
i) {
614 if (EBCalDigis[
i].SHE != 0.) {
617 Fill(EBCalDigis[
i].AEE/EBCalDigis[
i].SHE,EBCalDigis[
i].SHE,1);
621 std::vector<PGlobalDigi::ESCalDigi> ESCalDigis =
622 srcGlobalDigis->getESCalDigis();
624 for (
unsigned int i = 0;
i < ESCalDigis.size(); ++
i) {
631 std::vector<PGlobalDigi::HCalDigi> HBCalDigis =
632 srcGlobalDigis->getHBCalDigis();
634 for (
unsigned int i = 0;
i < HBCalDigis.size(); ++
i) {
636 if (HBCalDigis[
i].SHE != 0.) {
640 Fill(HBCalDigis[
i].AEE,HBCalDigis[
i].SHE,1);
643 std::vector<PGlobalDigi::HCalDigi> HECalDigis =
644 srcGlobalDigis->getHECalDigis();
646 for (
unsigned int i = 0;
i < HECalDigis.size(); ++
i) {
648 if (HECalDigis[
i].SHE != 0.) {
652 Fill(HECalDigis[
i].AEE,HECalDigis[
i].SHE,1);
656 std::vector<PGlobalDigi::HCalDigi> HOCalDigis =
657 srcGlobalDigis->getHOCalDigis();
659 for (
unsigned int i = 0;
i < HOCalDigis.size(); ++
i) {
661 if (HOCalDigis[
i].SHE != 0.) {
665 Fill(HOCalDigis[
i].AEE,HOCalDigis[
i].SHE,1);
669 std::vector<PGlobalDigi::HCalDigi> HFCalDigis =
670 srcGlobalDigis->getHFCalDigis();
672 for (
unsigned int i = 0;
i < HFCalDigis.size(); ++
i) {
674 if (HFCalDigis[
i].SHE != 0.) {
678 Fill(HFCalDigis[
i].AEE,HFCalDigis[
i].SHE,1);
683 std::vector<PGlobalDigi::SiStripDigi> TIBL1Digis =
684 srcGlobalDigis->getTIBL1Digis();
686 for (
unsigned int i = 0;
i < TIBL1Digis.size(); ++
i) {
691 std::vector<PGlobalDigi::SiStripDigi> TIBL2Digis =
692 srcGlobalDigis->getTIBL2Digis();
694 for (
unsigned int i = 0;
i < TIBL2Digis.size(); ++
i) {
699 std::vector<PGlobalDigi::SiStripDigi> TIBL3Digis =
700 srcGlobalDigis->getTIBL3Digis();
702 for (
unsigned int i = 0;
i < TIBL3Digis.size(); ++
i) {
707 std::vector<PGlobalDigi::SiStripDigi> TIBL4Digis =
708 srcGlobalDigis->getTIBL4Digis();
710 for (
unsigned int i = 0;
i < TIBL4Digis.size(); ++
i) {
715 std::vector<PGlobalDigi::SiStripDigi> TOBL1Digis =
716 srcGlobalDigis->getTOBL1Digis();
718 for (
unsigned int i = 0;
i < TOBL1Digis.size(); ++
i) {
723 std::vector<PGlobalDigi::SiStripDigi> TOBL2Digis =
724 srcGlobalDigis->getTOBL2Digis();
726 for (
unsigned int i = 0;
i < TOBL2Digis.size(); ++
i) {
731 std::vector<PGlobalDigi::SiStripDigi> TOBL3Digis =
732 srcGlobalDigis->getTOBL3Digis();
734 for (
unsigned int i = 0;
i < TOBL3Digis.size(); ++
i) {
739 std::vector<PGlobalDigi::SiStripDigi> TOBL4Digis =
740 srcGlobalDigis->getTOBL4Digis();
742 for (
unsigned int i = 0;
i < TOBL4Digis.size(); ++
i) {
747 std::vector<PGlobalDigi::SiStripDigi> TIDW1Digis =
748 srcGlobalDigis->getTIDW1Digis();
750 for (
unsigned int i = 0;
i < TIDW1Digis.size(); ++
i) {
755 std::vector<PGlobalDigi::SiStripDigi> TIDW2Digis =
756 srcGlobalDigis->getTIDW2Digis();
758 for (
unsigned int i = 0;
i < TIDW2Digis.size(); ++
i) {
763 std::vector<PGlobalDigi::SiStripDigi> TIDW3Digis =
764 srcGlobalDigis->getTIDW3Digis();
766 for (
unsigned int i = 0;
i < TIDW3Digis.size(); ++
i) {
771 std::vector<PGlobalDigi::SiStripDigi> TECW1Digis =
772 srcGlobalDigis->getTECW1Digis();
774 for (
unsigned int i = 0;
i < TECW1Digis.size(); ++
i) {
779 std::vector<PGlobalDigi::SiStripDigi> TECW2Digis =
780 srcGlobalDigis->getTECW2Digis();
782 for (
unsigned int i = 0;
i < TECW2Digis.size(); ++
i) {
787 std::vector<PGlobalDigi::SiStripDigi> TECW3Digis =
788 srcGlobalDigis->getTECW3Digis();
790 for (
unsigned int i = 0;
i < TECW3Digis.size(); ++
i) {
795 std::vector<PGlobalDigi::SiStripDigi> TECW4Digis =
796 srcGlobalDigis->getTECW4Digis();
798 for (
unsigned int i = 0;
i < TECW4Digis.size(); ++
i) {
803 std::vector<PGlobalDigi::SiStripDigi> TECW5Digis =
804 srcGlobalDigis->getTECW5Digis();
806 for (
unsigned int i = 0;
i < TECW5Digis.size(); ++
i) {
811 std::vector<PGlobalDigi::SiStripDigi> TECW6Digis =
812 srcGlobalDigis->getTECW6Digis();
814 for (
unsigned int i = 0;
i < TECW6Digis.size(); ++
i) {
819 std::vector<PGlobalDigi::SiStripDigi> TECW7Digis =
820 srcGlobalDigis->getTECW7Digis();
822 for (
unsigned int i = 0;
i < TECW7Digis.size(); ++
i) {
827 std::vector<PGlobalDigi::SiStripDigi> TECW8Digis =
828 srcGlobalDigis->getTECW8Digis();
830 for (
unsigned int i = 0;
i < TECW8Digis.size(); ++
i) {
836 std::vector<PGlobalDigi::SiPixelDigi> BRL1Digis =
837 srcGlobalDigis->getBRL1Digis();
839 for (
unsigned int i = 0;
i < BRL1Digis.size(); ++
i) {
845 std::vector<PGlobalDigi::SiPixelDigi> BRL2Digis =
846 srcGlobalDigis->getBRL2Digis();
848 for (
unsigned int i = 0;
i < BRL2Digis.size(); ++
i) {
854 std::vector<PGlobalDigi::SiPixelDigi> BRL3Digis =
855 srcGlobalDigis->getBRL3Digis();
857 for (
unsigned int i = 0;
i < BRL3Digis.size(); ++
i) {
863 std::vector<PGlobalDigi::SiPixelDigi> FWD1pDigis =
864 srcGlobalDigis->getFWD1pDigis();
866 for (
unsigned int i = 0;
i < FWD1pDigis.size(); ++
i) {
872 std::vector<PGlobalDigi::SiPixelDigi> FWD1nDigis =
873 srcGlobalDigis->getFWD1nDigis();
875 for (
unsigned int i = 0;
i < FWD1nDigis.size(); ++
i) {
881 std::vector<PGlobalDigi::SiPixelDigi> FWD2pDigis =
882 srcGlobalDigis->getFWD2pDigis();
884 for (
unsigned int i = 0;
i < FWD2pDigis.size(); ++
i) {
890 std::vector<PGlobalDigi::SiPixelDigi> FWD2nDigis =
891 srcGlobalDigis->getFWD2nDigis();
893 for (
unsigned int i = 0;
i < FWD2nDigis.size(); ++
i) {
900 std::vector<PGlobalDigi::DTDigi> MB1Digis =
901 srcGlobalDigis->getMB1Digis();
903 for (
unsigned int i = 0;
i < MB1Digis.size(); ++
i) {
904 float layer = 4.0 * (MB1Digis[
i].SLAYER - 1.0) + MB1Digis[
i].LAYER;
910 std::vector<PGlobalDigi::DTDigi> MB2Digis =
911 srcGlobalDigis->getMB2Digis();
913 for (
unsigned int i = 0;
i < MB2Digis.size(); ++
i) {
914 float layer = 4.0 * (MB2Digis[
i].SLAYER - 1.0) + MB2Digis[
i].LAYER;
920 std::vector<PGlobalDigi::DTDigi> MB3Digis =
921 srcGlobalDigis->getMB3Digis();
923 for (
unsigned int i = 0;
i < MB3Digis.size(); ++
i) {
924 float layer = 4.0 * (MB3Digis[
i].SLAYER - 1.0) + MB3Digis[
i].LAYER;
930 std::vector<PGlobalDigi::DTDigi> MB4Digis =
931 srcGlobalDigis->getMB4Digis();
933 for (
unsigned int i = 0;
i < MB4Digis.size(); ++
i) {
934 float layer = 4.0 * (MB4Digis[
i].SLAYER - 1.0) + MB4Digis[
i].LAYER;
941 std::vector<PGlobalDigi::CSCstripDigi> CSCstripDigis =
942 srcGlobalDigis->getCSCstripDigis();
944 for (
unsigned int i = 0;
i < CSCstripDigis.size(); ++
i) {
949 std::vector<PGlobalDigi::CSCwireDigi> CSCwireDigis =
950 srcGlobalDigis->getCSCwireDigis();
952 for (
unsigned int i = 0;
i < CSCwireDigis.size(); ++
i) {
957 <<
"Done gathering data from event.";
T getParameter(std::string const &) const
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
void getAllProvenance(std::vector< Provenance const * > &provenances) const
MonitorElement * mehHcaln[4]
virtual void analyze(const edm::Event &, const edm::EventSetup &)
MonitorElement * mehDtMuonLayer[4]
MonitorElement * mehCSCWireTime
MonitorElement * mehEcalMultvAEE[2]
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
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")
MonitorElement * mehHcalAEESHE[4]
MonitorElement * mehSiPixelCol[7]
MonitorElement * mehHcalSHEvAEE[4]
MonitorElement * mehHcalSHE[4]
MonitorElement * mehCSCStripn
MonitorElement * mehDtMuonTimevLayer[4]
GlobalDigisHistogrammer(const edm::ParameterSet &)
MonitorElement * mehSiStripADC[19]
MonitorElement * mehEcalSHEvAEESHE[2]
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * mehEcalSHE[2]
MonitorElement * mehHcalAEE[4]
MonitorElement * mehSiPixelRow[7]
MonitorElement * mehEcaln[3]
MonitorElement * mehCSCWiren
edm::InputTag GlobalDigisSrc_
MonitorElement * mehSiPixelADC[7]
virtual void beginJob(void)
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
void setVerbose(unsigned level)
MonitorElement * mehSiPixeln[7]
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual ~GlobalDigisHistogrammer()
MonitorElement * mehDtMuonn[4]
MonitorElement * mehDtMuonTime[4]
MonitorElement * mehSiStripStrip[19]
MonitorElement * mehEScalADC[3]
MonitorElement * mehEcalAEE[2]
MonitorElement * mehEcalMaxPos[2]
void showDirStructure(void) const
MonitorElement * mehSiStripn[19]
MonitorElement * mehCSCStripADC
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void setCurrentFolder(const std::string &fullpath)