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();
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;
288 <<
"Unable to find EcalDigiEB in event!";
291 if ( EcalDigiEB->size() == 0) isBarrel =
false;
296 const std::string barrelHitsName(
"EcalHitsEB");
297 iEvent.
getByLabel(
"mix",barrelHitsName,crossingFrame);
298 if (!crossingFrame.
isValid()) {
300 <<
"Unable to find cal barrel crossingFrame in event!";
306 std::auto_ptr<MixCollection<PCaloHit> >
312 = barrelHits->begin();
313 hitItr != barrelHits->end();
318 uint32_t crystid = ebid.
rawId();
319 ebSimMap[crystid] += hitItr->energy();
325 std::vector<double> ebAnalogSignal;
326 std::vector<double> ebADCCounts;
327 std::vector<double> ebADCGains;
333 for (
unsigned int digis=0; digis<EcalDigiEB->size(); ++digis)
343 int nrSamples = ebdf.
size();
350 double pedestalPreSample = 0.;
351 double pedestalPreSampleAnalog = 0.;
355 ebAnalogSignal[
sample] = 0.;
365 ebADCCounts[
sample] = (thisSample.
adc());
370 if (Emax < ebAnalogSignal[
sample]) {
371 Emax = ebAnalogSignal[
sample];
375 pedestalPreSample += ebADCCounts[
sample] ;
376 pedestalPreSampleAnalog +=
378 * ECalbarrelADCtoGeV_ ;
382 pedestalPreSample /= 3. ;
383 pedestalPreSampleAnalog /= 3. ;
386 double Erec = Emax - pedestalPreSampleAnalog
396 eventout +=
"\n Number of EBDigis collected:.............. ";
404 bool isEndCap =
true;
409 <<
"Unable to find EcalDigiEE in event!";
412 if (EcalDigiEE->size() == 0) isEndCap =
false;
417 const std::string endcapHitsName(
"EcalHitsEE");
418 iEvent.
getByLabel(
"mix",endcapHitsName,crossingFrame);
419 if (!crossingFrame.
isValid()) {
421 <<
"Unable to find cal endcap crossingFrame in event!";
427 std::auto_ptr<MixCollection<PCaloHit> >
433 = endcapHits->begin();
434 hitItr != endcapHits->end();
439 uint32_t crystid = eeid.
rawId();
440 eeSimMap[crystid] += hitItr->energy();
446 std::vector<double> eeAnalogSignal;
447 std::vector<double> eeADCCounts;
448 std::vector<double> eeADCGains;
458 for (
unsigned int digis=0; digis<EcalDigiEE->size(); ++digis){
463 int nrSamples = eedf.
size();
470 double pedestalPreSample = 0.;
471 double pedestalPreSampleAnalog = 0.;
475 eeAnalogSignal[
sample] = 0.;
486 eeADCCounts[
sample] = (thisSample.
adc());
491 if (Emax < eeAnalogSignal[
sample]) {
492 Emax = eeAnalogSignal[
sample];
496 pedestalPreSample += eeADCCounts[
sample] ;
497 pedestalPreSampleAnalog +=
499 * ECalbarrelADCtoGeV_ ;
503 pedestalPreSample /= 3. ;
504 pedestalPreSampleAnalog /= 3. ;
507 double Erec = Emax - pedestalPreSampleAnalog
517 eventout +=
"\n Number of EEDigis collected:.............. ";
525 bool isPreshower =
true;
530 <<
"Unable to find EcalDigiES in event!";
533 if (EcalDigiES->size() == 0) isPreshower =
false;
538 const std::string preshowerHitsName(
"EcalHitsES");
539 iEvent.
getByLabel(
"mix",preshowerHitsName,crossingFrame);
540 if (!crossingFrame.
isValid()) {
542 <<
"Unable to find cal preshower crossingFrame in event!";
548 std::auto_ptr<MixCollection<PCaloHit> >
554 = preshowerHits->begin();
555 hitItr != preshowerHits->end();
560 uint32_t crystid = esid.
rawId();
561 esSimMap[crystid] += hitItr->energy();
567 std::vector<double> esADCCounts;
571 for (
unsigned int digis=0; digis<EcalDigiES->size(); ++digis) {
581 int nrSamples = esdf.
size();
596 esADCCounts[
sample] = (thisSample.
adc());
606 eventout +=
"\n Number of ESDigis collected:.............. ";
619 std::string MsgLoggerCat =
"GlobalDigisProducer_storeECal";
622 TString eventout(
"\n nEBDigis = ");
625 eventout +=
"\n (maxPos, AEE, SHE) = (";
633 eventout +=
"\n nEEDigis = ";
636 eventout +=
"\n (maxPos, AEE, SHE) = (";
644 eventout +=
"\n nESDigis = ";
647 eventout +=
"\n (ADC0, ADC1, ADC2, SHE) = (";
670 std::string MsgLoggerCat =
"GlobalDigisProducer_fillHCal";
674 eventout =
"\nGathering info:";
679 if (!HCalconditions.
isValid()) {
681 <<
"Unable to find HCalconditions in event!";
684 const HcalQIEShape *shape = HCalconditions->getHcalShape();
695 <<
"Unable to find hcalHits in event!";
704 for (std::vector<PCaloHit>::const_iterator simhits = simhitResult->begin();
705 simhits != simhitResult->end();
709 uint32_t cellid = detId.
rawId();
712 fHBEnergySimHits[cellid] += simhits->energy();
715 fHEEnergySimHits[cellid] += simhits->energy();
718 fHOEnergySimHits[cellid] += simhits->energy();
721 fHFEnergySimHits[cellid] += simhits->energy();
732 <<
"Unable to find HBHEDataFrame in event!";
739 for (ihbhe = hbhe->begin(); ihbhe != hbhe->end(); ++ihbhe) {
746 HCalconditions->getHcalCalibrations(cell);
747 const HcalQIECoder *channelCoder = HCalconditions->getHcalCoder(cell);
749 coder.
adc2fC(*ihbhe, tool);
755 float fDigiSum = 0.0;
756 for (
int ii = 0; ii < tool.
size(); ++ii) {
758 int capid = (*ihbhe)[ii].capid();
759 fDigiSum += (tool[ii] - calibrations.
pedestal(capid));
763 HBCalSHE.push_back(fHBEnergySimHits[cell.rawId()]);
770 float fDigiSum = 0.0;
771 for (
int ii = 0; ii < tool.
size(); ++ii) {
772 int capid = (*ihbhe)[ii].capid();
773 fDigiSum += (tool[ii]-calibrations.
pedestal(capid));
777 HECalSHE.push_back(fHEEnergySimHits[cell.rawId()]);
783 eventout +=
"\n Number of HBDigis collected:.............. ";
788 eventout +=
"\n Number of HEDigis collected:.............. ";
799 <<
"Unable to find HODataFrame in event!";
805 for (iho = ho->begin(); iho != ho->end(); ++iho) {
812 HCalconditions->getHcalCalibrations(cell);
813 const HcalQIECoder *channelCoder = HCalconditions->getHcalCoder(cell);
818 float fDigiSum = 0.0;
819 for (
int ii = 0; ii < tool.
size(); ++ii) {
821 int capid = (*iho)[ii].capid();
822 fDigiSum += (tool[ii] - calibrations.
pedestal(capid));
826 HOCalSHE.push_back(fHOEnergySimHits[cell.rawId()]);
831 eventout +=
"\n Number of HODigis collected:.............. ";
842 <<
"Unable to find HFDataFrame in event!";
848 for (ihf = hf->begin(); ihf != hf->end(); ++
ihf) {
855 HCalconditions->getHcalCalibrations(cell);
856 const HcalQIECoder *channelCoder = HCalconditions->getHcalCoder(cell);
861 float fDigiSum = 0.0;
862 for (
int ii = 0; ii < tool.
size(); ++ii) {
864 int capid = (*ihf)[ii].capid();
865 fDigiSum += (tool[ii] - calibrations.
pedestal(capid));
869 HFCalSHE.push_back(fHFEnergySimHits[cell.rawId()]);
874 eventout +=
"\n Number of HFDigis collected:.............. ";
886 std::string MsgLoggerCat =
"GlobalDigisProducer_storeHCal";
889 TString eventout(
"\n nHBDigis = ");
891 for (
unsigned int i = 0;
i <
HBCalAEE.size(); ++
i) {
892 eventout +=
"\n (AEE, SHE) = (";
898 eventout +=
"\n nHEDigis = ";
900 for (
unsigned int i = 0;
i <
HECalAEE.size(); ++
i) {
901 eventout +=
"\n (AEE, SHE) = (";
907 eventout +=
"\n nHODigis = ";
909 for (
unsigned int i = 0;
i <
HOCalAEE.size(); ++
i) {
910 eventout +=
"\n (AEE, SHE) = (";
916 eventout +=
"\n nHFDigis = ";
918 for (
unsigned int i = 0;
i <
HFCalAEE.size(); ++
i) {
919 eventout +=
"\n (AEE, SHE) = (";
940 std::string MsgLoggerCat =
"GlobalDigisProducer_fillTrk";
944 eventout =
"\nGathering info:";
951 <<
"Unable to find stripDigis in event!";
955 int nStripBrl = 0, nStripFwd = 0;
957 for (DSViter = stripDigis->begin(); DSViter != stripDigis->end();
959 unsigned int id = DSViter->id;
968 for (iter = begin; iter !=
end; ++iter) {
970 if (tibid.
layer() == 1) {
974 if (tibid.
layer() == 2) {
978 if (tibid.
layer() == 3) {
982 if (tibid.
layer() == 4) {
992 for (iter = begin; iter !=
end; ++iter) {
994 if (tobid.
layer() == 1) {
998 if (tobid.
layer() == 2) {
1002 if (tobid.
layer() == 3) {
1006 if (tobid.
layer() == 4) {
1016 for (iter = begin; iter !=
end; ++iter) {
1018 if (tidid.
wheel() == 1) {
1022 if (tidid.
wheel() == 2) {
1026 if (tidid.
wheel() == 3) {
1036 for (iter = begin; iter !=
end; ++iter) {
1038 if (tecid.
wheel() == 1) {
1042 if (tecid.
wheel() == 2) {
1046 if (tecid.
wheel() == 3) {
1050 if (tecid.
wheel() == 4) {
1054 if (tecid.
wheel() == 5) {
1058 if (tecid.
wheel() == 6) {
1062 if (tecid.
wheel() == 7) {
1066 if (tecid.
wheel() == 8) {
1075 eventout +=
"\n Number of BrlStripDigis collected:........ ";
1076 eventout += nStripBrl;
1080 eventout +=
"\n Number of FrwdStripDigis collected:....... ";
1081 eventout += nStripFwd;
1089 <<
"Unable to find pixelDigis in event!";
1093 int nPxlBrl = 0, nPxlFwd = 0;
1095 for (DPViter = pixelDigis->begin(); DPViter != pixelDigis->end();
1097 unsigned int id = DPViter->id;
1106 for (iter = begin; iter !=
end; ++iter) {
1108 if (bdetid.
layer() == 1) {
1109 BRL1ADC.push_back((*iter).adc());
1110 BRL1Row.push_back((*iter).row());
1111 BRL1Col.push_back((*iter).column());
1113 if (bdetid.
layer() == 2) {
1114 BRL2ADC.push_back((*iter).adc());
1115 BRL2Row.push_back((*iter).row());
1116 BRL2Col.push_back((*iter).column());
1118 if (bdetid.
layer() == 3) {
1119 BRL3ADC.push_back((*iter).adc());
1120 BRL3Row.push_back((*iter).row());
1121 BRL3Col.push_back((*iter).column());
1129 for (iter = begin; iter !=
end; ++iter) {
1131 if (fdetid.
disk() == 1) {
1132 if (fdetid.
side() == 1) {
1135 FWD1nCol.push_back((*iter).column());
1137 if (fdetid.
side() == 2) {
1140 FWD1pCol.push_back((*iter).column());
1143 if (fdetid.
disk() == 2) {
1144 if (fdetid.
side() == 1) {
1147 FWD2nCol.push_back((*iter).column());
1149 if (fdetid.
side() == 2) {
1152 FWD2pCol.push_back((*iter).column());
1160 eventout +=
"\n Number of BrlPixelDigis collected:........ ";
1161 eventout += nPxlBrl;
1165 eventout +=
"\n Number of FrwdPixelDigis collected:....... ";
1166 eventout += nPxlFwd;
1177 std::string MsgLoggerCat =
"GlobalDigisProducer_storeTrk";
1182 TString eventout(
"\n nTIBL1 = ");
1184 for (
unsigned int i = 0;
i <
TIBL1ADC.size(); ++
i) {
1185 eventout +=
"\n (ADC, strip) = (";
1191 eventout +=
"\n nTIBL2 = ";
1193 for (
unsigned int i = 0;
i <
TIBL2ADC.size(); ++
i) {
1194 eventout +=
"\n (ADC, strip) = (";
1200 eventout +=
"\n nTIBL3 = ";
1202 for (
unsigned int i = 0;
i <
TIBL3ADC.size(); ++
i) {
1203 eventout +=
"\n (ADC, strip) = (";
1209 eventout +=
"\n nTIBL4 = ";
1211 for (
unsigned int i = 0;
i <
TIBL4ADC.size(); ++
i) {
1212 eventout +=
"\n (ADC, strip) = (";
1218 eventout +=
"\n nTOBL1 = ";
1220 for (
unsigned int i = 0;
i <
TOBL1ADC.size(); ++
i) {
1221 eventout +=
"\n (ADC, strip) = (";
1227 eventout +=
"\n nTOBL2 = ";
1229 for (
unsigned int i = 0;
i <
TOBL2ADC.size(); ++
i) {
1230 eventout +=
"\n (ADC, strip) = (";
1236 eventout +=
"\n nTOBL3 = ";
1238 for (
unsigned int i = 0;
i <
TOBL3ADC.size(); ++
i) {
1239 eventout +=
"\n (ADC, strip) = (";
1245 eventout +=
"\n nTOBL4 = ";
1247 for (
unsigned int i = 0;
i <
TOBL4ADC.size(); ++
i) {
1248 eventout +=
"\n (ADC, strip) = (";
1254 eventout +=
"\n nTIDW1 = ";
1256 for (
unsigned int i = 0;
i <
TIDW1ADC.size(); ++
i) {
1257 eventout +=
"\n (ADC, strip) = (";
1263 eventout +=
"\n nTIDW2 = ";
1265 for (
unsigned int i = 0;
i <
TIDW2ADC.size(); ++
i) {
1266 eventout +=
"\n (ADC, strip) = (";
1272 eventout +=
"\n nTIDW3 = ";
1274 for (
unsigned int i = 0;
i <
TIDW3ADC.size(); ++
i) {
1275 eventout +=
"\n (ADC, strip) = (";
1281 eventout +=
"\n nTECW1 = ";
1283 for (
unsigned int i = 0;
i <
TECW1ADC.size(); ++
i) {
1284 eventout +=
"\n (ADC, strip) = (";
1290 eventout +=
"\n nTECW2 = ";
1292 for (
unsigned int i = 0;
i <
TECW2ADC.size(); ++
i) {
1293 eventout +=
"\n (ADC, strip) = (";
1299 eventout +=
"\n nTECW3 = ";
1301 for (
unsigned int i = 0;
i <
TECW3ADC.size(); ++
i) {
1302 eventout +=
"\n (ADC, strip) = (";
1308 eventout +=
"\n nTECW4 = ";
1310 for (
unsigned int i = 0;
i <
TECW4ADC.size(); ++
i) {
1311 eventout +=
"\n (ADC, strip) = (";
1317 eventout +=
"\n nTECW5 = ";
1319 for (
unsigned int i = 0;
i <
TECW5ADC.size(); ++
i) {
1320 eventout +=
"\n (ADC, strip) = (";
1326 eventout +=
"\n nTECW6 = ";
1328 for (
unsigned int i = 0;
i <
TECW6ADC.size(); ++
i) {
1329 eventout +=
"\n (ADC, strip) = (";
1335 eventout +=
"\n nTECW7 = ";
1337 for (
unsigned int i = 0;
i <
TECW7ADC.size(); ++
i) {
1338 eventout +=
"\n (ADC, strip) = (";
1344 eventout +=
"\n nTECW8 = ";
1346 for (
unsigned int i = 0;
i <
TECW8ADC.size(); ++
i) {
1347 eventout +=
"\n (ADC, strip) = (";
1355 eventout +=
"\n nBRL1 = ";
1357 for (
unsigned int i = 0;
i <
BRL1ADC.size(); ++
i) {
1358 eventout +=
"\n (ADC, row, column) = (";
1366 eventout +=
"\n nBRL2 = ";
1368 for (
unsigned int i = 0;
i <
BRL2ADC.size(); ++
i) {
1369 eventout +=
"\n (ADC, row, column) = (";
1377 eventout +=
"\n nBRL3 = ";
1379 for (
unsigned int i = 0;
i <
BRL3ADC.size(); ++
i) {
1380 eventout +=
"\n (ADC, row, column) = (";
1388 eventout +=
"\n nFWD1p = ";
1390 for (
unsigned int i = 0;
i <
FWD1pADC.size(); ++
i) {
1391 eventout +=
"\n (ADC, row, column) = (";
1399 eventout +=
"\n nFWD1p = ";
1401 for (
unsigned int i = 0;
i <
FWD1nADC.size(); ++
i) {
1402 eventout +=
"\n (ADC, row, column) = (";
1410 eventout +=
"\n nFWD1p = ";
1412 for (
unsigned int i = 0;
i <
FWD2pADC.size(); ++
i) {
1413 eventout +=
"\n (ADC, row, column) = (";
1421 eventout +=
"\n nFWD2p = ";
1423 for (
unsigned int i = 0;
i <
FWD2nADC.size(); ++
i) {
1424 eventout +=
"\n (ADC, row, column) = (";
1472 std::string MsgLoggerCat =
"GlobalDigisProducer_fillMuon";
1476 eventout =
"\nGathering info:";
1483 <<
"Unable to find dtDigis in event!";
1489 for (detUnitIt = dtDigis->begin(); detUnitIt != dtDigis->end();
1492 const DTLayerId&
id = (*detUnitIt).first;
1496 digiIt != range.second;
1501 DTWireId wireId(
id,(*digiIt).wire());
1502 if (wireId.station() == 1) {
1504 MB1Time.push_back((*digiIt).time());
1507 if (wireId.station() == 2) {
1509 MB2Time.push_back((*digiIt).time());
1512 if (wireId.station() == 3) {
1514 MB3Time.push_back((*digiIt).time());
1517 if (wireId.station() == 4) {
1519 MB4Time.push_back((*digiIt).time());
1526 eventout +=
"\n Number of DtMuonDigis collected:.......... ";
1535 <<
"Unable to find muon strips in event!";
1544 std::vector<CSCStripDigi>::const_iterator digiItr = (*j).second.first;
1545 std::vector<CSCStripDigi>::const_iterator
last = (*j).second.second;
1547 for ( ; digiItr !=
last; ++digiItr) {
1551 std::vector<int> adcCounts = digiItr->getADCCounts();
1559 if (adcCounts[5] > (pedestal + 100))
1566 eventout +=
"\n Number of CSCStripDigis collected:........ ";
1567 eventout += nStrips;
1575 <<
"Unable to find muon wires in event!";
1584 std::vector<CSCWireDigi>::const_iterator digiItr = (*j).second.first;
1585 std::vector<CSCWireDigi>::const_iterator endDigi = (*j).second.second;
1587 for ( ; digiItr != endDigi; ++digiItr) {
1595 eventout +=
"\n Number of CSCWireDigis collected:......... ";
1607 std::string MsgLoggerCat =
"GlobalDigisProducer_storeMuon";
1612 TString eventout(
"\n nMB1 = ");
1615 eventout +=
"\n (slayer, time, layer) = (";
1623 eventout +=
"\n nMB2 = ";
1626 eventout +=
"\n (slayer, time, layer) = (";
1634 eventout +=
"\n nMB3 = ";
1637 eventout +=
"\n (slayer, time, layer) = (";
1645 eventout +=
"\n nMB2 = ";
1648 eventout +=
"\n (slayer, time, layer) = (";
1658 eventout +=
"\n nCSCStrip = ";
1661 eventout +=
"\n (adc) = (";
1667 eventout +=
"\n nCSCWire = ";
1670 eventout +=
"\n (time) = (";
1692 std::string MsgLoggerCat =
"GlobalDigisProducer_clear";
1696 <<
"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)