18 getAllProvenances(
false),
19 printProvenanceInfo(
false),
20 theCSCStripPedestalSum(0),
21 theCSCStripPedestalCount(0),
23 std::string MsgLoggerCat =
"GlobalDigisProducer_GlobalDigisProducer";
75 produces<PGlobalDigi>(
label);
79 edm::LogInfo(MsgLoggerCat) <<
"\n===============================\n" 80 <<
"Initialized as EDProducer with parameter values:\n" 81 <<
" Name = " <<
fName <<
"\n" 84 <<
" Label = " <<
label <<
"\n" 99 <<
"===============================\n";
115 std::string MsgLoggerCat =
"GlobalDigisProducer_beginJob";
124 delete defaultRatios;
141 std::string MsgLoggerCat =
"GlobalDigisProducer_endJob";
143 edm::LogInfo(MsgLoggerCat) <<
"Terminating having processed " <<
count <<
" events.";
148 std::string MsgLoggerCat =
"GlobalDigisProducer_produce";
168 edm::LogInfo(MsgLoggerCat) <<
"Processing run " << nrun <<
", event " <<
nevt <<
" (" <<
count <<
" events total)";
181 std::vector<const edm::StableProvenance *> AllProv;
182 iEvent.getAllStableProvenance(AllProv);
185 edm::LogInfo(MsgLoggerCat) <<
"Number of Provenances = " << AllProv.size();
188 TString eventout(
"\nProvenance info:\n");
190 for (
unsigned int i = 0;
i < AllProv.size(); ++
i) {
191 eventout +=
"\n ******************************";
192 eventout +=
"\n Module : ";
194 eventout += AllProv[
i]->moduleLabel();
195 eventout +=
"\n ProductID : ";
197 eventout += AllProv[
i]->productID().id();
198 eventout +=
"\n ClassName : ";
200 eventout += AllProv[
i]->className();
201 eventout +=
"\n InstanceName : ";
203 eventout += AllProv[
i]->productInstanceName();
204 eventout +=
"\n BranchName : ";
206 eventout += AllProv[
i]->branchName();
208 eventout +=
"\n ******************************\n";
226 edm::LogInfo(MsgLoggerCat) <<
"Done gathering data from event.";
229 std::unique_ptr<PGlobalDigi> pOut(
new PGlobalDigi);
251 std::string MsgLoggerCat =
"GlobalDigisProducer_fillECal";
255 eventout =
"\nGathering info:";
274 edm::LogWarning(MsgLoggerCat) <<
"Unable to find EcalDigiEB in event!";
277 if (EcalDigiEB->
empty())
283 if (!crossingFrame.
isValid()) {
284 edm::LogWarning(MsgLoggerCat) <<
"Unable to find cal barrel crossingFrame in event!";
297 uint32_t crystid = ebid.
rawId();
298 ebSimMap[crystid] += hitItr->energy();
304 std::vector<double> ebAnalogSignal;
305 std::vector<double> ebADCCounts;
306 std::vector<double> ebADCGains;
312 for (
unsigned int digis = 0; digis < EcalDigiEB->
size(); ++digis) {
321 int nrSamples = ebdf.
size();
328 double pedestalPreSampleAnalog = 0.;
332 ebAnalogSignal[
sample] = 0.;
342 ebADCCounts[
sample] = (thisSample.
adc());
345 if (Emax < ebAnalogSignal[
sample]) {
346 Emax = ebAnalogSignal[
sample];
353 pedestalPreSampleAnalog /= 3.;
365 eventout +=
"\n Number of EBDigis collected:.............. ";
373 bool isEndCap =
true;
377 edm::LogWarning(MsgLoggerCat) <<
"Unable to find EcalDigiEE in event!";
380 if (EcalDigiEE->
empty())
386 if (!crossingFrame.
isValid()) {
387 edm::LogWarning(MsgLoggerCat) <<
"Unable to find cal endcap crossingFrame in event!";
400 uint32_t crystid = eeid.
rawId();
401 eeSimMap[crystid] += hitItr->energy();
407 std::vector<double> eeAnalogSignal;
408 std::vector<double> eeADCCounts;
409 std::vector<double> eeADCGains;
419 for (
unsigned int digis = 0; digis < EcalDigiEE->
size(); ++digis) {
423 int nrSamples = eedf.
size();
430 double pedestalPreSampleAnalog = 0.;
434 eeAnalogSignal[
sample] = 0.;
445 eeADCCounts[
sample] = (thisSample.
adc());
448 if (Emax < eeAnalogSignal[
sample]) {
449 Emax = eeAnalogSignal[
sample];
456 pedestalPreSampleAnalog /= 3.;
468 eventout +=
"\n Number of EEDigis collected:.............. ";
476 bool isPreshower =
true;
480 edm::LogWarning(MsgLoggerCat) <<
"Unable to find EcalDigiES in event!";
483 if (EcalDigiES->
empty())
489 if (!crossingFrame.
isValid()) {
490 edm::LogWarning(MsgLoggerCat) <<
"Unable to find cal preshower crossingFrame in event!";
503 uint32_t crystid = esid.
rawId();
504 esSimMap[crystid] += hitItr->energy();
510 std::vector<double> esADCCounts;
514 for (
unsigned int digis = 0; digis < EcalDigiES->
size(); ++digis) {
523 int nrSamples = esdf.
size();
537 esADCCounts[
sample] = (thisSample.
adc());
547 eventout +=
"\n Number of ESDigis collected:.............. ";
559 std::string MsgLoggerCat =
"GlobalDigisProducer_storeECal";
562 TString eventout(
"\n nEBDigis = ");
565 eventout +=
"\n (maxPos, AEE, SHE) = (";
573 eventout +=
"\n nEEDigis = ";
576 eventout +=
"\n (maxPos, AEE, SHE) = (";
584 eventout +=
"\n nESDigis = ";
587 eventout +=
"\n (ADC0, ADC1, ADC2, SHE) = (";
608 std::string MsgLoggerCat =
"GlobalDigisProducer_fillHCal";
612 eventout =
"\nGathering info:";
616 if (!HCalconditions.isValid()) {
617 edm::LogWarning(MsgLoggerCat) <<
"Unable to find HCalconditions in event!";
638 for (std::vector<PCaloHit>::const_iterator
simhits = simhitResult->begin();
simhits != simhitResult->end();
641 uint32_t cellid =
detId.rawId();
644 fHBEnergySimHits[cellid] +=
simhits->energy();
647 fHEEnergySimHits[cellid] +=
simhits->energy();
650 fHOEnergySimHits[cellid] +=
simhits->energy();
653 fHFEnergySimHits[cellid] +=
simhits->energy();
662 if (!
hbhe.isValid()) {
663 edm::LogWarning(MsgLoggerCat) <<
"Unable to find HBHEDataFrame in event!";
670 for (ihbhe =
hbhe->begin(); ihbhe !=
hbhe->end(); ++ihbhe) {
676 const HcalQIECoder *channelCoder = HCalconditions->getHcalCoder(cell);
680 coder.
adc2fC(*ihbhe, tool);
685 float fDigiSum = 0.0;
688 int capid = (*ihbhe)[
ii].capid();
693 HBCalSHE.push_back(fHBEnergySimHits[cell.rawId()]);
699 float fDigiSum = 0.0;
701 int capid = (*ihbhe)[
ii].capid();
706 HECalSHE.push_back(fHEEnergySimHits[cell.rawId()]);
712 eventout +=
"\n Number of HBDigis collected:.............. ";
717 eventout +=
"\n Number of HEDigis collected:.............. ";
727 edm::LogWarning(MsgLoggerCat) <<
"Unable to find HODataFrame in event!";
733 for (iho =
ho->begin(); iho !=
ho->end(); ++iho) {
739 const HcalQIECoder *channelCoder = HCalconditions->getHcalCoder(cell);
746 float fDigiSum = 0.0;
749 int capid = (*iho)[
ii].capid();
754 HOCalSHE.push_back(fHOEnergySimHits[cell.rawId()]);
759 eventout +=
"\n Number of HODigis collected:.............. ";
769 edm::LogWarning(MsgLoggerCat) <<
"Unable to find HFDataFrame in event!";
775 for (ihf =
hf->begin(); ihf !=
hf->end(); ++ihf) {
781 const HcalQIECoder *channelCoder = HCalconditions->getHcalCoder(cell);
788 float fDigiSum = 0.0;
791 int capid = (*ihf)[
ii].capid();
796 HFCalSHE.push_back(fHFEnergySimHits[cell.rawId()]);
801 eventout +=
"\n Number of HFDigis collected:.............. ";
812 std::string MsgLoggerCat =
"GlobalDigisProducer_storeHCal";
815 TString eventout(
"\n nHBDigis = ");
817 for (
unsigned int i = 0;
i <
HBCalAEE.size(); ++
i) {
818 eventout +=
"\n (AEE, SHE) = (";
824 eventout +=
"\n nHEDigis = ";
826 for (
unsigned int i = 0;
i <
HECalAEE.size(); ++
i) {
827 eventout +=
"\n (AEE, SHE) = (";
833 eventout +=
"\n nHODigis = ";
835 for (
unsigned int i = 0;
i <
HOCalAEE.size(); ++
i) {
836 eventout +=
"\n (AEE, SHE) = (";
842 eventout +=
"\n nHFDigis = ";
844 for (
unsigned int i = 0;
i <
HFCalAEE.size(); ++
i) {
845 eventout +=
"\n (AEE, SHE) = (";
867 std::string MsgLoggerCat =
"GlobalDigisProducer_fillTrk";
871 eventout =
"\nGathering info:";
877 edm::LogWarning(MsgLoggerCat) <<
"Unable to find stripDigis in event!";
881 int nStripBrl = 0, nStripFwd = 0;
883 for (DSViter = stripDigis->begin(); DSViter != stripDigis->end(); ++DSViter) {
884 unsigned int id = DSViter->id;
892 for (iter =
begin; iter !=
end; ++iter) {
915 for (iter =
begin; iter !=
end; ++iter) {
938 for (iter =
begin; iter !=
end; ++iter) {
957 for (iter =
begin; iter !=
end; ++iter) {
996 eventout +=
"\n Number of BrlStripDigis collected:........ ";
997 eventout += nStripBrl;
1001 eventout +=
"\n Number of FrwdStripDigis collected:....... ";
1002 eventout += nStripFwd;
1009 edm::LogWarning(MsgLoggerCat) <<
"Unable to find pixelDigis in event!";
1013 int nPxlBrl = 0, nPxlFwd = 0;
1015 for (DPViter = pixelDigis->begin(); DPViter != pixelDigis->end(); ++DPViter) {
1016 unsigned int id = DPViter->id;
1024 for (iter =
begin; iter !=
end; ++iter) {
1027 BRL1ADC.push_back((*iter).adc());
1028 BRL1Row.push_back((*iter).row());
1029 BRL1Col.push_back((*iter).column());
1032 BRL2ADC.push_back((*iter).adc());
1033 BRL2Row.push_back((*iter).row());
1034 BRL2Col.push_back((*iter).column());
1037 BRL3ADC.push_back((*iter).adc());
1038 BRL3Row.push_back((*iter).row());
1039 BRL3Col.push_back((*iter).column());
1046 for (iter =
begin; iter !=
end; ++iter) {
1048 if (tTopo->
pxfDisk(
id) == 1) {
1049 if (tTopo->
pxfSide(
id) == 1) {
1052 FWD1nCol.push_back((*iter).column());
1054 if (tTopo->
pxfSide(
id) == 2) {
1057 FWD1pCol.push_back((*iter).column());
1060 if (tTopo->
pxfDisk(
id) == 2) {
1061 if (tTopo->
pxfSide(
id) == 1) {
1064 FWD2nCol.push_back((*iter).column());
1066 if (tTopo->
pxfSide(
id) == 2) {
1069 FWD2pCol.push_back((*iter).column());
1077 eventout +=
"\n Number of BrlPixelDigis collected:........ ";
1078 eventout += nPxlBrl;
1082 eventout +=
"\n Number of FrwdPixelDigis collected:....... ";
1083 eventout += nPxlFwd;
1093 std::string MsgLoggerCat =
"GlobalDigisProducer_storeTrk";
1097 TString eventout(
"\n nTIBL1 = ");
1099 for (
unsigned int i = 0;
i <
TIBL1ADC.size(); ++
i) {
1100 eventout +=
"\n (ADC, strip) = (";
1106 eventout +=
"\n nTIBL2 = ";
1108 for (
unsigned int i = 0;
i <
TIBL2ADC.size(); ++
i) {
1109 eventout +=
"\n (ADC, strip) = (";
1115 eventout +=
"\n nTIBL3 = ";
1117 for (
unsigned int i = 0;
i <
TIBL3ADC.size(); ++
i) {
1118 eventout +=
"\n (ADC, strip) = (";
1124 eventout +=
"\n nTIBL4 = ";
1126 for (
unsigned int i = 0;
i <
TIBL4ADC.size(); ++
i) {
1127 eventout +=
"\n (ADC, strip) = (";
1133 eventout +=
"\n nTOBL1 = ";
1135 for (
unsigned int i = 0;
i <
TOBL1ADC.size(); ++
i) {
1136 eventout +=
"\n (ADC, strip) = (";
1142 eventout +=
"\n nTOBL2 = ";
1144 for (
unsigned int i = 0;
i <
TOBL2ADC.size(); ++
i) {
1145 eventout +=
"\n (ADC, strip) = (";
1151 eventout +=
"\n nTOBL3 = ";
1153 for (
unsigned int i = 0;
i <
TOBL3ADC.size(); ++
i) {
1154 eventout +=
"\n (ADC, strip) = (";
1160 eventout +=
"\n nTOBL4 = ";
1162 for (
unsigned int i = 0;
i <
TOBL4ADC.size(); ++
i) {
1163 eventout +=
"\n (ADC, strip) = (";
1169 eventout +=
"\n nTIDW1 = ";
1171 for (
unsigned int i = 0;
i <
TIDW1ADC.size(); ++
i) {
1172 eventout +=
"\n (ADC, strip) = (";
1178 eventout +=
"\n nTIDW2 = ";
1180 for (
unsigned int i = 0;
i <
TIDW2ADC.size(); ++
i) {
1181 eventout +=
"\n (ADC, strip) = (";
1187 eventout +=
"\n nTIDW3 = ";
1189 for (
unsigned int i = 0;
i <
TIDW3ADC.size(); ++
i) {
1190 eventout +=
"\n (ADC, strip) = (";
1196 eventout +=
"\n nTECW1 = ";
1198 for (
unsigned int i = 0;
i <
TECW1ADC.size(); ++
i) {
1199 eventout +=
"\n (ADC, strip) = (";
1205 eventout +=
"\n nTECW2 = ";
1207 for (
unsigned int i = 0;
i <
TECW2ADC.size(); ++
i) {
1208 eventout +=
"\n (ADC, strip) = (";
1214 eventout +=
"\n nTECW3 = ";
1216 for (
unsigned int i = 0;
i <
TECW3ADC.size(); ++
i) {
1217 eventout +=
"\n (ADC, strip) = (";
1223 eventout +=
"\n nTECW4 = ";
1225 for (
unsigned int i = 0;
i <
TECW4ADC.size(); ++
i) {
1226 eventout +=
"\n (ADC, strip) = (";
1232 eventout +=
"\n nTECW5 = ";
1234 for (
unsigned int i = 0;
i <
TECW5ADC.size(); ++
i) {
1235 eventout +=
"\n (ADC, strip) = (";
1241 eventout +=
"\n nTECW6 = ";
1243 for (
unsigned int i = 0;
i <
TECW6ADC.size(); ++
i) {
1244 eventout +=
"\n (ADC, strip) = (";
1250 eventout +=
"\n nTECW7 = ";
1252 for (
unsigned int i = 0;
i <
TECW7ADC.size(); ++
i) {
1253 eventout +=
"\n (ADC, strip) = (";
1259 eventout +=
"\n nTECW8 = ";
1261 for (
unsigned int i = 0;
i <
TECW8ADC.size(); ++
i) {
1262 eventout +=
"\n (ADC, strip) = (";
1270 eventout +=
"\n nBRL1 = ";
1272 for (
unsigned int i = 0;
i <
BRL1ADC.size(); ++
i) {
1273 eventout +=
"\n (ADC, row, column) = (";
1281 eventout +=
"\n nBRL2 = ";
1283 for (
unsigned int i = 0;
i <
BRL2ADC.size(); ++
i) {
1284 eventout +=
"\n (ADC, row, column) = (";
1292 eventout +=
"\n nBRL3 = ";
1294 for (
unsigned int i = 0;
i <
BRL3ADC.size(); ++
i) {
1295 eventout +=
"\n (ADC, row, column) = (";
1303 eventout +=
"\n nFWD1p = ";
1305 for (
unsigned int i = 0;
i <
FWD1pADC.size(); ++
i) {
1306 eventout +=
"\n (ADC, row, column) = (";
1314 eventout +=
"\n nFWD1p = ";
1316 for (
unsigned int i = 0;
i <
FWD1nADC.size(); ++
i) {
1317 eventout +=
"\n (ADC, row, column) = (";
1325 eventout +=
"\n nFWD1p = ";
1327 for (
unsigned int i = 0;
i <
FWD2pADC.size(); ++
i) {
1328 eventout +=
"\n (ADC, row, column) = (";
1336 eventout +=
"\n nFWD2p = ";
1338 for (
unsigned int i = 0;
i <
FWD2nADC.size(); ++
i) {
1339 eventout +=
"\n (ADC, row, column) = (";
1385 std::string MsgLoggerCat =
"GlobalDigisProducer_fillMuon";
1389 eventout =
"\nGathering info:";
1401 for (detUnitIt = dtDigis->begin(); detUnitIt != dtDigis->end(); ++detUnitIt) {
1402 const DTLayerId &
id = (*detUnitIt).first;
1408 DTWireId wireId(
id, (*digiIt).wire());
1409 if (wireId.station() == 1) {
1411 MB1Time.push_back((*digiIt).time());
1414 if (wireId.station() == 2) {
1416 MB2Time.push_back((*digiIt).time());
1419 if (wireId.station() == 3) {
1421 MB3Time.push_back((*digiIt).time());
1424 if (wireId.station() == 4) {
1426 MB4Time.push_back((*digiIt).time());
1433 eventout +=
"\n Number of DtMuonDigis collected:.......... ";
1441 edm::LogWarning(MsgLoggerCat) <<
"Unable to find muon strips in event!";
1447 std::vector<CSCStripDigi>::const_iterator digiItr = (*j).second.first;
1448 std::vector<CSCStripDigi>::const_iterator
last = (*j).second.second;
1450 for (; digiItr !=
last; ++digiItr) {
1454 std::vector<int> adcCounts = digiItr->getADCCounts();
1462 if (adcCounts[5] > (
pedestal + 100))
1469 eventout +=
"\n Number of CSCStripDigis collected:........ ";
1476 if (!
wires.isValid()) {
1477 edm::LogWarning(MsgLoggerCat) <<
"Unable to find muon wires in event!";
1483 std::vector<CSCWireDigi>::const_iterator digiItr = (*j).second.first;
1484 std::vector<CSCWireDigi>::const_iterator endDigi = (*j).second.second;
1486 for (; digiItr != endDigi; ++digiItr) {
1494 eventout +=
"\n Number of CSCWireDigis collected:......... ";
1505 std::string MsgLoggerCat =
"GlobalDigisProducer_storeMuon";
1509 TString eventout(
"\n nMB1 = ");
1512 eventout +=
"\n (slayer, time, layer) = (";
1520 eventout +=
"\n nMB2 = ";
1523 eventout +=
"\n (slayer, time, layer) = (";
1531 eventout +=
"\n nMB3 = ";
1534 eventout +=
"\n (slayer, time, layer) = (";
1542 eventout +=
"\n nMB2 = ";
1545 eventout +=
"\n (slayer, time, layer) = (";
1555 eventout +=
"\n nCSCStrip = ";
1558 eventout +=
"\n (adc) = (";
1564 eventout +=
"\n nCSCWire = ";
1567 eventout +=
"\n (time) = (";
1588 std::string MsgLoggerCat =
"GlobalDigisProducer_clear";
1591 edm::LogInfo(MsgLoggerCat) <<
"Clearing event holders";
void putTECW7Digis(const std::vector< float > &adc, const std::vector< int > &strip)
const ESDetId & id() const
void putTOBL4Digis(const std::vector< float > &adc, const std::vector< int > &strip)
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)
T getParameter(std::string const &) const
unsigned int tobLayer(const DetId &id) const
unsigned int pxbLayer(const DetId &id) const
std::vector< PCaloHit > PCaloHitContainer
edm::ESGetToken< HcalDbService, HcalDbRecord > hcaldbToken_
int size() const
get the size
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
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_
unsigned int tidWheel(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
T const * product() 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
std::map< uint32_t, float, std::less< uint32_t > > MapType
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_
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)
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)
nStrips
1.2 is to make the matching window safely the two nearest strips 0.35 is the size of an ME0 chamber i...
~GlobalDigisProducer() override
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)
void putBRL1Digis(const std::vector< float > &adc, const std::vector< int > &row, const std::vector< int > &column)
T getUntrackedParameter(std::string const &, T const &) const
int adc() const
get the ADC sample (singed 16 bits)
void fillMuon(edm::Event &, const edm::EventSetup &)
void adc2fC(const HBHEDataFrame &df, CaloSamples &lf) const override
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
void putTECW1Digis(const std::vector< float > &adc, const std::vector< int > &strip)
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > SiPxlSrc_Token_
static const int MAXSAMPLES
void produce(edm::Event &, const edm::EventSetup &) override
void beginJob(void) override
void putHFCalDigis(const std::vector< float > &aee, const std::vector< float > &she)
unsigned int pxfDisk(const DetId &id) const
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 &)
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_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) 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.
edm::EDGetTokenT< CrossingFrame< PCaloHit > > ESHits_Token_
void putBRL2Digis(const std::vector< float > &adc, const std::vector< int > &row, const std::vector< int > &column)
void reserve(size_t isize)
Log< level::Info, false > LogInfo
edm::EDGetTokenT< edm::SortedCollection< HFDataFrame > > HFDigi_Token_
float gain12Over6() const
unsigned int pxfSide(const DetId &id) const
std::map< int, double, std::less< int > > ECalgainConv_
void putHECalDigis(const std::vector< float > &aee, const std::vector< float > &she)
constexpr uint32_t rawId() const
get the raw id
int theCSCStripPedestalCount
std::pair< const_iterator, const_iterator > Range
void putEECalDigis(const std::vector< int > &maxpos, const std::vector< double > &aee, const std::vector< float > &she)
static const int sdHcalFwd
std::vector< DigiType >::const_iterator const_iterator
edm::ESGetToken< EcalADCToGeVConstant, EcalADCToGeVConstantRcd > ecalADCtoGevToken_
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)
int adc() const
get the ADC sample (12 bits)
void storeMuon(PGlobalDigi &)
void putMB3Digis(const std::vector< int > &slayer, const std::vector< float > &time, const std::vector< int > &layer)
strips
#turn off noise in all subdetectors simHcalUnsuppressedDigis.doNoise = False mix.digitizers.hcal.doNoise = False simEcalUnsuppressedDigis.doNoise = False mix.digitizers.ecal.doNoise = False simEcalUnsuppressedDigis.doESNoise = False simSiPixelDigis.AddNoise = False mix.digitizers.pixel.AddNoise = False simSiStripDigis.Noise = False mix.digitizers.strip.AddNoise = False
void fillHCal(edm::Event &, const edm::EventSetup &)
iterator begin()
Return an iterator to the first DetSet.
unsigned int tibLayer(const DetId &id) const
static const int sdPxlFwd
static constexpr int MAXSAMPLES
void fillECal(edm::Event &, const edm::EventSetup &)
Log< level::Warning, false > LogWarning
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)
edm::EDGetTokenT< CrossingFrame< PCaloHit > > EBHits_Token_
static const int sdHcalEC
void putTOBL3Digis(const std::vector< float > &adc, const std::vector< int > &strip)
edm::InputTag MuCSCWireSrc_
int gainId() const
get the gainId (2 bits)
void putCSCstripDigis(const std::vector< float > &adc)
void putTIDW1Digis(const std::vector< float > &adc, const std::vector< int > &strip)
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_