61 return (!track || theMap.find(track) != theMap.end());
68 TrkIDKmap::iterator entry = theMap.find(track);
69 if (entry != theMap.end()) theMap.erase(entry);
76 if (track) theMap[track] = K;
83 TrkIDKmap::const_iterator entry = theMap.find(track);
84 return (entry != theMap.end()) ? entry->second : nullVec;
void RemoveTrack(const G4Track *track)
G4bool Find(const G4Track *track) const
void SetK(const G4Track *track, const G4ThreeVector &K)
Definition of the G4PhononTrackMap base class.
const G4ThreeVector & GetK(const G4Track *track) const
static G4ThreadLocal G4PhononTrackMap * theTrackMap
static G4PhononTrackMap * GetPhononTrackMap()