11 digis.insertDigi(
ME0DetId(rollDetId), digi);
19 std::pair<unsigned int, int> digi(
strip,
bx);
23 std::map<int, float> simTrackChargeMap;
24 std::map<int, EncodedEventId> eventIdMap;
25 float totalCharge(0.);
26 for (
auto hitItr = channelHitItr.first; hitItr != channelHitItr.second; ++hitItr) {
32 int simTrackId(
hit->trackId());
35 auto chargeItr = simTrackChargeMap.find(simTrackId);
36 if (chargeItr == simTrackChargeMap.end()) {
37 simTrackChargeMap[simTrackId] =
charge;
38 eventIdMap[simTrackId] =
hit->eventId();
40 chargeItr->second +=
charge;
45 for (
const auto &
charge : simTrackChargeMap) {
46 const int simTrackId(
charge.first);
53 std::pair<unsigned int, int> digi(
strip,
bx);
55 for (
auto hitItr = channelHitItr.first; hitItr != channelHitItr.second; ++hitItr) {
63 hit->momentumAtEntry(),