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