60 return (!track || theMap.find(track) != theMap.end());
67 TrkIDKmap::iterator entry = theMap.find(track);
68 if (entry != theMap.end()) theMap.erase(entry);
75 if (track) theMap[track] = K;
82 TrkIDKmap::const_iterator entry = theMap.find(track);
83 return (entry != theMap.end()) ? entry->second : nullVec;
void RemoveTrack(const G4Track *track)
const G4ThreeVector & GetK(const G4Track *track) const
G4bool Find(const G4Track *track) const
static G4ThreadLocal G4PhononTrackMap * theTrackMap
static G4PhononTrackMap * GetPhononTrackMap()
void SetK(const G4Track *track, const G4ThreeVector &K)