File tree Expand file tree Collapse file tree
SimG4Core/Notification/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,6 +111,10 @@ int MtdSD::getTrackID(const G4Track* aTrack) {
111111 if (!trkInfo->storeTrack ()) {
112112 theID = trkInfo->idLastStoredAncestor ();
113113 }
114+ if (theID >= static_cast <int >(PSimHit::k_tidOffset)) {
115+ edm::LogError (" MtdSim" ) << " SimTrack ID " << theID << " exceeds maximum allowed by PSimHit identifier"
116+ << PSimHit::k_tidOffset << " unreliable MTD hit type" ;
117+ }
114118 if (rname == " FastTimerRegionSensBTL" ) {
115119 if (trkInfo->isInTrkFromBackscattering ()) {
116120 theID = PSimHit::addTrackIdOffset (theID, k_idFromCaloOffset);
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ void SimTrackManager::reallyStoreTracks() {
176176 }
177177
178178 if (id >= static_cast <int >(PSimHit::k_tidOffset)) {
179- throw cms::Exception (" SimTrackManager::reallyStoreTracks" )
179+ edm::LogWarning (" SimTrackManager::reallyStoreTracks" )
180180 << " SimTrack ID " << id << " exceeds maximum allowed by PSimHit identifier" << PSimHit::k_tidOffset;
181181 }
182182 TmpSimTrack* g4simtrack =
You can’t perform that action at this time.
0 commit comments