16 printProvenanceInfo(
false), theCSCStripPedestalSum(0),
17 theCSCStripPedestalCount(0),
count(0)
19 std::string MsgLoggerCat =
"GlobalDigisProducer_GlobalDigisProducer";
29 m_Prov.getUntrackedParameter<
bool>(
"GetAllProvenances");
31 m_Prov.getUntrackedParameter<
bool>(
"PrintProvenanceInfo");
50 produces<PGlobalDigi>(
label);
55 <<
"\n===============================\n"
56 <<
"Initialized as EDProducer with parameter values:\n"
57 <<
" Name = " <<
fName <<
"\n"
58 <<
" Verbosity = " << verbosity <<
"\n"
59 <<
" Frequency = " << frequency <<
"\n"
60 <<
" Label = " << label <<
"\n"
61 <<
" GetProv = " << getAllProvenances <<
"\n"
62 <<
" PrintProv = " << printProvenanceInfo <<
"\n"
63 <<
" ECalEBSrc = " << ECalEBSrc_.label()
64 <<
":" << ECalEBSrc_.instance() <<
"\n"
65 <<
" ECalEESrc = " << ECalEESrc_.
label()
66 <<
":" << ECalEESrc_.
instance() <<
"\n"
67 <<
" ECalESSrc = " << ECalESSrc_.
label()
68 <<
":" << ECalESSrc_.
instance() <<
"\n"
69 <<
" HCalSrc = " << HCalSrc_.
label()
70 <<
":" << HCalSrc_.
instance() <<
"\n"
71 <<
" HCalDigi = " << HCalDigi_.
label()
72 <<
":" << HCalDigi_.
instance() <<
"\n"
73 <<
" SiStripSrc = " << SiStripSrc_.
label()
74 <<
":" << SiStripSrc_.
instance() <<
"\n"
75 <<
" SiPixelSrc = " << SiPxlSrc_.
label()
76 <<
":" << SiPxlSrc_.
instance() <<
"\n"
77 <<
" MuDTSrc = " << MuDTSrc_.
label()
78 <<
":" << MuDTSrc_.
instance() <<
"\n"
79 <<
" MuCSCStripSrc = " << MuCSCStripSrc_.
label()
80 <<
":" << MuCSCStripSrc_.
instance() <<
"\n"
81 <<
" MuCSCWireSrc = " << MuCSCWireSrc_.
label()
82 <<
":" << MuCSCWireSrc_.
instance() <<
"\n"
83 <<
"===============================\n";
103 std::string MsgLoggerCat =
"GlobalDigisProducer_beginJob";
117 delete defaultRatios;
124 <<
"Modified Calorimeter gain constants: g0 = " <<
ECalgainConv_[0]
139 std::string MsgLoggerCat =
"GlobalDigisProducer_endJob";
142 <<
"Terminating having processed " <<
count <<
" events.";
149 std::string MsgLoggerCat =
"GlobalDigisProducer_produce";
164 <<
"Modified Calorimeter ADCtoGeV constants: barrel = "
170 int nrun = iEvent.
id().
run();
175 <<
"Processing run " << nrun <<
", event " << nevt
176 <<
" (" <<
count <<
" events total)";
180 <<
"Processing run " << nrun <<
", event " << nevt
181 <<
" (" <<
count <<
" events total)";
191 std::vector<const edm::Provenance*> AllProv;
196 <<
"Number of Provenances = " << AllProv.size();
199 TString eventout(
"\nProvenance info:\n");
201 for (
unsigned int i = 0;
i < AllProv.size(); ++
i) {
202 eventout +=
"\n ******************************";
203 eventout +=
"\n Module : ";
205 eventout += AllProv[
i]->moduleLabel();
206 eventout +=
"\n ProductID : ";
208 eventout += AllProv[
i]->productID().id();
209 eventout +=
"\n ClassName : ";
211 eventout += AllProv[
i]->className();
212 eventout +=
"\n InstanceName : ";
214 eventout += AllProv[
i]->productInstanceName();
215 eventout +=
"\n BranchName : ";
217 eventout += AllProv[
i]->branchName();
219 eventout +=
"\n ******************************\n";
238 <<
"Done gathering data from event.";
245 <<
"Saving event contents:";
266 std::string MsgLoggerCat =
"GlobalDigisProducer_fillECal";
270 eventout =
"\nGathering info:";
285 bool isBarrel =
true;
290 <<
"Unable to find EcalDigiEB in event!";
293 if ( EcalDigiEB->size() == 0) isBarrel =
false;
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.;
357 ebAnalogSignal[
sample] = 0.;
367 ebADCCounts[
sample] = (thisSample.
adc());
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;
411 <<
"Unable to find EcalDigiEE in event!";
414 if (EcalDigiEE->size() == 0) isEndCap =
false;
420 iEvent.
getByLabel(
"mix",endcapHitsName,crossingFrame);
421 if (!crossingFrame.
isValid()) {
423 <<
"Unable to find cal endcap crossingFrame in event!";
429 std::auto_ptr<MixCollection<PCaloHit> >
435 = endcapHits->begin();
436 hitItr != endcapHits->end();
441 uint32_t crystid = eeid.
rawId();
442 eeSimMap[crystid] += hitItr->energy();
448 std::vector<double> eeAnalogSignal;
449 std::vector<double> eeADCCounts;
450 std::vector<double> eeADCGains;
460 for (
unsigned int digis=0; digis<EcalDigiEE->size(); ++digis){
465 int nrSamples = eedf.
size();
472 double pedestalPreSample = 0.;
473 double pedestalPreSampleAnalog = 0.;
477 eeAnalogSignal[
sample] = 0.;
488 eeADCCounts[
sample] = (thisSample.
adc());
493 if (Emax < eeAnalogSignal[
sample]) {
494 Emax = eeAnalogSignal[
sample];
498 pedestalPreSample += eeADCCounts[
sample] ;
499 pedestalPreSampleAnalog +=
501 * ECalbarrelADCtoGeV_ ;
505 pedestalPreSample /= 3. ;
506 pedestalPreSampleAnalog /= 3. ;
509 double Erec = Emax - pedestalPreSampleAnalog
519 eventout +=
"\n Number of EEDigis collected:.............. ";
527 bool isPreshower =
true;
532 <<
"Unable to find EcalDigiES in event!";
535 if (EcalDigiES->size() == 0) isPreshower =
false;
541 iEvent.
getByLabel(
"mix",preshowerHitsName,crossingFrame);
542 if (!crossingFrame.
isValid()) {
544 <<
"Unable to find cal preshower crossingFrame in event!";
550 std::auto_ptr<MixCollection<PCaloHit> >
556 = preshowerHits->begin();
557 hitItr != preshowerHits->end();
562 uint32_t crystid = esid.
rawId();
563 esSimMap[crystid] += hitItr->energy();
569 std::vector<double> esADCCounts;
573 for (
unsigned int digis=0; digis<EcalDigiES->size(); ++digis) {
583 int nrSamples = esdf.
size();
598 esADCCounts[
sample] = (thisSample.
adc());
608 eventout +=
"\n Number of ESDigis collected:.............. ";
621 std::string MsgLoggerCat =
"GlobalDigisProducer_storeECal";
624 TString eventout(
"\n nEBDigis = ");
627 eventout +=
"\n (maxPos, AEE, SHE) = (";
635 eventout +=
"\n nEEDigis = ";
638 eventout +=
"\n (maxPos, AEE, SHE) = (";
646 eventout +=
"\n nESDigis = ";
649 eventout +=
"\n (ADC0, ADC1, ADC2, SHE) = (";
672 std::string MsgLoggerCat =
"GlobalDigisProducer_fillHCal";
676 eventout =
"\nGathering info:";
681 if (!HCalconditions.
isValid()) {
683 <<
"Unable to find HCalconditions in event!";
696 <<
"Unable to find hcalHits in event!";
705 for (std::vector<PCaloHit>::const_iterator simhits = simhitResult->begin();
706 simhits != simhitResult->end();
710 uint32_t cellid = detId.
rawId();
713 fHBEnergySimHits[cellid] += simhits->energy();
716 fHEEnergySimHits[cellid] += simhits->energy();
719 fHOEnergySimHits[cellid] += simhits->energy();
722 fHFEnergySimHits[cellid] += simhits->energy();
733 <<
"Unable to find HBHEDataFrame in event!";
740 for (ihbhe = hbhe->begin(); ihbhe != hbhe->end(); ++ihbhe) {
747 HCalconditions->getHcalCalibrations(cell);
748 const HcalQIECoder *channelCoder = HCalconditions->getHcalCoder(cell);
749 const HcalQIEShape *shape = HCalconditions->getHcalShape(channelCoder);
752 coder.
adc2fC(*ihbhe, tool);
758 float fDigiSum = 0.0;
761 int capid = (*ihbhe)[
ii].capid();
762 fDigiSum += (tool[
ii] - calibrations.
pedestal(capid));
766 HBCalSHE.push_back(fHBEnergySimHits[cell.rawId()]);
773 float fDigiSum = 0.0;
775 int capid = (*ihbhe)[
ii].capid();
776 fDigiSum += (tool[
ii]-calibrations.
pedestal(capid));
780 HECalSHE.push_back(fHEEnergySimHits[cell.rawId()]);
786 eventout +=
"\n Number of HBDigis collected:.............. ";
791 eventout +=
"\n Number of HEDigis collected:.............. ";
802 <<
"Unable to find HODataFrame in event!";
808 for (iho = ho->begin(); iho != ho->end(); ++iho) {
815 HCalconditions->getHcalCalibrations(cell);
816 const HcalQIECoder *channelCoder = HCalconditions->getHcalCoder(cell);
817 const HcalQIEShape *shape = HCalconditions->getHcalShape(channelCoder);
823 float fDigiSum = 0.0;
826 int capid = (*iho)[
ii].capid();
827 fDigiSum += (tool[
ii] - calibrations.
pedestal(capid));
831 HOCalSHE.push_back(fHOEnergySimHits[cell.rawId()]);
836 eventout +=
"\n Number of HODigis collected:.............. ";
847 <<
"Unable to find HFDataFrame in event!";
853 for (ihf = hf->begin(); ihf != hf->end(); ++
ihf) {
860 HCalconditions->getHcalCalibrations(cell);
861 const HcalQIECoder *channelCoder = HCalconditions->getHcalCoder(cell);
862 const HcalQIEShape *shape = HCalconditions->getHcalShape(channelCoder);
868 float fDigiSum = 0.0;
871 int capid = (*ihf)[
ii].capid();
872 fDigiSum += (tool[
ii] - calibrations.
pedestal(capid));
876 HFCalSHE.push_back(fHFEnergySimHits[cell.rawId()]);
881 eventout +=
"\n Number of HFDigis collected:.............. ";
893 std::string MsgLoggerCat =
"GlobalDigisProducer_storeHCal";
896 TString eventout(
"\n nHBDigis = ");
898 for (
unsigned int i = 0;
i <
HBCalAEE.size(); ++
i) {
899 eventout +=
"\n (AEE, SHE) = (";
905 eventout +=
"\n nHEDigis = ";
907 for (
unsigned int i = 0;
i <
HECalAEE.size(); ++
i) {
908 eventout +=
"\n (AEE, SHE) = (";
914 eventout +=
"\n nHODigis = ";
916 for (
unsigned int i = 0;
i <
HOCalAEE.size(); ++
i) {
917 eventout +=
"\n (AEE, SHE) = (";
923 eventout +=
"\n nHFDigis = ";
925 for (
unsigned int i = 0;
i <
HFCalAEE.size(); ++
i) {
926 eventout +=
"\n (AEE, SHE) = (";
953 std::string MsgLoggerCat =
"GlobalDigisProducer_fillTrk";
957 eventout =
"\nGathering info:";
964 <<
"Unable to find stripDigis in event!";
968 int nStripBrl = 0, nStripFwd = 0;
970 for (DSViter = stripDigis->begin(); DSViter != stripDigis->end();
972 unsigned int id = DSViter->id;
981 for (iter = begin; iter !=
end; ++iter) {
1005 for (iter = begin; iter !=
end; ++iter) {
1029 for (iter = begin; iter !=
end; ++iter) {
1049 for (iter = begin; iter !=
end; ++iter) {
1088 eventout +=
"\n Number of BrlStripDigis collected:........ ";
1089 eventout += nStripBrl;
1093 eventout +=
"\n Number of FrwdStripDigis collected:....... ";
1094 eventout += nStripFwd;
1102 <<
"Unable to find pixelDigis in event!";
1106 int nPxlBrl = 0, nPxlFwd = 0;
1108 for (DPViter = pixelDigis->begin(); DPViter != pixelDigis->end();
1110 unsigned int id = DPViter->id;
1119 for (iter = begin; iter !=
end; ++iter) {
1122 BRL1ADC.push_back((*iter).adc());
1123 BRL1Row.push_back((*iter).row());
1124 BRL1Col.push_back((*iter).column());
1127 BRL2ADC.push_back((*iter).adc());
1128 BRL2Row.push_back((*iter).row());
1129 BRL2Col.push_back((*iter).column());
1132 BRL3ADC.push_back((*iter).adc());
1133 BRL3Row.push_back((*iter).row());
1134 BRL3Col.push_back((*iter).column());
1142 for (iter = begin; iter !=
end; ++iter) {
1144 if (tTopo->
pxfDisk(
id) == 1) {
1145 if (tTopo->
pxfSide(
id) == 1) {
1148 FWD1nCol.push_back((*iter).column());
1150 if (tTopo->
pxfSide(
id) == 2) {
1153 FWD1pCol.push_back((*iter).column());
1156 if (tTopo->
pxfDisk(
id) == 2) {
1157 if (tTopo->
pxfSide(
id) == 1) {
1160 FWD2nCol.push_back((*iter).column());
1162 if (tTopo->
pxfSide(
id) == 2) {
1165 FWD2pCol.push_back((*iter).column());
1173 eventout +=
"\n Number of BrlPixelDigis collected:........ ";
1174 eventout += nPxlBrl;
1178 eventout +=
"\n Number of FrwdPixelDigis collected:....... ";
1179 eventout += nPxlFwd;
1190 std::string MsgLoggerCat =
"GlobalDigisProducer_storeTrk";
1195 TString eventout(
"\n nTIBL1 = ");
1197 for (
unsigned int i = 0;
i <
TIBL1ADC.size(); ++
i) {
1198 eventout +=
"\n (ADC, strip) = (";
1204 eventout +=
"\n nTIBL2 = ";
1206 for (
unsigned int i = 0;
i <
TIBL2ADC.size(); ++
i) {
1207 eventout +=
"\n (ADC, strip) = (";
1213 eventout +=
"\n nTIBL3 = ";
1215 for (
unsigned int i = 0;
i <
TIBL3ADC.size(); ++
i) {
1216 eventout +=
"\n (ADC, strip) = (";
1222 eventout +=
"\n nTIBL4 = ";
1224 for (
unsigned int i = 0;
i <
TIBL4ADC.size(); ++
i) {
1225 eventout +=
"\n (ADC, strip) = (";
1231 eventout +=
"\n nTOBL1 = ";
1233 for (
unsigned int i = 0;
i <
TOBL1ADC.size(); ++
i) {
1234 eventout +=
"\n (ADC, strip) = (";
1240 eventout +=
"\n nTOBL2 = ";
1242 for (
unsigned int i = 0;
i <
TOBL2ADC.size(); ++
i) {
1243 eventout +=
"\n (ADC, strip) = (";
1249 eventout +=
"\n nTOBL3 = ";
1251 for (
unsigned int i = 0;
i <
TOBL3ADC.size(); ++
i) {
1252 eventout +=
"\n (ADC, strip) = (";
1258 eventout +=
"\n nTOBL4 = ";
1260 for (
unsigned int i = 0;
i <
TOBL4ADC.size(); ++
i) {
1261 eventout +=
"\n (ADC, strip) = (";
1267 eventout +=
"\n nTIDW1 = ";
1269 for (
unsigned int i = 0;
i <
TIDW1ADC.size(); ++
i) {
1270 eventout +=
"\n (ADC, strip) = (";
1276 eventout +=
"\n nTIDW2 = ";
1278 for (
unsigned int i = 0;
i <
TIDW2ADC.size(); ++
i) {
1279 eventout +=
"\n (ADC, strip) = (";
1285 eventout +=
"\n nTIDW3 = ";
1287 for (
unsigned int i = 0;
i <
TIDW3ADC.size(); ++
i) {
1288 eventout +=
"\n (ADC, strip) = (";
1294 eventout +=
"\n nTECW1 = ";
1296 for (
unsigned int i = 0;
i <
TECW1ADC.size(); ++
i) {
1297 eventout +=
"\n (ADC, strip) = (";
1303 eventout +=
"\n nTECW2 = ";
1305 for (
unsigned int i = 0;
i <
TECW2ADC.size(); ++
i) {
1306 eventout +=
"\n (ADC, strip) = (";
1312 eventout +=
"\n nTECW3 = ";
1314 for (
unsigned int i = 0;
i <
TECW3ADC.size(); ++
i) {
1315 eventout +=
"\n (ADC, strip) = (";
1321 eventout +=
"\n nTECW4 = ";
1323 for (
unsigned int i = 0;
i <
TECW4ADC.size(); ++
i) {
1324 eventout +=
"\n (ADC, strip) = (";
1330 eventout +=
"\n nTECW5 = ";
1332 for (
unsigned int i = 0;
i <
TECW5ADC.size(); ++
i) {
1333 eventout +=
"\n (ADC, strip) = (";
1339 eventout +=
"\n nTECW6 = ";
1341 for (
unsigned int i = 0;
i <
TECW6ADC.size(); ++
i) {
1342 eventout +=
"\n (ADC, strip) = (";
1348 eventout +=
"\n nTECW7 = ";
1350 for (
unsigned int i = 0;
i <
TECW7ADC.size(); ++
i) {
1351 eventout +=
"\n (ADC, strip) = (";
1357 eventout +=
"\n nTECW8 = ";
1359 for (
unsigned int i = 0;
i <
TECW8ADC.size(); ++
i) {
1360 eventout +=
"\n (ADC, strip) = (";
1368 eventout +=
"\n nBRL1 = ";
1370 for (
unsigned int i = 0;
i <
BRL1ADC.size(); ++
i) {
1371 eventout +=
"\n (ADC, row, column) = (";
1379 eventout +=
"\n nBRL2 = ";
1381 for (
unsigned int i = 0;
i <
BRL2ADC.size(); ++
i) {
1382 eventout +=
"\n (ADC, row, column) = (";
1390 eventout +=
"\n nBRL3 = ";
1392 for (
unsigned int i = 0;
i <
BRL3ADC.size(); ++
i) {
1393 eventout +=
"\n (ADC, row, column) = (";
1401 eventout +=
"\n nFWD1p = ";
1403 for (
unsigned int i = 0;
i <
FWD1pADC.size(); ++
i) {
1404 eventout +=
"\n (ADC, row, column) = (";
1412 eventout +=
"\n nFWD1p = ";
1414 for (
unsigned int i = 0;
i <
FWD1nADC.size(); ++
i) {
1415 eventout +=
"\n (ADC, row, column) = (";
1423 eventout +=
"\n nFWD1p = ";
1425 for (
unsigned int i = 0;
i <
FWD2pADC.size(); ++
i) {
1426 eventout +=
"\n (ADC, row, column) = (";
1434 eventout +=
"\n nFWD2p = ";
1436 for (
unsigned int i = 0;
i <
FWD2nADC.size(); ++
i) {
1437 eventout +=
"\n (ADC, row, column) = (";
1485 std::string MsgLoggerCat =
"GlobalDigisProducer_fillMuon";
1489 eventout =
"\nGathering info:";
1496 <<
"Unable to find dtDigis in event!";
1502 for (detUnitIt = dtDigis->begin(); detUnitIt != dtDigis->end();
1505 const DTLayerId&
id = (*detUnitIt).first;
1509 digiIt != range.second;
1514 DTWireId wireId(
id,(*digiIt).wire());
1515 if (wireId.station() == 1) {
1517 MB1Time.push_back((*digiIt).time());
1520 if (wireId.station() == 2) {
1522 MB2Time.push_back((*digiIt).time());
1525 if (wireId.station() == 3) {
1527 MB3Time.push_back((*digiIt).time());
1530 if (wireId.station() == 4) {
1532 MB4Time.push_back((*digiIt).time());
1539 eventout +=
"\n Number of DtMuonDigis collected:.......... ";
1548 <<
"Unable to find muon strips in event!";
1557 std::vector<CSCStripDigi>::const_iterator digiItr = (*j).second.first;
1558 std::vector<CSCStripDigi>::const_iterator
last = (*j).second.second;
1560 for ( ; digiItr !=
last; ++digiItr) {
1564 std::vector<int> adcCounts = digiItr->getADCCounts();
1572 if (adcCounts[5] > (pedestal + 100))
1579 eventout +=
"\n Number of CSCStripDigis collected:........ ";
1580 eventout += nStrips;
1588 <<
"Unable to find muon wires in event!";
1597 std::vector<CSCWireDigi>::const_iterator digiItr = (*j).second.first;
1598 std::vector<CSCWireDigi>::const_iterator endDigi = (*j).second.second;
1600 for ( ; digiItr != endDigi; ++digiItr) {
1608 eventout +=
"\n Number of CSCWireDigis collected:......... ";
1620 std::string MsgLoggerCat =
"GlobalDigisProducer_storeMuon";
1625 TString eventout(
"\n nMB1 = ");
1628 eventout +=
"\n (slayer, time, layer) = (";
1636 eventout +=
"\n nMB2 = ";
1639 eventout +=
"\n (slayer, time, layer) = (";
1647 eventout +=
"\n nMB3 = ";
1650 eventout +=
"\n (slayer, time, layer) = (";
1658 eventout +=
"\n nMB2 = ";
1661 eventout +=
"\n (slayer, time, layer) = (";
1671 eventout +=
"\n nCSCStrip = ";
1674 eventout +=
"\n (adc) = (";
1680 eventout +=
"\n nCSCWire = ";
1683 eventout +=
"\n (time) = (";
1705 std::string MsgLoggerCat =
"GlobalDigisProducer_clear";
1709 <<
"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
void putBRL3Digis(const std::vector< float > &adc, const std::vector< int > &row, const std::vector< int > &column)
static const int sdHcalOut
edm::InputTag MuCSCStripSrc_
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 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)
virtual void beginJob(void)
void putFWD2nDigis(const std::vector< float > &adc, const std::vector< int > &row, const std::vector< int > &column)
void storeECal(PGlobalDigi &)
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_
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)
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 &)
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_
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
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.
void putBRL2Digis(const std::vector< float > &adc, const std::vector< int > &row, const std::vector< int > &column)
unsigned int pxbLayer(const DetId &id) const
std::map< int, double, std::less< int > > ECalgainConv_
void putHECalDigis(const std::vector< float > &aee, const std::vector< float > &she)
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< DigiType >::const_iterator const_iterator
void putTIBL1Digis(const std::vector< float > &adc, const std::vector< int > &strip)
T const * product() const
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
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)
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
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)