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 &)
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
float timeOfFlight() const
EncodedEventId eventId() const
void addLinksWithPartId(unsigned int strip, int bx)
ME0DigiSimLinks theME0DigiSimLinks_
std::set< std::pair< int, int > > strips_
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