CMS 3D CMS Logo

TrackInformationExtractor.h
Go to the documentation of this file.
1 #ifndef SimG4Core_TrackInformationExtractor_H
2 #define SimG4Core_TrackInformationExtractor_H
3 
5 
6 class G4Track;
7 
20 public:
24  const TrackInformation& operator()(const G4Track& gtk) const;
25  const TrackInformation& operator()(const G4Track* gtk) const { return operator()(*gtk); }
29  TrackInformation& operator()(G4Track& gtk) const;
30  TrackInformation& operator()(G4Track* gtk) const { return operator()(*gtk); }
31 
32 private:
33  void missing(const G4Track& gtk) const;
34  void wrongType() const;
35 };
36 
37 #endif
TrackInformation & operator()(G4Track *gtk) const
void missing(const G4Track &gtk) const
const TrackInformation & operator()(const G4Track *gtk) const
const TrackInformation & operator()(const G4Track &gtk) const