12 GEMDigi digi(d.first, d.second);
13 digis.insertDigi(
GEMDetId(rollDetId), digi);
23 std::pair<unsigned int, int> digi(strip, bx);
27 std::map<int, float> simTrackChargeMap;
28 std::map<int, EncodedEventId> eventIdMap;
29 float totalCharge = 0;
30 for(
auto hitItr = channelHitItr.first; hitItr != channelHitItr.second; ++hitItr)
34 if(hit ==
nullptr)
continue;
36 int simTrackId = hit->
trackId();
39 auto chargeItr = simTrackChargeMap.find(simTrackId);
40 if( chargeItr == simTrackChargeMap.end() )
42 simTrackChargeMap[simTrackId] =
charge;
43 eventIdMap[simTrackId] = hit->
eventId();
47 chargeItr->second +=
charge;
52 for(
auto &
charge: simTrackChargeMap)
54 int simTrackId =
charge.first;
virtual void fillDigis(int rollDetId, GEMDigiCollection &digis)
void push_back(const T &t)
DetectorHitMap detectorHitMap_
std::set< std::pair< int, int > > strips_
EncodedEventId eventId() const
virtual void addLinks(unsigned int strip, int bx)
unsigned int trackId() const
StripDigiSimLinks stripDigiSimLinks_