15 printProvenanceInfo(
false), hitsProducer(
""), theCSCStripPedestalSum(0),
16 theCSCStripPedestalCount(0),
count(0)
18 std::string MsgLoggerCat =
"GlobalDigisAnalyzer_GlobalDigisAnalyzer";
27 m_Prov.getUntrackedParameter<
bool>(
"GetAllProvenances");
29 m_Prov.getUntrackedParameter<
bool>(
"PrintProvenanceInfo");
52 <<
"\n===============================\n"
53 <<
"Initialized as EDAnalyzer with parameter values:\n"
54 <<
" Name = " <<
fName <<
"\n"
55 <<
" Verbosity = " << verbosity <<
"\n"
56 <<
" Frequency = " << frequency <<
"\n"
57 <<
" GetProv = " << getAllProvenances <<
"\n"
58 <<
" PrintProv = " << printProvenanceInfo <<
"\n"
59 <<
" ECalEBSrc = " << ECalEBSrc_.label()
60 <<
":" << ECalEBSrc_.instance() <<
"\n"
61 <<
" ECalEESrc = " << ECalEESrc_.
label()
62 <<
":" << ECalEESrc_.
instance() <<
"\n"
63 <<
" ECalESSrc = " << ECalESSrc_.
label()
64 <<
":" << ECalESSrc_.
instance() <<
"\n"
65 <<
" HCalSrc = " << HCalSrc_.
label()
66 <<
":" << HCalSrc_.
instance() <<
"\n"
67 <<
" HCalDigi = " << HCalDigi_.
label()
68 <<
":" << HCalDigi_.
instance() <<
"\n"
69 <<
" SiStripSrc = " << SiStripSrc_.
label()
70 <<
":" << SiStripSrc_.
instance() <<
"\n"
71 <<
" SiPixelSrc = " << SiPxlSrc_.
label()
72 <<
":" << SiPxlSrc_.
instance() <<
"\n"
73 <<
" MuDTSrc = " << MuDTSrc_.
label()
74 <<
":" << MuDTSrc_.
instance() <<
"\n"
75 <<
" MuCSCStripSrc = " << MuCSCStripSrc_.
label()
76 <<
":" << MuCSCStripSrc_.
instance() <<
"\n"
77 <<
" MuCSCWireSrc = " << MuCSCWireSrc_.
label()
78 <<
":" << MuCSCWireSrc_.
instance() <<
"\n"
79 <<
" MuRPCSrc = " << MuRPCSrc_.
label()
80 <<
":" << MuRPCSrc_.
instance() <<
"\n"
81 <<
"===============================\n";
103 std::string SiStripString[19] = {
"TECW1",
"TECW2",
"TECW3",
"TECW4",
104 "TECW5",
"TECW6",
"TECW7",
"TECW8",
105 "TIBL1",
"TIBL2",
"TIBL3",
"TIBL4",
106 "TIDW1",
"TIDW2",
"TIDW3",
"TOBL1",
107 "TOBL2",
"TOBL3",
"TOBL4"};
108 for(
int i = 0;
i<19; ++
i) {
113 std::string hcharname, hchartitle;
115 for(
int amend = 0; amend < 19; ++amend) {
116 hcharname =
"hSiStripn_"+SiStripString[amend];
117 hchartitle= SiStripString[amend]+
" Digis";
122 hcharname =
"hSiStripADC_"+SiStripString[amend];
123 hchartitle= SiStripString[amend]+
" ADC";
128 hcharname =
"hSiStripStripADC_"+SiStripString[amend];
129 hchartitle= SiStripString[amend]+
" Strip";
136 std::string HCalString[4] = {
"HB",
"HE",
"HO",
"HF"};
137 float calnUpper[4] = {30000.,30000.,30000.,20000.};
138 float calnLower[4]={0.,0.,0.,0.};
139 float SHEUpper[4]={1.,1.,1.,1.};
140 float SHEvAEEUpper[4] = {5000, 5000, 5000, 5000};
141 float SHEvAEELower[4] = {-5000, -5000, -5000, -5000};
142 int SHEvAEEnBins[4] = {200,200,200,200};
143 double ProfileUpper[4] = {1.,1.,1.,1.};
145 for(
int i =0;
i<4; ++
i) {
154 for(
int amend = 0; amend < 4; ++amend) {
155 hcharname =
"hHcaln_"+HCalString[amend];
156 hchartitle= HCalString[amend]+
" digis";
162 hcharname =
"hHcalAEE_"+HCalString[amend];
163 hchartitle= HCalString[amend]+
"Cal AEE";
168 hcharname =
"hHcalSHE_"+HCalString[amend];
169 hchartitle= HCalString[amend]+
"Cal SHE";
175 hcharname =
"hHcalAEESHE_"+HCalString[amend];
176 hchartitle= HCalString[amend]+
"Cal AEE/SHE";
179 SHEvAEEUpper[amend]);
183 hcharname =
"hHcalSHEvAEE_"+HCalString[amend];
184 hchartitle= HCalString[amend]+
"Cal SHE vs. AEE";
187 (
float)ProfileUpper[amend],
"");
194 std::string ECalString[2] = {
"EB",
"EE"};
196 for(
int i =0;
i<2; ++
i) {
206 for(
int amend = 0; amend < 2; ++amend) {
207 hcharname =
"hEcaln_"+ECalString[amend];
208 hchartitle= ECalString[amend]+
" digis";
213 hcharname =
"hEcalAEE_"+ECalString[amend];
214 hchartitle= ECalString[amend]+
"Cal AEE";
219 hcharname =
"hEcalSHE_"+ECalString[amend];
220 hchartitle= ECalString[amend]+
"Cal SHE";
225 hcharname =
"hEcalMaxPos_"+ECalString[amend];
226 hchartitle= ECalString[amend]+
"Cal MaxPos";
231 hcharname =
"hEcalSHEvAEESHE_"+ECalString[amend];
232 hchartitle= ECalString[amend]+
"Cal SHE vs. AEE/SHE";
238 hcharname =
"hEcalMultvAEE_"+ECalString[amend];
239 hchartitle= ECalString[amend]+
"Cal Multi vs. AEE";
241 4000, 0., 40000.,
"");
247 hcharname =
"hEcaln_ES";
248 hchartitle=
"ESCAL digis";
253 std::string ADCNumber[3] = {
"0",
"1",
"2"};
254 for(
int i =0;
i<3; ++
i) {
256 hcharname =
"hEcalADC"+ADCNumber[
i]+
"_ES";
257 hchartitle=
"ESCAL ADC"+ADCNumber[
i];
264 std::string SiPixelString[7] = {
"BRL1",
"BRL2",
"BRL3",
"FWD1n",
"FWD1p",
266 for(
int j =0;
j<7; ++
j) {
274 for(
int amend = 0; amend < 7; ++amend) {
275 hcharname =
"hSiPixeln_"+SiPixelString[amend];
276 hchartitle= SiPixelString[amend]+
" Digis";
282 hcharname =
"hSiPixelADC_"+SiPixelString[amend];
283 hchartitle= SiPixelString[amend]+
" ADC";
288 hcharname =
"hSiPixelRow_"+SiPixelString[amend];
289 hchartitle= SiPixelString[amend]+
" Row";
294 hcharname =
"hSiPixelColumn_"+SiPixelString[amend];
295 hchartitle= SiPixelString[amend]+
" Column";
305 std::string MuonString[4] = {
"MB1",
"MB2",
"MB3",
"MB4"};
307 for(
int i =0;
i < 4; ++
i) {
314 for(
int j = 0;
j < 4; ++
j) {
315 hcharname =
"hDtMuonn_"+MuonString[
j];
316 hchartitle= MuonString[
j]+
" digis";
321 hcharname =
"hDtLayer_"+MuonString[
j];
322 hchartitle= MuonString[
j]+
" Layer";
327 hcharname =
"hDtMuonTime_"+MuonString[
j];
328 hchartitle= MuonString[
j]+
" Time";
333 hcharname =
"hDtMuonTimevLayer_"+MuonString[
j];
334 hchartitle= MuonString[
j]+
" Time vs. Layer";
343 hcharname =
"hCSCStripn";
344 hchartitle =
"CSC Strip digis";
350 hcharname =
"hCSCStripADC";
351 hchartitle =
"CSC Strip ADC";
357 hcharname =
"hCSCWiren";
358 hchartitle =
"CSC Wire digis";
364 hcharname =
"hCSCWireTime";
365 hchartitle =
"CSC Wire Time";
372 hcharname =
"hRPCMuonn";
373 hchartitle =
"RPC digis";
378 std::string MuonRPCString[5] = {
"Wmin2",
"Wmin1",
"W0",
"Wpu1",
"Wpu2"};
379 for(
int i =0;
i < 5; ++
i) {
383 for(
int j = 0;
j < 5; ++
j) {
384 hcharname =
"hRPCRes_"+MuonRPCString[
j];
385 hchartitle= MuonRPCString[
j]+
" Digi - Sim";
407 std::string MsgLoggerCat =
"GlobalDigisAnalyzer_beginJob";
416 delete defaultRatios;
420 <<
"Modified Calorimeter gain constants: g0 = " <<
ECalgainConv_[0]
431 std::string MsgLoggerCat =
"GlobalDigisAnalyzer_endJob";
434 <<
"Terminating having processed " <<
count <<
" events.";
441 std::string MsgLoggerCat =
"GlobalDigisAnalyzer_analyze";
457 <<
"Modified Calorimeter ADCtoGeV constants: barrel = "
464 int nrun = iEvent.
id().
run();
469 <<
"Processing run " << nrun <<
", event " << nevt
470 <<
" (" <<
count <<
" events total)";
474 <<
"Processing run " << nrun <<
", event " << nevt
475 <<
" (" <<
count <<
" events total)";
482 std::vector<const edm::Provenance*> AllProv;
487 <<
"Number of Provenances = " << AllProv.size();
490 TString eventout(
"\nProvenance info:\n");
492 for (
unsigned int i = 0;
i < AllProv.size(); ++
i) {
493 eventout +=
"\n ******************************";
494 eventout +=
"\n Module : ";
495 eventout += AllProv[
i]->moduleLabel();
496 eventout +=
"\n ProductID : ";
497 eventout += AllProv[
i]->productID().id();
498 eventout +=
"\n ClassName : ";
499 eventout += AllProv[
i]->className();
500 eventout +=
"\n InstanceName : ";
501 eventout += AllProv[
i]->productInstanceName();
502 eventout +=
"\n BranchName : ";
503 eventout += AllProv[
i]->branchName();
505 eventout +=
"\n ******************************\n";
524 <<
"Done gathering data from event.";
528 <<
"Saving event contents:";
536 std::string MsgLoggerCat =
"GlobalDigisAnalyzer_fillECal";
540 eventout =
"\nGathering info:";
548 bool isBarrel =
true;
551 bool validDigiEB =
true;
554 <<
"Unable to find EcalDigiEB in event!";
558 if ( EcalDigiEB->size() == 0) isBarrel =
false;
564 const std::string barrelHitsName(
hitsProducer+
"EcalHitsEB");
565 iEvent.
getByLabel(
"mix",barrelHitsName,crossingFrame);
566 bool validXFrame =
true;
567 if (!crossingFrame.
isValid()) {
569 <<
"Unable to find cal barrel crossingFrame in event!";
573 std::auto_ptr<MixCollection<PCaloHit> >
578 = barrelHits->begin();
579 hitItr != barrelHits->end();
584 uint32_t crystid = ebid.
rawId();
585 ebSimMap[crystid] += hitItr->energy();
592 std::vector<double> ebAnalogSignal;
593 std::vector<double> ebADCCounts;
594 std::vector<double> ebADCGains;
600 for (
unsigned int digis=0; digis<EcalDigiEB->size(); ++digis) {
605 int nrSamples = ebdf.
size();
611 double pedestalPreSample = 0.;
612 double pedestalPreSampleAnalog = 0.;
615 ebAnalogSignal[
sample] = 0.;
624 ebADCCounts[
sample] = (thisSample.
adc());
629 if (Emax < ebAnalogSignal[
sample]) {
630 Emax = ebAnalogSignal[
sample];
634 pedestalPreSample += ebADCCounts[
sample] ;
635 pedestalPreSampleAnalog +=
637 * ECalbarrelADCtoGeV_ ;
641 pedestalPreSample /= 3. ;
642 pedestalPreSampleAnalog /= 3. ;
645 double Erec = Emax - pedestalPreSampleAnalog
653 if (ebSimMap[ebid.
rawId()]!=0) {
655 ebSimMap[ebid.
rawId()]);
665 eventout +=
"\n Number of EBDigis collected:.............. ";
675 bool isEndCap =
true;
678 bool validDigiEE =
true;
681 <<
"Unable to find EcalDigiEE in event!";
685 if (EcalDigiEE->size() == 0) isEndCap =
false;
691 const std::string endcapHitsName(
hitsProducer+
"EcalHitsEE");
692 iEvent.
getByLabel(
"mix",endcapHitsName,crossingFrame);
693 bool validXFrame =
true;
694 if (!crossingFrame.
isValid()) {
696 <<
"Unable to find cal endcap crossingFrame in event!";
700 std::auto_ptr<MixCollection<PCaloHit> >
705 = endcapHits->begin();
706 hitItr != endcapHits->end();
711 uint32_t crystid = eeid.
rawId();
712 eeSimMap[crystid] += hitItr->energy();
719 std::vector<double> eeAnalogSignal;
720 std::vector<double> eeADCCounts;
721 std::vector<double> eeADCGains;
727 for (
unsigned int digis=0; digis<EcalDigiEE->size(); ++digis){
732 int nrSamples = eedf.
size();
738 double pedestalPreSample = 0.;
739 double pedestalPreSampleAnalog = 0.;
742 eeAnalogSignal[
sample] = 0.;
752 eeADCCounts[
sample] = (thisSample.
adc());
757 if (Emax < eeAnalogSignal[
sample]) {
758 Emax = eeAnalogSignal[
sample];
762 pedestalPreSample += eeADCCounts[
sample] ;
763 pedestalPreSampleAnalog +=
765 * ECalbarrelADCtoGeV_ ;
769 pedestalPreSample /= 3. ;
770 pedestalPreSampleAnalog /= 3. ;
773 double Erec = Emax - pedestalPreSampleAnalog
781 if (eeSimMap[eeid.
rawId()]!=0){
783 eeSimMap[eeid.
rawId()]);
793 eventout +=
"\n Number of EEDigis collected:.............. ";
804 bool isPreshower =
true;
807 bool validDigiES =
true;
810 <<
"Unable to find EcalDigiES in event!";
818 if (EcalDigiES->size() == 0) isPreshower =
false;
823 const std::string preshowerHitsName(
hitsProducer+
"EcalHitsES");
824 iEvent.
getByLabel(
"mix",preshowerHitsName,crossingFrame);
825 bool validXFrame =
true;
826 if (!crossingFrame.
isValid()) {
828 <<
"Unable to find cal preshower crossingFrame in event!";
832 std::auto_ptr<MixCollection<PCaloHit> >
838 = preshowerHits->begin();
839 hitItr != preshowerHits->end();
844 uint32_t crystid = esid.
rawId();
845 esSimMap[crystid] += hitItr->energy();
852 std::vector<double> esADCCounts;
856 for (
unsigned int digis=0; digis<EcalDigiES->size(); ++digis) {
862 int nrSamples = esdf.
size();
872 esADCCounts[
sample] = (thisSample.
adc());
882 eventout +=
"\n Number of ESDigis collected:.............. ";
899 std::string MsgLoggerCat =
"GlobalDigisAnalyzer_fillHCal";
903 eventout =
"\nGathering info:";
908 if (!HCalconditions.
isValid()) {
910 <<
"Unable to find HCalconditions in event!";
913 const HcalQIEShape *shape = HCalconditions->getHcalShape();
922 bool validhcalHits =
true;
925 <<
"Unable to find hcalHits in event!";
926 validhcalHits =
false;
935 for (std::vector<PCaloHit>::const_iterator simhits = simhitResult->begin();
936 simhits != simhitResult->end();
940 uint32_t cellid = detId.
rawId();
943 fHBEnergySimHits[cellid] += simhits->energy();
946 fHEEnergySimHits[cellid] += simhits->energy();
949 fHOEnergySimHits[cellid] += simhits->energy();
952 fHFEnergySimHits[cellid] += simhits->energy();
962 bool validHBHE =
true;
965 <<
"Unable to find HBHEDataFrame in event!";
974 for (ihbhe = hbhe->begin(); ihbhe != hbhe->end(); ++ihbhe) {
981 HCalconditions->getHcalCalibrations(cell);
982 const HcalQIECoder *channelCoder = HCalconditions->getHcalCoder(cell);
984 coder.
adc2fC(*ihbhe, tool);
990 float fDigiSum = 0.0;
991 for (
int ii = 0; ii < tool.
size(); ++ii) {
993 int capid = (*ihbhe)[ii].capid();
994 fDigiSum += (tool[ii] - calibrations.
pedestal(capid));
1000 if (fHFEnergySimHits[cell.rawId()]!=0){
1013 float fDigiSum = 0.0;
1014 for (
int ii = 0; ii < tool.
size(); ++ii) {
1015 int capid = (*ihbhe)[ii].capid();
1016 fDigiSum += (tool[ii]-calibrations.
pedestal(capid));
1022 if (fHFEnergySimHits[cell.rawId()]!=0){
1034 eventout +=
"\n Number of HBDigis collected:.............. ";
1040 eventout +=
"\n Number of HEDigis collected:.............. ";
1051 bool validHO =
true;
1054 <<
"Unable to find HODataFrame in event!";
1061 for (iho = ho->begin(); iho != ho->end(); ++iho) {
1068 HCalconditions->getHcalCalibrations(cell);
1069 const HcalQIECoder *channelCoder = HCalconditions->getHcalCoder(cell);
1071 coder.
adc2fC(*iho, tool);
1074 float fDigiSum = 0.0;
1075 for (
int ii = 0; ii < tool.
size(); ++ii) {
1077 int capid = (*iho)[ii].capid();
1078 fDigiSum += (tool[ii] - calibrations.
pedestal(capid));
1084 if (fHFEnergySimHits[cell.rawId()]!=0){
1095 eventout +=
"\n Number of HODigis collected:.............. ";
1106 bool validHF =
true;
1109 <<
"Unable to find HFDataFrame in event!";
1116 for (ihf = hf->begin(); ihf != hf->end(); ++
ihf) {
1123 HCalconditions->getHcalCalibrations(cell);
1124 const HcalQIECoder *channelCoder = HCalconditions->getHcalCoder(cell);
1126 coder.
adc2fC(*ihf, tool);
1129 float fDigiSum = 0.0;
1130 for (
int ii = 0; ii < tool.
size(); ++ii) {
1132 int capid = (*ihf)[ii].capid();
1133 fDigiSum += (tool[ii] - calibrations.
pedestal(capid));
1139 if (fHFEnergySimHits[cell.rawId()]!=0){
1150 eventout +=
"\n Number of HFDigis collected:.............. ";
1165 std::string MsgLoggerCat =
"GlobalDigisAnalyzer_fillTrk";
1169 eventout =
"\nGathering info:";
1174 bool validstripDigis =
true;
1177 <<
"Unable to find stripDigis in event!";
1178 validstripDigis =
false;
1181 if (validstripDigis) {
1182 int nStripBrl = 0, nStripFwd = 0;
1184 for (DSViter = stripDigis->begin(); DSViter != stripDigis->end();
1186 unsigned int id = DSViter->id;
1195 for (iter = begin; iter !=
end; ++iter) {
1197 if (tibid.
layer() == 1) {
1201 if (tibid.
layer() == 2) {
1205 if (tibid.
layer() == 3) {
1209 if (tibid.
layer() == 4) {
1219 for (iter = begin; iter !=
end; ++iter) {
1221 if (tobid.
layer() == 1) {
1225 if (tobid.
layer() == 2) {
1229 if (tobid.
layer() == 3) {
1233 if (tobid.
layer() == 4) {
1243 for (iter = begin; iter !=
end; ++iter) {
1245 if (tidid.
wheel() == 1) {
1249 if (tidid.
wheel() == 2) {
1253 if (tidid.
wheel() == 3) {
1263 for (iter = begin; iter !=
end; ++iter) {
1265 if (tecid.
wheel() == 1) {
1269 if (tecid.
wheel() == 2) {
1273 if (tecid.
wheel() == 3) {
1277 if (tecid.
wheel() == 4) {
1281 if (tecid.
wheel() == 5) {
1285 if (tecid.
wheel() == 6) {
1289 if (tecid.
wheel() == 7) {
1293 if (tecid.
wheel() == 8) {
1302 eventout +=
"\n Number of BrlStripDigis collected:........ ";
1303 eventout += nStripBrl;
1305 for(
int i = 0;
i < 8; ++
i) {
1310 eventout +=
"\n Number of FrwdStripDigis collected:....... ";
1311 eventout += nStripFwd;
1313 for(
int i = 8;
i < 19; ++
i) {
1321 bool validpixelDigis =
true;
1324 <<
"Unable to find pixelDigis in event!";
1325 validpixelDigis =
false;
1327 if (validpixelDigis) {
1328 int nPxlBrl = 0, nPxlFwd = 0;
1330 for (DPViter = pixelDigis->begin(); DPViter != pixelDigis->end();
1332 unsigned int id = DPViter->id;
1341 for (iter = begin; iter !=
end; ++iter) {
1343 if (bdetid.
layer() == 1) {
1348 if (bdetid.
layer() == 2) {
1353 if (bdetid.
layer() == 3) {
1364 for (iter = begin; iter !=
end; ++iter) {
1366 if (fdetid.
disk() == 1) {
1367 if (fdetid.
side() == 1) {
1372 if (fdetid.
side() == 2) {
1378 if (fdetid.
disk() == 2) {
1379 if (fdetid.
side() == 1) {
1385 if (fdetid.
side() == 2) {
1396 eventout +=
"\n Number of BrlPixelDigis collected:........ ";
1397 eventout += nPxlBrl;
1399 for(
int i = 0;
i < 3; ++
i) {
1404 eventout +=
"\n Number of FrwdPixelDigis collected:....... ";
1405 eventout += nPxlFwd;
1408 for(
int i = 3;
i < 7; ++
i) {
1422 std::string MsgLoggerCat =
"GlobalDigisAnalyzer_fillMuon";
1426 eventout =
"\nGathering info:";
1431 bool validdtDigis =
true;
1434 <<
"Unable to find dtDigis in event!";
1435 validdtDigis =
false;
1438 int nDt0 = 0;
int nDt1 = 0;
int nDt2 = 0;
int nDt3 = 0;
1441 for (detUnitIt = dtDigis->begin(); detUnitIt != dtDigis->end();
1444 const DTLayerId&
id = (*detUnitIt).first;
1447 digiIt != range.second;
1452 DTWireId wireId(
id,(*digiIt).wire());
1453 if (wireId.station() == 1) {
1459 if (wireId.station() == 2) {
1465 if (wireId.station() == 3) {
1471 if (wireId.station() == 4) {
1486 eventout +=
"\n Number of DtMuonDigis collected:.......... ";
1494 bool validstrips =
true;
1497 <<
"Unable to find muon strips in event!";
1498 validstrips =
false;
1507 std::vector<CSCStripDigi>::const_iterator digiItr = (*j).second.first;
1508 std::vector<CSCStripDigi>::const_iterator
last = (*j).second.second;
1510 for ( ; digiItr !=
last; ++digiItr) {
1514 std::vector<int> adcCounts = digiItr->getADCCounts();
1522 if (adcCounts[5] > (pedestal + 100))
1529 eventout +=
"\n Number of CSCStripDigis collected:........ ";
1530 eventout += nStrips;
1538 bool validwires =
true;
1541 <<
"Unable to find muon wires in event!";
1551 std::vector<CSCWireDigi>::const_iterator digiItr = (*j).second.first;
1552 std::vector<CSCWireDigi>::const_iterator endDigi = (*j).second.second;
1554 for ( ; digiItr != endDigi; ++digiItr) {
1561 eventout +=
"\n Number of CSCWireDigis collected:......... ";
1573 <<
"Unable to find RPCGeometryRecord in event!";
1578 iEvent.
getByLabel(
"g4SimHits",
"MuonRPCHits", rpcsimHit);
1579 bool validrpcsim =
true;
1582 <<
"Unable to find rpcsimHit in event!";
1583 validrpcsim =
false;
1588 bool validrpcdigi =
true;
1591 <<
"Unable to find rpcDigis in event!";
1592 validrpcdigi =
false;
1596 validrpcdigi =
false;
1599 edm::PSimHitContainer::const_iterator rpcsimIt;
1600 std::map<RPCDetId, std::vector<double> > allsims;
1603 for (rpcsimIt = rpcsimHit->begin(); rpcsimIt != rpcsimHit->end();
1606 int ptype = rpcsimIt->particleType();
1608 if (ptype == 13 || ptype == -13) {
1609 std::vector<double> buff;
1610 if (allsims.find(Rsid) != allsims.end() ){
1611 buff= allsims[Rsid];
1613 buff.push_back(rpcsimIt->localPosition().x());
1624 for (rpcdetUnitIt = rpcDigis->begin(); rpcdetUnitIt != rpcDigis->end();
1627 const RPCDetId Rsid = (*rpcdetUnitIt).first;
1629 dynamic_cast<const RPCRoll*
>( rpcGeom->roll(Rsid));
1632 std::vector<double> sims;
1633 if (allsims.find(Rsid) != allsims.end() ){
1634 sims = allsims[Rsid];
1639 rpcdigiIt != range.second;
1646 if (sims.size() == 1 && ndigi == 1){
1647 double dis = roll->
centreOfStrip(range.first->strip()).
x()-sims[0];
1649 if (Rsid.
region() == 0 ){
1650 if (Rsid.
ring() == -2)
1652 else if (Rsid.
ring() == -1)
1654 else if (Rsid.
ring() == 0)
1656 else if (Rsid.
ring() == 1)
1658 else if (Rsid.
ring() == 2)
1665 eventout +=
"\n Number of RPCDigis collected:.............. ";
GlobalDigisAnalyzer(const edm::ParameterSet &)
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
LocalPoint centreOfStrip(int strip) const
std::vector< PCaloHit > PCaloHitContainer
MonitorElement * mehEScalADC[3]
double ECalbarrelADCtoGeV_
MonitorElement * mehDtMuonLayer[4]
unsigned int layer() const
layer id
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
static const int sdHcalOut
float theCSCStripPedestalSum
MonitorElement * mehEcaln[2]
void fillECal(const edm::Event &, const edm::EventSetup &)
MonitorElement * mehEScaln
std::vector< T >::const_iterator const_iterator
MonitorElement * mehSiPixelRow[7]
MonitorElement * mehRPCRes[5]
double pedestal(int fCapId) const
get pedestal for capid=0..3
int theCSCStripPedestalCount
MonitorElement * mehSiStripADC[19]
MonitorElement * mehDtMuonTimevLayer[4]
MonitorElement * mehSiStripn[19]
int gainId() const
get the gainId (2 bits)
MonitorElement * mehCSCWireTime
unsigned int layer() const
layer id
virtual void beginJob(void)
uint32_t rawId() const
get the raw id
MonitorElement * mehEcalMaxPos[2]
MonitorElement * mehDtMuonTime[4]
static const int sdPxlBrl
double ECalendcapADCtoGeV_
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
virtual void adc2fC(const HBHEDataFrame &df, CaloSamples &lf) const
edm::InputTag MuCSCStripSrc_
static const int MAXSAMPLES
MonitorElement * mehHcalAEE[4]
std::map< uint32_t, float, std::less< uint32_t > > MapType
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)
std::map< int, double, std::less< int > > ECalgainConv_
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
iterator end()
Return the off-the-end iterator.
unsigned int disk() const
disk id
void fillHCal(const edm::Event &, const edm::EventSetup &)
MonitorElement * mehRPCMuonn
MonitorElement * mehEcalSHE[2]
void fillMuon(const edm::Event &, const edm::EventSetup &)
MonitorElement * mehEcalAEE[2]
MonitorElement * mehHcalSHEvAEE[4]
virtual ~GlobalDigisAnalyzer()
MonitorElement * mehCSCStripn
int size() const
get the size
MonitorElement * mehCSCStripADC
T const * product() const
static const int sdHcalFwd
float gain12Over6() const
std::vector< DigiType >::const_iterator const_iterator
T const * product() const
unsigned int wheel() const
wheel id
static const int sdHcalBrl
MonitorElement * mehSiPixelCol[7]
MonitorElement * mehHcaln[4]
unsigned int layer() const
layer id
MonitorElement * mehHcalAEESHE[4]
MonitorElement * mehEcalSHEvAEESHE[2]
MonitorElement * mehHcalSHE[4]
unsigned int side() const
positive or negative id
MonitorElement * mehCSCWiren
std::pair< const_iterator, const_iterator > Range
int adc() const
get the ADC sample (singed 16 bits)
iterator begin()
Return an iterator to the first DetSet.
static const int sdPxlFwd
void showDirStructure(void) const
MonitorElement * mehEcalMultvAEE[2]
MonitorElement * mehSiPixeln[7]
MonitorElement * mehSiStripStrip[19]
collection_type::const_iterator const_iterator
collection_type::const_iterator const_iterator
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void fillTrk(const edm::Event &, const edm::EventSetup &)
edm::InputTag MuCSCWireSrc_
static const int sdHcalEC
static const int MAXSAMPLES
MonitorElement * mehSiPixelADC[7]
void setCurrentFolder(const std::string &fullpath)
edm::InputTag SiStripSrc_
int adc() const
get the ADC sample (12 bits)
MonitorElement * mehDtMuonn[4]
unsigned int wheel() const
wheel id
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
virtual void analyze(const edm::Event &, const edm::EventSetup &)