9 if (
d.second == -999)
continue;
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;
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 const int simTrackId(
charge.first);
63 std::pair<unsigned int, int > digi(strip, bx);
64 std::pair<DetectorHitMap::iterator, DetectorHitMap::iterator> channelHitItr
67 for( DetectorHitMap::iterator hitItr = channelHitItr.first; hitItr != channelHitItr.second; ++hitItr)
71 if (hit ==
nullptr)
continue;
void push_back(const T &t)
LocalVector momentumAtEntry() const
The momentum of the track that produced the hit, at entry point.
GEMDigiSimLinks theGemDigiSimLinks_
float timeOfFlight() const
EncodedEventId eventId() const
void addLinks(unsigned int strip, int bx)
creates links from Digi to SimTrack
unsigned short processType() const
float energyLoss() const
The energy deposit in the PSimHit, in ???.
std::set< std::pair< int, int > > strips_
unsigned int trackId() const
void fillDigis(int rollDetId, GEMDigiCollection &)
DetectorHitMap detectorHitMap_
StripDigiSimLinks stripDigiSimLinks_
void addLinksWithPartId(unsigned int strip, int bx)
Local3DPoint entryPoint() const
Entry point in the local Det frame.
unsigned int detUnitId() const