14 printProvenanceInfo(
false), theCSCStripPedestalSum(0),
15 theCSCStripPedestalCount(0),
count(0)
17 std::string MsgLoggerCat =
"GlobalDigisProducer_GlobalDigisProducer";
27 m_Prov.getUntrackedParameter<
bool>(
"GetAllProvenances");
29 m_Prov.getUntrackedParameter<
bool>(
"PrintProvenanceInfo");
48 produces<PGlobalDigi>(
label);
53 <<
"\n===============================\n"
54 <<
"Initialized as EDProducer with parameter values:\n"
55 <<
" Name = " <<
fName <<
"\n"
56 <<
" Verbosity = " << verbosity <<
"\n"
57 <<
" Frequency = " << frequency <<
"\n"
58 <<
" Label = " << label <<
"\n"
59 <<
" GetProv = " << getAllProvenances <<
"\n"
60 <<
" PrintProv = " << printProvenanceInfo <<
"\n"
61 <<
" ECalEBSrc = " << ECalEBSrc_.label()
62 <<
":" << ECalEBSrc_.instance() <<
"\n"
63 <<
" ECalEESrc = " << ECalEESrc_.
label()
64 <<
":" << ECalEESrc_.
instance() <<
"\n"
65 <<
" ECalESSrc = " << ECalESSrc_.
label()
66 <<
":" << ECalESSrc_.
instance() <<
"\n"
67 <<
" HCalSrc = " << HCalSrc_.
label()
68 <<
":" << HCalSrc_.
instance() <<
"\n"
69 <<
" HCalDigi = " << HCalDigi_.
label()
70 <<
":" << HCalDigi_.
instance() <<
"\n"
71 <<
" SiStripSrc = " << SiStripSrc_.
label()
72 <<
":" << SiStripSrc_.
instance() <<
"\n"
73 <<
" SiPixelSrc = " << SiPxlSrc_.
label()
74 <<
":" << SiPxlSrc_.
instance() <<
"\n"
75 <<
" MuDTSrc = " << MuDTSrc_.
label()
76 <<
":" << MuDTSrc_.
instance() <<
"\n"
77 <<
" MuCSCStripSrc = " << MuCSCStripSrc_.
label()
78 <<
":" << MuCSCStripSrc_.
instance() <<
"\n"
79 <<
" MuCSCWireSrc = " << MuCSCWireSrc_.
label()
80 <<
":" << MuCSCWireSrc_.
instance() <<
"\n"
81 <<
"===============================\n";
101 std::string MsgLoggerCat =
"GlobalDigisProducer_beginJob";
115 delete defaultRatios;
122 <<
"Modified Calorimeter gain constants: g0 = " <<
ECalgainConv_[0]
137 std::string MsgLoggerCat =
"GlobalDigisProducer_endJob";
140 <<
"Terminating having processed " <<
count <<
" events.";
147 std::string MsgLoggerCat =
"GlobalDigisProducer_produce";
162 <<
"Modified Calorimeter ADCtoGeV constants: barrel = "
168 int nrun = iEvent.
id().
run();
169 int nevt = iEvent.
id().
event();
173 <<
"Processing run " << nrun <<
", event " << nevt
174 <<
" (" <<
count <<
" events total)";
178 <<
"Processing run " << nrun <<
", event " << nevt
179 <<
" (" <<
count <<
" events total)";
189 std::vector<const edm::Provenance*> AllProv;
194 <<
"Number of Provenances = " << AllProv.size();
197 TString eventout(
"\nProvenance info:\n");
199 for (
unsigned int i = 0;
i < AllProv.size(); ++
i) {
200 eventout +=
"\n ******************************";
201 eventout +=
"\n Module : ";
203 eventout += AllProv[
i]->moduleLabel();
204 eventout +=
"\n ProductID : ";
206 eventout += AllProv[
i]->productID().id();
207 eventout +=
"\n ClassName : ";
209 eventout += AllProv[
i]->className();
210 eventout +=
"\n InstanceName : ";
212 eventout += AllProv[
i]->productInstanceName();
213 eventout +=
"\n BranchName : ";
215 eventout += AllProv[
i]->branchName();
217 eventout +=
"\n ******************************\n";
236 <<
"Done gathering data from event.";
243 <<
"Saving event contents:";
264 std::string MsgLoggerCat =
"GlobalDigisProducer_fillECal";
268 eventout =
"\nGathering info:";
283 bool isBarrel =
true;
289 <<
"Unable to find EcalDigiEB in event!";
292 EBdigis = EcalDigiEB.
product();
293 if ( EcalDigiEB->size() == 0) isBarrel =
false;
298 const std::string barrelHitsName(
"EcalHitsEB");
299 iEvent.
getByLabel(
"mix",barrelHitsName,crossingFrame);
300 if (!crossingFrame.
isValid()) {
302 <<
"Unable to find cal barrel crossingFrame in event!";
308 std::auto_ptr<MixCollection<PCaloHit> >
314 = barrelHits->begin();
315 hitItr != barrelHits->end();
320 uint32_t crystid = ebid.
rawId();
321 ebSimMap[crystid] += hitItr->energy();
327 std::vector<double> ebAnalogSignal;
328 std::vector<double> ebADCCounts;
329 std::vector<double> ebADCGains;
335 for (
unsigned int digis=0; digis<EcalDigiEB->size(); ++digis)
345 int nrSamples = ebdf.
size();
352 double pedestalPreSample = 0.;
353 double pedestalPreSampleAnalog = 0.;
355 for (
int sample = 0 ; sample < nrSamples; ++sample) {
357 ebAnalogSignal[sample] = 0.;
358 ebADCCounts[sample] = 0.;
359 ebADCGains[sample] = -1.;
363 for (
int sample = 0 ; sample < nrSamples; ++sample) {
367 ebADCCounts[sample] = (thisSample.
adc());
368 ebADCGains[sample] = (thisSample.
gainId());
369 ebAnalogSignal[sample] =
370 (ebADCCounts[sample] *
ECalgainConv_[(int)ebADCGains[sample]]
372 if (Emax < ebAnalogSignal[sample]) {
373 Emax = ebAnalogSignal[sample];
377 pedestalPreSample += ebADCCounts[sample] ;
378 pedestalPreSampleAnalog +=
380 * ECalbarrelADCtoGeV_ ;
384 pedestalPreSample /= 3. ;
385 pedestalPreSampleAnalog /= 3. ;
388 double Erec = Emax - pedestalPreSampleAnalog
398 eventout +=
"\n Number of EBDigis collected:.............. ";
406 bool isEndCap =
true;
412 <<
"Unable to find EcalDigiEE in event!";
415 EEdigis = EcalDigiEE.
product();
416 if (EcalDigiEE->size() == 0) isEndCap =
false;
421 const std::string endcapHitsName(
"EcalHitsEE");
422 iEvent.
getByLabel(
"mix",endcapHitsName,crossingFrame);
423 if (!crossingFrame.
isValid()) {
425 <<
"Unable to find cal endcap crossingFrame in event!";
431 std::auto_ptr<MixCollection<PCaloHit> >
437 = endcapHits->begin();
438 hitItr != endcapHits->end();
443 uint32_t crystid = eeid.
rawId();
444 eeSimMap[crystid] += hitItr->energy();
450 std::vector<double> eeAnalogSignal;
451 std::vector<double> eeADCCounts;
452 std::vector<double> eeADCGains;
462 for (
unsigned int digis=0; digis<EcalDigiEE->size(); ++digis){
467 int nrSamples = eedf.
size();
474 double pedestalPreSample = 0.;
475 double pedestalPreSampleAnalog = 0.;
477 for (
int sample = 0 ; sample < nrSamples; ++sample) {
479 eeAnalogSignal[sample] = 0.;
480 eeADCCounts[sample] = 0.;
481 eeADCGains[sample] = -1.;
485 for (
int sample = 0 ; sample < nrSamples; ++sample) {
490 eeADCCounts[sample] = (thisSample.
adc());
491 eeADCGains[sample] = (thisSample.
gainId());
492 eeAnalogSignal[sample] =
493 (eeADCCounts[sample] *
ECalgainConv_[(int)eeADCGains[sample]]
495 if (Emax < eeAnalogSignal[sample]) {
496 Emax = eeAnalogSignal[sample];
500 pedestalPreSample += eeADCCounts[sample] ;
501 pedestalPreSampleAnalog +=
503 * ECalbarrelADCtoGeV_ ;
507 pedestalPreSample /= 3. ;
508 pedestalPreSampleAnalog /= 3. ;
511 double Erec = Emax - pedestalPreSampleAnalog
521 eventout +=
"\n Number of EEDigis collected:.............. ";
529 bool isPreshower =
true;
535 <<
"Unable to find EcalDigiES in event!";
538 ESdigis = EcalDigiES.
product();
539 if (EcalDigiES->size() == 0) isPreshower =
false;
544 const std::string preshowerHitsName(
"EcalHitsES");
545 iEvent.
getByLabel(
"mix",preshowerHitsName,crossingFrame);
546 if (!crossingFrame.
isValid()) {
548 <<
"Unable to find cal preshower crossingFrame in event!";
554 std::auto_ptr<MixCollection<PCaloHit> >
560 = preshowerHits->begin();
561 hitItr != preshowerHits->end();
566 uint32_t crystid = esid.
rawId();
567 esSimMap[crystid] += hitItr->energy();
573 std::vector<double> esADCCounts;
577 for (
unsigned int digis=0; digis<EcalDigiES->size(); ++digis) {
587 int nrSamples = esdf.
size();
592 for (
int sample = 0 ; sample < nrSamples; ++sample) {
594 esADCCounts[sample] = 0.;
598 for (
int sample = 0 ; sample < nrSamples; ++sample) {
602 esADCCounts[sample] = (thisSample.
adc());
612 eventout +=
"\n Number of ESDigis collected:.............. ";
625 std::string MsgLoggerCat =
"GlobalDigisProducer_storeECal";
628 TString eventout(
"\n nEBDigis = ");
631 eventout +=
"\n (maxPos, AEE, SHE) = (";
639 eventout +=
"\n nEEDigis = ";
642 eventout +=
"\n (maxPos, AEE, SHE) = (";
650 eventout +=
"\n nESDigis = ";
653 eventout +=
"\n (ADC0, ADC1, ADC2, SHE) = (";
676 std::string MsgLoggerCat =
"GlobalDigisProducer_fillHCal";
680 eventout =
"\nGathering info:";
685 if (!HCalconditions.
isValid()) {
687 <<
"Unable to find HCalconditions in event!";
690 const HcalQIEShape *shape = HCalconditions->getHcalShape();
701 <<
"Unable to find hcalHits in event!";
710 for (std::vector<PCaloHit>::const_iterator simhits = simhitResult->begin();
711 simhits != simhitResult->end();
715 uint32_t cellid = detId.
rawId();
718 fHBEnergySimHits[cellid] += simhits->energy();
721 fHEEnergySimHits[cellid] += simhits->energy();
724 fHOEnergySimHits[cellid] += simhits->energy();
727 fHFEnergySimHits[cellid] += simhits->energy();
738 <<
"Unable to find HBHEDataFrame in event!";
745 for (ihbhe = hbhe->begin(); ihbhe != hbhe->end(); ++ihbhe) {
752 HCalconditions->getHcalCalibrations(cell);
753 const HcalQIECoder *channelCoder = HCalconditions->getHcalCoder(cell);
755 coder.
adc2fC(*ihbhe, tool);
761 float fDigiSum = 0.0;
762 for (
int ii = 0; ii < tool.
size(); ++ii) {
764 int capid = (*ihbhe)[ii].capid();
765 fDigiSum += (tool[ii] - calibrations.
pedestal(capid));
769 HBCalSHE.push_back(fHBEnergySimHits[cell.rawId()]);
776 float fDigiSum = 0.0;
777 for (
int ii = 0; ii < tool.
size(); ++ii) {
778 int capid = (*ihbhe)[ii].capid();
779 fDigiSum += (tool[ii]-calibrations.
pedestal(capid));
783 HECalSHE.push_back(fHEEnergySimHits[cell.rawId()]);
789 eventout +=
"\n Number of HBDigis collected:.............. ";
794 eventout +=
"\n Number of HEDigis collected:.............. ";
805 <<
"Unable to find HODataFrame in event!";
811 for (iho = ho->begin(); iho != ho->end(); ++iho) {
818 HCalconditions->getHcalCalibrations(cell);
819 const HcalQIECoder *channelCoder = HCalconditions->getHcalCoder(cell);
824 float fDigiSum = 0.0;
825 for (
int ii = 0; ii < tool.
size(); ++ii) {
827 int capid = (*iho)[ii].capid();
828 fDigiSum += (tool[ii] - calibrations.
pedestal(capid));
832 HOCalSHE.push_back(fHOEnergySimHits[cell.rawId()]);
837 eventout +=
"\n Number of HODigis collected:.............. ";
848 <<
"Unable to find HFDataFrame in event!";
854 for (ihf = hf->begin(); ihf != hf->end(); ++ihf) {
861 HCalconditions->getHcalCalibrations(cell);
862 const HcalQIECoder *channelCoder = HCalconditions->getHcalCoder(cell);
867 float fDigiSum = 0.0;
868 for (
int ii = 0; ii < tool.
size(); ++ii) {
870 int capid = (*ihf)[ii].capid();
871 fDigiSum += (tool[ii] - calibrations.
pedestal(capid));
875 HFCalSHE.push_back(fHFEnergySimHits[cell.rawId()]);
880 eventout +=
"\n Number of HFDigis collected:.............. ";
892 std::string MsgLoggerCat =
"GlobalDigisProducer_storeHCal";
895 TString eventout(
"\n nHBDigis = ");
897 for (
unsigned int i = 0;
i <
HBCalAEE.size(); ++
i) {
898 eventout +=
"\n (AEE, SHE) = (";
904 eventout +=
"\n nHEDigis = ";
906 for (
unsigned int i = 0;
i <
HECalAEE.size(); ++
i) {
907 eventout +=
"\n (AEE, SHE) = (";
913 eventout +=
"\n nHODigis = ";
915 for (
unsigned int i = 0;
i <
HOCalAEE.size(); ++
i) {
916 eventout +=
"\n (AEE, SHE) = (";
922 eventout +=
"\n nHFDigis = ";
924 for (
unsigned int i = 0;
i <
HFCalAEE.size(); ++
i) {
925 eventout +=
"\n (AEE, SHE) = (";
946 std::string MsgLoggerCat =
"GlobalDigisProducer_fillTrk";
950 eventout =
"\nGathering info:";
957 <<
"Unable to find stripDigis in event!";
961 int nStripBrl = 0, nStripFwd = 0;
963 for (DSViter = stripDigis->begin(); DSViter != stripDigis->end();
965 unsigned int id = DSViter->id;
974 for (iter = begin; iter !=
end; ++iter) {
976 if (tibid.
layer() == 1) {
980 if (tibid.
layer() == 2) {
984 if (tibid.
layer() == 3) {
988 if (tibid.
layer() == 4) {
998 for (iter = begin; iter !=
end; ++iter) {
1000 if (tobid.
layer() == 1) {
1004 if (tobid.
layer() == 2) {
1008 if (tobid.
layer() == 3) {
1012 if (tobid.
layer() == 4) {
1022 for (iter = begin; iter !=
end; ++iter) {
1024 if (tidid.
wheel() == 1) {
1028 if (tidid.
wheel() == 2) {
1032 if (tidid.
wheel() == 3) {
1042 for (iter = begin; iter !=
end; ++iter) {
1044 if (tecid.
wheel() == 1) {
1048 if (tecid.
wheel() == 2) {
1052 if (tecid.
wheel() == 3) {
1056 if (tecid.
wheel() == 4) {
1060 if (tecid.
wheel() == 5) {
1064 if (tecid.
wheel() == 6) {
1068 if (tecid.
wheel() == 7) {
1072 if (tecid.
wheel() == 8) {
1081 eventout +=
"\n Number of BrlStripDigis collected:........ ";
1082 eventout += nStripBrl;
1086 eventout +=
"\n Number of FrwdStripDigis collected:....... ";
1087 eventout += nStripFwd;
1095 <<
"Unable to find pixelDigis in event!";
1099 int nPxlBrl = 0, nPxlFwd = 0;
1101 for (DPViter = pixelDigis->begin(); DPViter != pixelDigis->end();
1103 unsigned int id = DPViter->id;
1112 for (iter = begin; iter !=
end; ++iter) {
1114 if (bdetid.
layer() == 1) {
1115 BRL1ADC.push_back((*iter).adc());
1116 BRL1Row.push_back((*iter).row());
1117 BRL1Col.push_back((*iter).column());
1119 if (bdetid.
layer() == 2) {
1120 BRL2ADC.push_back((*iter).adc());
1121 BRL2Row.push_back((*iter).row());
1122 BRL2Col.push_back((*iter).column());
1124 if (bdetid.
layer() == 3) {
1125 BRL3ADC.push_back((*iter).adc());
1126 BRL3Row.push_back((*iter).row());
1127 BRL3Col.push_back((*iter).column());
1135 for (iter = begin; iter !=
end; ++iter) {
1137 if (fdetid.
disk() == 1) {
1138 if (fdetid.
side() == 1) {
1141 FWD1nCol.push_back((*iter).column());
1143 if (fdetid.
side() == 2) {
1146 FWD1pCol.push_back((*iter).column());
1149 if (fdetid.
disk() == 2) {
1150 if (fdetid.
side() == 1) {
1153 FWD2nCol.push_back((*iter).column());
1155 if (fdetid.
side() == 2) {
1158 FWD2pCol.push_back((*iter).column());
1166 eventout +=
"\n Number of BrlPixelDigis collected:........ ";
1167 eventout += nPxlBrl;
1171 eventout +=
"\n Number of FrwdPixelDigis collected:....... ";
1172 eventout += nPxlFwd;
1183 std::string MsgLoggerCat =
"GlobalDigisProducer_storeTrk";
1188 TString eventout(
"\n nTIBL1 = ");
1190 for (
unsigned int i = 0;
i <
TIBL1ADC.size(); ++
i) {
1191 eventout +=
"\n (ADC, strip) = (";
1197 eventout +=
"\n nTIBL2 = ";
1199 for (
unsigned int i = 0;
i <
TIBL2ADC.size(); ++
i) {
1200 eventout +=
"\n (ADC, strip) = (";
1206 eventout +=
"\n nTIBL3 = ";
1208 for (
unsigned int i = 0;
i <
TIBL3ADC.size(); ++
i) {
1209 eventout +=
"\n (ADC, strip) = (";
1215 eventout +=
"\n nTIBL4 = ";
1217 for (
unsigned int i = 0;
i <
TIBL4ADC.size(); ++
i) {
1218 eventout +=
"\n (ADC, strip) = (";
1224 eventout +=
"\n nTOBL1 = ";
1226 for (
unsigned int i = 0;
i <
TOBL1ADC.size(); ++
i) {
1227 eventout +=
"\n (ADC, strip) = (";
1233 eventout +=
"\n nTOBL2 = ";
1235 for (
unsigned int i = 0;
i <
TOBL2ADC.size(); ++
i) {
1236 eventout +=
"\n (ADC, strip) = (";
1242 eventout +=
"\n nTOBL3 = ";
1244 for (
unsigned int i = 0;
i <
TOBL3ADC.size(); ++
i) {
1245 eventout +=
"\n (ADC, strip) = (";
1251 eventout +=
"\n nTOBL4 = ";
1253 for (
unsigned int i = 0;
i <
TOBL4ADC.size(); ++
i) {
1254 eventout +=
"\n (ADC, strip) = (";
1260 eventout +=
"\n nTIDW1 = ";
1262 for (
unsigned int i = 0;
i <
TIDW1ADC.size(); ++
i) {
1263 eventout +=
"\n (ADC, strip) = (";
1269 eventout +=
"\n nTIDW2 = ";
1271 for (
unsigned int i = 0;
i <
TIDW2ADC.size(); ++
i) {
1272 eventout +=
"\n (ADC, strip) = (";
1278 eventout +=
"\n nTIDW3 = ";
1280 for (
unsigned int i = 0;
i <
TIDW3ADC.size(); ++
i) {
1281 eventout +=
"\n (ADC, strip) = (";
1287 eventout +=
"\n nTECW1 = ";
1289 for (
unsigned int i = 0;
i <
TECW1ADC.size(); ++
i) {
1290 eventout +=
"\n (ADC, strip) = (";
1296 eventout +=
"\n nTECW2 = ";
1298 for (
unsigned int i = 0;
i <
TECW2ADC.size(); ++
i) {
1299 eventout +=
"\n (ADC, strip) = (";
1305 eventout +=
"\n nTECW3 = ";
1307 for (
unsigned int i = 0;
i <
TECW3ADC.size(); ++
i) {
1308 eventout +=
"\n (ADC, strip) = (";
1314 eventout +=
"\n nTECW4 = ";
1316 for (
unsigned int i = 0;
i <
TECW4ADC.size(); ++
i) {
1317 eventout +=
"\n (ADC, strip) = (";
1323 eventout +=
"\n nTECW5 = ";
1325 for (
unsigned int i = 0;
i <
TECW5ADC.size(); ++
i) {
1326 eventout +=
"\n (ADC, strip) = (";
1332 eventout +=
"\n nTECW6 = ";
1334 for (
unsigned int i = 0;
i <
TECW6ADC.size(); ++
i) {
1335 eventout +=
"\n (ADC, strip) = (";
1341 eventout +=
"\n nTECW7 = ";
1343 for (
unsigned int i = 0;
i <
TECW7ADC.size(); ++
i) {
1344 eventout +=
"\n (ADC, strip) = (";
1350 eventout +=
"\n nTECW8 = ";
1352 for (
unsigned int i = 0;
i <
TECW8ADC.size(); ++
i) {
1353 eventout +=
"\n (ADC, strip) = (";
1361 eventout +=
"\n nBRL1 = ";
1363 for (
unsigned int i = 0;
i <
BRL1ADC.size(); ++
i) {
1364 eventout +=
"\n (ADC, row, column) = (";
1372 eventout +=
"\n nBRL2 = ";
1374 for (
unsigned int i = 0;
i <
BRL2ADC.size(); ++
i) {
1375 eventout +=
"\n (ADC, row, column) = (";
1383 eventout +=
"\n nBRL3 = ";
1385 for (
unsigned int i = 0;
i <
BRL3ADC.size(); ++
i) {
1386 eventout +=
"\n (ADC, row, column) = (";
1394 eventout +=
"\n nFWD1p = ";
1396 for (
unsigned int i = 0;
i <
FWD1pADC.size(); ++
i) {
1397 eventout +=
"\n (ADC, row, column) = (";
1405 eventout +=
"\n nFWD1p = ";
1407 for (
unsigned int i = 0;
i <
FWD1nADC.size(); ++
i) {
1408 eventout +=
"\n (ADC, row, column) = (";
1416 eventout +=
"\n nFWD1p = ";
1418 for (
unsigned int i = 0;
i <
FWD2pADC.size(); ++
i) {
1419 eventout +=
"\n (ADC, row, column) = (";
1427 eventout +=
"\n nFWD2p = ";
1429 for (
unsigned int i = 0;
i <
FWD2nADC.size(); ++
i) {
1430 eventout +=
"\n (ADC, row, column) = (";
1478 std::string MsgLoggerCat =
"GlobalDigisProducer_fillMuon";
1482 eventout =
"\nGathering info:";
1489 <<
"Unable to find dtDigis in event!";
1495 for (detUnitIt = dtDigis->begin(); detUnitIt != dtDigis->end();
1498 const DTLayerId&
id = (*detUnitIt).first;
1502 digiIt != range.second;
1507 DTWireId wireId(
id,(*digiIt).wire());
1508 if (wireId.station() == 1) {
1510 MB1Time.push_back((*digiIt).time());
1513 if (wireId.station() == 2) {
1515 MB2Time.push_back((*digiIt).time());
1518 if (wireId.station() == 3) {
1520 MB3Time.push_back((*digiIt).time());
1523 if (wireId.station() == 4) {
1525 MB4Time.push_back((*digiIt).time());
1532 eventout +=
"\n Number of DtMuonDigis collected:.......... ";
1541 <<
"Unable to find muon strips in event!";
1550 std::vector<CSCStripDigi>::const_iterator digiItr = (*j).second.first;
1551 std::vector<CSCStripDigi>::const_iterator
last = (*j).second.second;
1553 for ( ; digiItr !=
last; ++digiItr) {
1557 std::vector<int> adcCounts = digiItr->getADCCounts();
1565 if (adcCounts[5] > (pedestal + 100))
1572 eventout +=
"\n Number of CSCStripDigis collected:........ ";
1573 eventout += nStrips;
1581 <<
"Unable to find muon wires in event!";
1590 std::vector<CSCWireDigi>::const_iterator digiItr = (*j).second.first;
1591 std::vector<CSCWireDigi>::const_iterator endDigi = (*j).second.second;
1593 for ( ; digiItr != endDigi; ++digiItr) {
1601 eventout +=
"\n Number of CSCWireDigis collected:......... ";
1613 std::string MsgLoggerCat =
"GlobalDigisProducer_storeMuon";
1618 TString eventout(
"\n nMB1 = ");
1621 eventout +=
"\n (slayer, time, layer) = (";
1629 eventout +=
"\n nMB2 = ";
1632 eventout +=
"\n (slayer, time, layer) = (";
1640 eventout +=
"\n nMB3 = ";
1643 eventout +=
"\n (slayer, time, layer) = (";
1651 eventout +=
"\n nMB2 = ";
1654 eventout +=
"\n (slayer, time, layer) = (";
1664 eventout +=
"\n nCSCStrip = ";
1667 eventout +=
"\n (adc) = (";
1673 eventout +=
"\n nCSCWire = ";
1676 eventout +=
"\n (time) = (";
1698 std::string MsgLoggerCat =
"GlobalDigisProducer_clear";
1702 <<
"Clearing event holders";
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
void putHBCalDigis(std::vector< float > aee, std::vector< float > she)
void putBRL2Digis(std::vector< float > adc, std::vector< int > row, std::vector< int > column)
std::vector< PCaloHit > PCaloHitContainer
std::map< uint32_t, float, std::less< uint32_t > > MapType
void putTECW6Digis(std::vector< float > adc, std::vector< int > strip)
void putMB2Digis(std::vector< int > slayer, std::vector< float > time, std::vector< int > layer)
unsigned int layer() const
layer id
void putCSCstripDigis(std::vector< float > adc)
void putTOBL1Digis(std::vector< float > adc, std::vector< int > strip)
static const int sdHcalOut
edm::InputTag MuCSCStripSrc_
void putTIBL2Digis(std::vector< float > adc, std::vector< int > strip)
const ESDetId & id() const
void putHOCalDigis(std::vector< float > aee, std::vector< float > she)
void putTOBL3Digis(std::vector< float > adc, std::vector< int > strip)
void putTIBL3Digis(std::vector< float > adc, std::vector< int > strip)
std::vector< T >::const_iterator const_iterator
void putTIDW2Digis(std::vector< float > adc, std::vector< int > strip)
void putBRL3Digis(std::vector< float > adc, std::vector< int > row, std::vector< int > column)
double pedestal(int fCapId) const
get pedestal for capid=0..3
void putFWD1nDigis(std::vector< float > adc, std::vector< int > row, std::vector< int > column)
void fillTrk(edm::Event &, const edm::EventSetup &)
virtual void beginJob(void)
void storeECal(PGlobalDigi &)
int gainId() const
get the gainId (2 bits)
void putMB1Digis(std::vector< int > slayer, std::vector< float > time, std::vector< int > layer)
void putFWD1pDigis(std::vector< float > adc, std::vector< int > row, std::vector< int > column)
unsigned int layer() const
layer id
void putHECalDigis(std::vector< float > aee, std::vector< float > she)
float theCSCStripPedestalSum
virtual ~GlobalDigisProducer()
void putMB4Digis(std::vector< int > slayer, std::vector< float > time, std::vector< int > layer)
uint32_t rawId() const
get the raw id
void putTIBL4Digis(std::vector< float > adc, std::vector< int > strip)
void fillMuon(edm::Event &, const edm::EventSetup &)
GlobalDigisProducer(const edm::ParameterSet &)
void putTIBL1Digis(std::vector< float > adc, std::vector< int > strip)
void putTOBL4Digis(std::vector< float > adc, std::vector< int > strip)
double ECalendcapADCtoGeV_
static const int sdPxlBrl
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual void adc2fC(const HBHEDataFrame &df, CaloSamples &lf) const
static const int MAXSAMPLES
void putESCalDigis(std::vector< float > adc0, std::vector< float > adc1, std::vector< float > adc2, std::vector< float > she)
void storeTrk(PGlobalDigi &)
void putMB3Digis(std::vector< int > slayer, std::vector< float > time, std::vector< int > layer)
double ECalbarrelADCtoGeV_
void storeHCal(PGlobalDigi &)
virtual void produce(edm::Event &, const edm::EventSetup &)
edm::InputTag SiStripSrc_
void putCSCwireDigis(std::vector< float > time)
void putTECW5Digis(std::vector< float > adc, std::vector< int > strip)
void putFWD2nDigis(std::vector< float > adc, std::vector< int > row, std::vector< int > column)
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
void putTECW1Digis(std::vector< float > adc, std::vector< int > strip)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
iterator end()
Return the off-the-end iterator.
unsigned int disk() const
disk id
void putTECW8Digis(std::vector< float > adc, std::vector< int > strip)
void putHFCalDigis(std::vector< float > aee, std::vector< float > she)
void putEBCalDigis(std::vector< int > maxpos, std::vector< double > aee, std::vector< float > she)
std::map< int, double, std::less< int > > ECalgainConv_
void putTECW3Digis(std::vector< float > adc, std::vector< int > strip)
int size() const
get the size
int theCSCStripPedestalCount
T const * product() const
static const int sdHcalFwd
float gain12Over6() const
std::vector< DigiType >::const_iterator const_iterator
void putTIDW3Digis(std::vector< float > adc, std::vector< int > strip)
T const * product() const
unsigned int wheel() const
wheel id
static const int sdHcalBrl
void putTECW2Digis(std::vector< float > adc, std::vector< int > strip)
unsigned int layer() const
layer id
void putTOBL2Digis(std::vector< float > adc, std::vector< int > strip)
void putEECalDigis(std::vector< int > maxpos, std::vector< double > aee, std::vector< float > she)
void storeMuon(PGlobalDigi &)
unsigned int side() const
positive or negative id
void putTIDW1Digis(std::vector< float > adc, std::vector< int > strip)
std::pair< const_iterator, const_iterator > Range
int adc() const
get the ADC sample (singed 16 bits)
void fillHCal(edm::Event &, const edm::EventSetup &)
iterator begin()
Return an iterator to the first DetSet.
static const int sdPxlFwd
void fillECal(edm::Event &, const edm::EventSetup &)
collection_type::const_iterator const_iterator
collection_type::const_iterator const_iterator
void putBRL1Digis(std::vector< float > adc, std::vector< int > row, std::vector< int > column)
void putFWD2pDigis(std::vector< float > adc, std::vector< int > row, std::vector< int > column)
static const int sdHcalEC
static const int MAXSAMPLES
edm::InputTag MuCSCWireSrc_
void putTECW7Digis(std::vector< float > adc, std::vector< int > strip)
int adc() const
get the ADC sample (12 bits)
unsigned int wheel() const
wheel id
void putTECW4Digis(std::vector< float > adc, std::vector< int > strip)