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");
68 produces<PGlobalDigi>(
label);
73 <<
"\n===============================\n"
74 <<
"Initialized as EDProducer with parameter values:\n"
75 <<
" Name = " <<
fName <<
"\n"
76 <<
" Verbosity = " << verbosity <<
"\n"
77 <<
" Frequency = " << frequency <<
"\n"
78 <<
" Label = " << label <<
"\n"
79 <<
" GetProv = " << getAllProvenances <<
"\n"
80 <<
" PrintProv = " << printProvenanceInfo <<
"\n"
81 <<
" ECalEBSrc = " << ECalEBSrc_.label()
82 <<
":" << ECalEBSrc_.instance() <<
"\n"
83 <<
" ECalEESrc = " << ECalEESrc_.
label()
84 <<
":" << ECalEESrc_.
instance() <<
"\n"
85 <<
" ECalESSrc = " << ECalESSrc_.
label()
86 <<
":" << ECalESSrc_.
instance() <<
"\n"
87 <<
" HCalSrc = " << HCalSrc_.
label()
88 <<
":" << HCalSrc_.
instance() <<
"\n"
89 <<
" HCalDigi = " << HCalDigi_.
label()
90 <<
":" << HCalDigi_.
instance() <<
"\n"
91 <<
" SiStripSrc = " << SiStripSrc_.
label()
92 <<
":" << SiStripSrc_.
instance() <<
"\n"
93 <<
" SiPixelSrc = " << SiPxlSrc_.
label()
94 <<
":" << SiPxlSrc_.
instance() <<
"\n"
95 <<
" MuDTSrc = " << MuDTSrc_.
label()
96 <<
":" << MuDTSrc_.
instance() <<
"\n"
97 <<
" MuCSCStripSrc = " << MuCSCStripSrc_.
label()
98 <<
":" << MuCSCStripSrc_.
instance() <<
"\n"
99 <<
" MuCSCWireSrc = " << MuCSCWireSrc_.
label()
100 <<
":" << MuCSCWireSrc_.
instance() <<
"\n"
101 <<
"===============================\n";
121 std::string MsgLoggerCat =
"GlobalDigisProducer_beginJob";
135 delete defaultRatios;
142 <<
"Modified Calorimeter gain constants: g0 = " <<
ECalgainConv_[0]
157 std::string MsgLoggerCat =
"GlobalDigisProducer_endJob";
160 <<
"Terminating having processed " <<
count <<
" events.";
167 std::string MsgLoggerCat =
"GlobalDigisProducer_produce";
182 <<
"Modified Calorimeter ADCtoGeV constants: barrel = "
193 <<
"Processing run " << nrun <<
", event " << nevt
194 <<
" (" <<
count <<
" events total)";
198 <<
"Processing run " << nrun <<
", event " << nevt
199 <<
" (" <<
count <<
" events total)";
209 std::vector<const edm::Provenance*> AllProv;
214 <<
"Number of Provenances = " << AllProv.size();
217 TString eventout(
"\nProvenance info:\n");
219 for (
unsigned int i = 0;
i < AllProv.size(); ++
i) {
220 eventout +=
"\n ******************************";
221 eventout +=
"\n Module : ";
223 eventout += AllProv[
i]->moduleLabel();
224 eventout +=
"\n ProductID : ";
226 eventout += AllProv[
i]->productID().id();
227 eventout +=
"\n ClassName : ";
229 eventout += AllProv[
i]->className();
230 eventout +=
"\n InstanceName : ";
232 eventout += AllProv[
i]->productInstanceName();
233 eventout +=
"\n BranchName : ";
235 eventout += AllProv[
i]->branchName();
237 eventout +=
"\n ******************************\n";
256 <<
"Done gathering data from event.";
263 <<
"Saving event contents:";
284 std::string MsgLoggerCat =
"GlobalDigisProducer_fillECal";
288 eventout =
"\nGathering info:";
303 bool isBarrel =
true;
308 <<
"Unable to find EcalDigiEB in event!";
311 if ( EcalDigiEB->size() == 0) isBarrel =
false;
317 if (!crossingFrame.
isValid()) {
319 <<
"Unable to find cal barrel crossingFrame in event!";
325 std::auto_ptr<MixCollection<PCaloHit> >
331 = barrelHits->begin();
332 hitItr != barrelHits->end();
337 uint32_t crystid = ebid.
rawId();
338 ebSimMap[crystid] += hitItr->energy();
344 std::vector<double> ebAnalogSignal;
345 std::vector<double> ebADCCounts;
346 std::vector<double> ebADCGains;
352 for (
unsigned int digis=0; digis<EcalDigiEB->size(); ++digis)
362 int nrSamples = ebdf.
size();
369 double pedestalPreSample = 0.;
370 double pedestalPreSampleAnalog = 0.;
374 ebAnalogSignal[
sample] = 0.;
384 ebADCCounts[
sample] = (thisSample.
adc());
389 if (Emax < ebAnalogSignal[
sample]) {
390 Emax = ebAnalogSignal[
sample];
394 pedestalPreSample += ebADCCounts[
sample] ;
395 pedestalPreSampleAnalog +=
397 * ECalbarrelADCtoGeV_ ;
401 pedestalPreSample /= 3. ;
402 pedestalPreSampleAnalog /= 3. ;
405 double Erec = Emax - pedestalPreSampleAnalog
415 eventout +=
"\n Number of EBDigis collected:.............. ";
423 bool isEndCap =
true;
428 <<
"Unable to find EcalDigiEE in event!";
431 if (EcalDigiEE->size() == 0) isEndCap =
false;
437 if (!crossingFrame.
isValid()) {
439 <<
"Unable to find cal endcap crossingFrame in event!";
445 std::auto_ptr<MixCollection<PCaloHit> >
451 = endcapHits->begin();
452 hitItr != endcapHits->end();
457 uint32_t crystid = eeid.
rawId();
458 eeSimMap[crystid] += hitItr->energy();
464 std::vector<double> eeAnalogSignal;
465 std::vector<double> eeADCCounts;
466 std::vector<double> eeADCGains;
476 for (
unsigned int digis=0; digis<EcalDigiEE->size(); ++digis){
481 int nrSamples = eedf.
size();
488 double pedestalPreSample = 0.;
489 double pedestalPreSampleAnalog = 0.;
493 eeAnalogSignal[
sample] = 0.;
504 eeADCCounts[
sample] = (thisSample.
adc());
509 if (Emax < eeAnalogSignal[
sample]) {
510 Emax = eeAnalogSignal[
sample];
514 pedestalPreSample += eeADCCounts[
sample] ;
515 pedestalPreSampleAnalog +=
517 * ECalbarrelADCtoGeV_ ;
521 pedestalPreSample /= 3. ;
522 pedestalPreSampleAnalog /= 3. ;
525 double Erec = Emax - pedestalPreSampleAnalog
535 eventout +=
"\n Number of EEDigis collected:.............. ";
543 bool isPreshower =
true;
548 <<
"Unable to find EcalDigiES in event!";
551 if (EcalDigiES->size() == 0) isPreshower =
false;
557 if (!crossingFrame.
isValid()) {
559 <<
"Unable to find cal preshower crossingFrame in event!";
565 std::auto_ptr<MixCollection<PCaloHit> >
571 = preshowerHits->begin();
572 hitItr != preshowerHits->end();
577 uint32_t crystid = esid.
rawId();
578 esSimMap[crystid] += hitItr->energy();
584 std::vector<double> esADCCounts;
588 for (
unsigned int digis=0; digis<EcalDigiES->size(); ++digis) {
598 int nrSamples = esdf.
size();
613 esADCCounts[
sample] = (thisSample.
adc());
623 eventout +=
"\n Number of ESDigis collected:.............. ";
636 std::string MsgLoggerCat =
"GlobalDigisProducer_storeECal";
639 TString eventout(
"\n nEBDigis = ");
642 eventout +=
"\n (maxPos, AEE, SHE) = (";
650 eventout +=
"\n nEEDigis = ";
653 eventout +=
"\n (maxPos, AEE, SHE) = (";
661 eventout +=
"\n nESDigis = ";
664 eventout +=
"\n (ADC0, ADC1, ADC2, SHE) = (";
687 std::string MsgLoggerCat =
"GlobalDigisProducer_fillHCal";
691 eventout =
"\nGathering info:";
696 if (!HCalconditions.
isValid()) {
698 <<
"Unable to find HCalconditions in event!";
711 <<
"Unable to find hcalHits in event!";
720 for (std::vector<PCaloHit>::const_iterator simhits = simhitResult->begin();
721 simhits != simhitResult->end();
725 uint32_t cellid = detId.
rawId();
728 fHBEnergySimHits[cellid] += simhits->energy();
731 fHEEnergySimHits[cellid] += simhits->energy();
734 fHOEnergySimHits[cellid] += simhits->energy();
737 fHFEnergySimHits[cellid] += simhits->energy();
748 <<
"Unable to find HBHEDataFrame in event!";
755 for (ihbhe = hbhe->begin(); ihbhe != hbhe->end(); ++ihbhe) {
762 HCalconditions->getHcalCalibrations(cell);
763 const HcalQIECoder *channelCoder = HCalconditions->getHcalCoder(cell);
764 const HcalQIEShape *shape = HCalconditions->getHcalShape(channelCoder);
767 coder.
adc2fC(*ihbhe, tool);
773 float fDigiSum = 0.0;
776 int capid = (*ihbhe)[
ii].capid();
777 fDigiSum += (tool[
ii] - calibrations.
pedestal(capid));
781 HBCalSHE.push_back(fHBEnergySimHits[cell.rawId()]);
788 float fDigiSum = 0.0;
790 int capid = (*ihbhe)[
ii].capid();
791 fDigiSum += (tool[
ii]-calibrations.
pedestal(capid));
795 HECalSHE.push_back(fHEEnergySimHits[cell.rawId()]);
801 eventout +=
"\n Number of HBDigis collected:.............. ";
806 eventout +=
"\n Number of HEDigis collected:.............. ";
817 <<
"Unable to find HODataFrame in event!";
823 for (iho = ho->begin(); iho != ho->end(); ++iho) {
830 HCalconditions->getHcalCalibrations(cell);
831 const HcalQIECoder *channelCoder = HCalconditions->getHcalCoder(cell);
832 const HcalQIEShape *shape = HCalconditions->getHcalShape(channelCoder);
838 float fDigiSum = 0.0;
841 int capid = (*iho)[
ii].capid();
842 fDigiSum += (tool[
ii] - calibrations.
pedestal(capid));
846 HOCalSHE.push_back(fHOEnergySimHits[cell.rawId()]);
851 eventout +=
"\n Number of HODigis collected:.............. ";
862 <<
"Unable to find HFDataFrame in event!";
868 for (ihf = hf->begin(); ihf != hf->end(); ++
ihf) {
875 HCalconditions->getHcalCalibrations(cell);
876 const HcalQIECoder *channelCoder = HCalconditions->getHcalCoder(cell);
877 const HcalQIEShape *shape = HCalconditions->getHcalShape(channelCoder);
883 float fDigiSum = 0.0;
886 int capid = (*ihf)[
ii].capid();
887 fDigiSum += (tool[
ii] - calibrations.
pedestal(capid));
891 HFCalSHE.push_back(fHFEnergySimHits[cell.rawId()]);
896 eventout +=
"\n Number of HFDigis collected:.............. ";
908 std::string MsgLoggerCat =
"GlobalDigisProducer_storeHCal";
911 TString eventout(
"\n nHBDigis = ");
913 for (
unsigned int i = 0;
i <
HBCalAEE.size(); ++
i) {
914 eventout +=
"\n (AEE, SHE) = (";
920 eventout +=
"\n nHEDigis = ";
922 for (
unsigned int i = 0;
i <
HECalAEE.size(); ++
i) {
923 eventout +=
"\n (AEE, SHE) = (";
929 eventout +=
"\n nHODigis = ";
931 for (
unsigned int i = 0;
i <
HOCalAEE.size(); ++
i) {
932 eventout +=
"\n (AEE, SHE) = (";
938 eventout +=
"\n nHFDigis = ";
940 for (
unsigned int i = 0;
i <
HFCalAEE.size(); ++
i) {
941 eventout +=
"\n (AEE, SHE) = (";
968 std::string MsgLoggerCat =
"GlobalDigisProducer_fillTrk";
972 eventout =
"\nGathering info:";
979 <<
"Unable to find stripDigis in event!";
983 int nStripBrl = 0, nStripFwd = 0;
985 for (DSViter = stripDigis->begin(); DSViter != stripDigis->end();
987 unsigned int id = DSViter->id;
996 for (iter = begin; iter !=
end; ++
iter) {
1020 for (iter = begin; iter !=
end; ++
iter) {
1044 for (iter = begin; iter !=
end; ++
iter) {
1064 for (iter = begin; iter !=
end; ++
iter) {
1103 eventout +=
"\n Number of BrlStripDigis collected:........ ";
1104 eventout += nStripBrl;
1108 eventout +=
"\n Number of FrwdStripDigis collected:....... ";
1109 eventout += nStripFwd;
1117 <<
"Unable to find pixelDigis in event!";
1121 int nPxlBrl = 0, nPxlFwd = 0;
1123 for (DPViter = pixelDigis->begin(); DPViter != pixelDigis->end();
1125 unsigned int id = DPViter->id;
1134 for (iter = begin; iter !=
end; ++
iter) {
1137 BRL1ADC.push_back((*iter).adc());
1138 BRL1Row.push_back((*iter).row());
1139 BRL1Col.push_back((*iter).column());
1142 BRL2ADC.push_back((*iter).adc());
1143 BRL2Row.push_back((*iter).row());
1144 BRL2Col.push_back((*iter).column());
1147 BRL3ADC.push_back((*iter).adc());
1148 BRL3Row.push_back((*iter).row());
1149 BRL3Col.push_back((*iter).column());
1157 for (iter = begin; iter !=
end; ++
iter) {
1159 if (tTopo->
pxfDisk(
id) == 1) {
1160 if (tTopo->
pxfSide(
id) == 1) {
1163 FWD1nCol.push_back((*iter).column());
1165 if (tTopo->
pxfSide(
id) == 2) {
1168 FWD1pCol.push_back((*iter).column());
1171 if (tTopo->
pxfDisk(
id) == 2) {
1172 if (tTopo->
pxfSide(
id) == 1) {
1175 FWD2nCol.push_back((*iter).column());
1177 if (tTopo->
pxfSide(
id) == 2) {
1180 FWD2pCol.push_back((*iter).column());
1188 eventout +=
"\n Number of BrlPixelDigis collected:........ ";
1189 eventout += nPxlBrl;
1193 eventout +=
"\n Number of FrwdPixelDigis collected:....... ";
1194 eventout += nPxlFwd;
1205 std::string MsgLoggerCat =
"GlobalDigisProducer_storeTrk";
1210 TString eventout(
"\n nTIBL1 = ");
1212 for (
unsigned int i = 0;
i <
TIBL1ADC.size(); ++
i) {
1213 eventout +=
"\n (ADC, strip) = (";
1219 eventout +=
"\n nTIBL2 = ";
1221 for (
unsigned int i = 0;
i <
TIBL2ADC.size(); ++
i) {
1222 eventout +=
"\n (ADC, strip) = (";
1228 eventout +=
"\n nTIBL3 = ";
1230 for (
unsigned int i = 0;
i <
TIBL3ADC.size(); ++
i) {
1231 eventout +=
"\n (ADC, strip) = (";
1237 eventout +=
"\n nTIBL4 = ";
1239 for (
unsigned int i = 0;
i <
TIBL4ADC.size(); ++
i) {
1240 eventout +=
"\n (ADC, strip) = (";
1246 eventout +=
"\n nTOBL1 = ";
1248 for (
unsigned int i = 0;
i <
TOBL1ADC.size(); ++
i) {
1249 eventout +=
"\n (ADC, strip) = (";
1255 eventout +=
"\n nTOBL2 = ";
1257 for (
unsigned int i = 0;
i <
TOBL2ADC.size(); ++
i) {
1258 eventout +=
"\n (ADC, strip) = (";
1264 eventout +=
"\n nTOBL3 = ";
1266 for (
unsigned int i = 0;
i <
TOBL3ADC.size(); ++
i) {
1267 eventout +=
"\n (ADC, strip) = (";
1273 eventout +=
"\n nTOBL4 = ";
1275 for (
unsigned int i = 0;
i <
TOBL4ADC.size(); ++
i) {
1276 eventout +=
"\n (ADC, strip) = (";
1282 eventout +=
"\n nTIDW1 = ";
1284 for (
unsigned int i = 0;
i <
TIDW1ADC.size(); ++
i) {
1285 eventout +=
"\n (ADC, strip) = (";
1291 eventout +=
"\n nTIDW2 = ";
1293 for (
unsigned int i = 0;
i <
TIDW2ADC.size(); ++
i) {
1294 eventout +=
"\n (ADC, strip) = (";
1300 eventout +=
"\n nTIDW3 = ";
1302 for (
unsigned int i = 0;
i <
TIDW3ADC.size(); ++
i) {
1303 eventout +=
"\n (ADC, strip) = (";
1309 eventout +=
"\n nTECW1 = ";
1311 for (
unsigned int i = 0;
i <
TECW1ADC.size(); ++
i) {
1312 eventout +=
"\n (ADC, strip) = (";
1318 eventout +=
"\n nTECW2 = ";
1320 for (
unsigned int i = 0;
i <
TECW2ADC.size(); ++
i) {
1321 eventout +=
"\n (ADC, strip) = (";
1327 eventout +=
"\n nTECW3 = ";
1329 for (
unsigned int i = 0;
i <
TECW3ADC.size(); ++
i) {
1330 eventout +=
"\n (ADC, strip) = (";
1336 eventout +=
"\n nTECW4 = ";
1338 for (
unsigned int i = 0;
i <
TECW4ADC.size(); ++
i) {
1339 eventout +=
"\n (ADC, strip) = (";
1345 eventout +=
"\n nTECW5 = ";
1347 for (
unsigned int i = 0;
i <
TECW5ADC.size(); ++
i) {
1348 eventout +=
"\n (ADC, strip) = (";
1354 eventout +=
"\n nTECW6 = ";
1356 for (
unsigned int i = 0;
i <
TECW6ADC.size(); ++
i) {
1357 eventout +=
"\n (ADC, strip) = (";
1363 eventout +=
"\n nTECW7 = ";
1365 for (
unsigned int i = 0;
i <
TECW7ADC.size(); ++
i) {
1366 eventout +=
"\n (ADC, strip) = (";
1372 eventout +=
"\n nTECW8 = ";
1374 for (
unsigned int i = 0;
i <
TECW8ADC.size(); ++
i) {
1375 eventout +=
"\n (ADC, strip) = (";
1383 eventout +=
"\n nBRL1 = ";
1385 for (
unsigned int i = 0;
i <
BRL1ADC.size(); ++
i) {
1386 eventout +=
"\n (ADC, row, column) = (";
1394 eventout +=
"\n nBRL2 = ";
1396 for (
unsigned int i = 0;
i <
BRL2ADC.size(); ++
i) {
1397 eventout +=
"\n (ADC, row, column) = (";
1405 eventout +=
"\n nBRL3 = ";
1407 for (
unsigned int i = 0;
i <
BRL3ADC.size(); ++
i) {
1408 eventout +=
"\n (ADC, row, column) = (";
1416 eventout +=
"\n nFWD1p = ";
1418 for (
unsigned int i = 0;
i <
FWD1pADC.size(); ++
i) {
1419 eventout +=
"\n (ADC, row, column) = (";
1427 eventout +=
"\n nFWD1p = ";
1429 for (
unsigned int i = 0;
i <
FWD1nADC.size(); ++
i) {
1430 eventout +=
"\n (ADC, row, column) = (";
1438 eventout +=
"\n nFWD1p = ";
1440 for (
unsigned int i = 0;
i <
FWD2pADC.size(); ++
i) {
1441 eventout +=
"\n (ADC, row, column) = (";
1449 eventout +=
"\n nFWD2p = ";
1451 for (
unsigned int i = 0;
i <
FWD2nADC.size(); ++
i) {
1452 eventout +=
"\n (ADC, row, column) = (";
1500 std::string MsgLoggerCat =
"GlobalDigisProducer_fillMuon";
1504 eventout =
"\nGathering info:";
1511 <<
"Unable to find dtDigis in event!";
1517 for (detUnitIt = dtDigis->begin(); detUnitIt != dtDigis->end();
1520 const DTLayerId&
id = (*detUnitIt).first;
1524 digiIt != range.second;
1529 DTWireId wireId(
id,(*digiIt).wire());
1530 if (wireId.station() == 1) {
1532 MB1Time.push_back((*digiIt).time());
1535 if (wireId.station() == 2) {
1537 MB2Time.push_back((*digiIt).time());
1540 if (wireId.station() == 3) {
1542 MB3Time.push_back((*digiIt).time());
1545 if (wireId.station() == 4) {
1547 MB4Time.push_back((*digiIt).time());
1554 eventout +=
"\n Number of DtMuonDigis collected:.......... ";
1563 <<
"Unable to find muon strips in event!";
1572 std::vector<CSCStripDigi>::const_iterator digiItr = (*j).second.first;
1573 std::vector<CSCStripDigi>::const_iterator
last = (*j).second.second;
1575 for ( ; digiItr !=
last; ++digiItr) {
1579 std::vector<int> adcCounts = digiItr->getADCCounts();
1587 if (adcCounts[5] > (pedestal + 100))
1594 eventout +=
"\n Number of CSCStripDigis collected:........ ";
1595 eventout += nStrips;
1603 <<
"Unable to find muon wires in event!";
1612 std::vector<CSCWireDigi>::const_iterator digiItr = (*j).second.first;
1613 std::vector<CSCWireDigi>::const_iterator endDigi = (*j).second.second;
1615 for ( ; digiItr != endDigi; ++digiItr) {
1623 eventout +=
"\n Number of CSCWireDigis collected:......... ";
1635 std::string MsgLoggerCat =
"GlobalDigisProducer_storeMuon";
1640 TString eventout(
"\n nMB1 = ");
1643 eventout +=
"\n (slayer, time, layer) = (";
1651 eventout +=
"\n nMB2 = ";
1654 eventout +=
"\n (slayer, time, layer) = (";
1662 eventout +=
"\n nMB3 = ";
1665 eventout +=
"\n (slayer, time, layer) = (";
1673 eventout +=
"\n nMB2 = ";
1676 eventout +=
"\n (slayer, time, layer) = (";
1686 eventout +=
"\n nCSCStrip = ";
1689 eventout +=
"\n (adc) = (";
1695 eventout +=
"\n nCSCWire = ";
1698 eventout +=
"\n (time) = (";
1720 std::string MsgLoggerCat =
"GlobalDigisProducer_clear";
1724 <<
"Clearing event holders";
void putTECW7Digis(const std::vector< float > &adc, const std::vector< int > &strip)
void putTOBL4Digis(const std::vector< float > &adc, const std::vector< int > &strip)
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 putFWD2pDigis(const std::vector< float > &adc, const std::vector< int > &row, const std::vector< int > &column)
void putTOBL1Digis(const std::vector< float > &adc, const std::vector< int > &strip)
std::vector< PCaloHit > PCaloHitContainer
std::map< uint32_t, float, std::less< uint32_t > > MapType
unsigned int tibLayer(const DetId &id) const
edm::EDGetTokenT< CSCStripDigiCollection > MuCSCStripSrc_Token_
edm::EDGetTokenT< CrossingFrame< PCaloHit > > EEHits_Token_
void putBRL3Digis(const std::vector< float > &adc, const std::vector< int > &row, const std::vector< int > &column)
static const int sdHcalOut
edm::InputTag MuCSCStripSrc_
edm::EDGetTokenT< edm::SortedCollection< HBHEDataFrame > > HBHEDigi_Token_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const ESDetId & id() const
unsigned int pxfDisk(const DetId &id) const
void putMB1Digis(const std::vector< int > &slayer, const std::vector< float > &time, const std::vector< int > &layer)
std::vector< T >::const_iterator const_iterator
unsigned long long EventNumber_t
unsigned int tidWheel(const DetId &id) const
double pedestal(int fCapId) const
get pedestal for capid=0..3
void fillTrk(edm::Event &, const edm::EventSetup &)
void putHOCalDigis(const std::vector< float > &aee, const std::vector< float > &she)
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > SiStripSrc_Token_
virtual void beginJob(void)
edm::EDGetTokenT< edm::PCaloHitContainer > HCalSrc_Token_
void putFWD2nDigis(const std::vector< float > &adc, const std::vector< int > &row, const std::vector< int > &column)
void storeECal(PGlobalDigi &)
edm::EDGetTokenT< EEDigiCollection > ECalEESrc_Token_
void putFWD1nDigis(const std::vector< float > &adc, const std::vector< int > &row, const std::vector< int > &column)
int gainId() const
get the gainId (2 bits)
void putTECW8Digis(const std::vector< float > &adc, const std::vector< int > &strip)
void putFWD1pDigis(const std::vector< float > &adc, const std::vector< int > &row, const std::vector< int > &column)
float theCSCStripPedestalSum
void putTIDW3Digis(const std::vector< float > &adc, const std::vector< int > &strip)
void putTECW3Digis(const std::vector< float > &adc, const std::vector< int > &strip)
virtual ~GlobalDigisProducer()
void putBRL1Digis(const std::vector< float > &adc, const std::vector< int > &row, const std::vector< int > &column)
uint32_t rawId() const
get the raw id
void fillMuon(edm::Event &, const edm::EventSetup &)
GlobalDigisProducer(const edm::ParameterSet &)
void putTECW6Digis(const std::vector< float > &adc, const std::vector< int > &strip)
double ECalendcapADCtoGeV_
edm::EDGetTokenT< DTDigiCollection > MuDTSrc_Token_
void putHBCalDigis(const std::vector< float > &aee, const std::vector< float > &she)
void putTECW2Digis(const std::vector< float > &adc, const std::vector< int > &strip)
void putEBCalDigis(const std::vector< int > &maxpos, const std::vector< double > &aee, const std::vector< float > &she)
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
void putTECW1Digis(const std::vector< float > &adc, const std::vector< int > &strip)
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > SiPxlSrc_Token_
static const int MAXSAMPLES
void putHFCalDigis(const std::vector< float > &aee, const std::vector< float > &she)
void putTECW4Digis(const std::vector< float > &adc, const std::vector< int > &strip)
void putTOBL2Digis(const std::vector< float > &adc, const std::vector< int > &strip)
void storeTrk(PGlobalDigi &)
double ECalbarrelADCtoGeV_
void storeHCal(PGlobalDigi &)
virtual void produce(edm::Event &, const edm::EventSetup &)
edm::EDGetTokenT< EBDigiCollection > ECalEBSrc_Token_
void putESCalDigis(const std::vector< float > &adc0, const std::vector< float > &adc1, const std::vector< float > &adc2, const std::vector< float > &she)
edm::InputTag SiStripSrc_
edm::EDGetTokenT< edm::SortedCollection< HODataFrame > > HODigi_Token_
edm::EDGetTokenT< ESDigiCollection > ECalESSrc_Token_
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
void putTECW5Digis(const std::vector< float > &adc, const std::vector< int > &strip)
void putMB4Digis(const std::vector< int > &slayer, const std::vector< float > &time, const std::vector< int > &layer)
iterator end()
Return the off-the-end iterator.
edm::EDGetTokenT< CrossingFrame< PCaloHit > > ESHits_Token_
void putBRL2Digis(const std::vector< float > &adc, const std::vector< int > &row, const std::vector< int > &column)
unsigned int pxbLayer(const DetId &id) const
edm::EDGetTokenT< edm::SortedCollection< HFDataFrame > > HFDigi_Token_
std::map< int, double, std::less< int > > ECalgainConv_
void putHECalDigis(const std::vector< float > &aee, const std::vector< float > &she)
T const * product() const
int size() const
get the size
int theCSCStripPedestalCount
T const * product() const
void putEECalDigis(const std::vector< int > &maxpos, const std::vector< double > &aee, const std::vector< float > &she)
static const int sdHcalFwd
float gain12Over6() const
std::vector< DTDigi >::const_iterator const_iterator
void putTIBL1Digis(const std::vector< float > &adc, const std::vector< int > &strip)
static const int sdHcalBrl
void putMB2Digis(const std::vector< int > &slayer, const std::vector< float > &time, const std::vector< int > &layer)
void putTIDW2Digis(const std::vector< float > &adc, const std::vector< int > &strip)
void storeMuon(PGlobalDigi &)
void putMB3Digis(const std::vector< int > &slayer, const std::vector< float > &time, const std::vector< int > &layer)
unsigned int pxfSide(const DetId &id) const
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
volatile std::atomic< bool > shutdown_flag false
void fillECal(edm::Event &, const edm::EventSetup &)
void putCSCwireDigis(const std::vector< float > &time)
collection_type::const_iterator const_iterator
collection_type::const_iterator const_iterator
void putTIBL4Digis(const std::vector< float > &adc, const std::vector< int > &strip)
edm::EDGetTokenT< CSCWireDigiCollection > MuCSCWireSrc_Token_
void putTIBL2Digis(const std::vector< float > &adc, const std::vector< int > &strip)
void putTIBL3Digis(const std::vector< float > &adc, const std::vector< int > &strip)
unsigned int tecWheel(const DetId &id) const
edm::EDGetTokenT< CrossingFrame< PCaloHit > > EBHits_Token_
static const int sdHcalEC
static const int MAXSAMPLES
void putTOBL3Digis(const std::vector< float > &adc, const std::vector< int > &strip)
edm::InputTag MuCSCWireSrc_
void putCSCstripDigis(const std::vector< float > &adc)
unsigned int tobLayer(const DetId &id) const
int adc() const
get the ADC sample (12 bits)
void putTIDW1Digis(const std::vector< float > &adc, const std::vector< int > &strip)