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) {
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) {
void push_back(const T &t)
void fillDigis(int rollDetId, ME0DigiCollection &)
StripDigiSimLinks stripDigiSimLinks_
void addLinks(unsigned int strip, int bx)
creates links from Digi to SimTrack
EncodedEventId eventId() const
void addLinksWithPartId(unsigned int strip, int bx)
ME0DigiSimLinks theME0DigiSimLinks_
std::set< std::pair< int, int > > strips_
GEMDigiSimLink ME0DigiSimLink
unsigned int trackId() const
DetectorHitMap detectorHitMap_