#include <TrackInformationExtractor.h>
Public Member Functions | |
const TrackInformation & | operator() (const G4Track >k) const |
const TrackInformation & | operator() (const G4Track *gtk) const |
TrackInformation & | operator() (G4Track >k) const |
TrackInformation & | operator() (G4Track *gtk) const |
Private Member Functions | |
void | missing (const G4Track >k) const |
void | wrongType () const |
Provides safe access to the TrackInformation part of a G4Track. If the G4Track pointer/reference is const, a const reference to the TrackInformation is returned, else a non-const reference is returned. The TrackInformationExtractor checks for the existance of TrackInformation and for the validity of the dynamic_cast; It will throw an excepton if it is not possible to return TrackInformation, but it will do it's best to satisfy the request (in some cases it may even create the TrackInformation on-the-fly).
Definition at line 20 of file TrackInformationExtractor.h.
|
inlineprivate |
Definition at line 34 of file TrackInformationExtractor.h.
Referenced by operator()().
const TrackInformation & TrackInformationExtractor::operator() | ( | const G4Track & | gtk | ) | const |
for a const G4Track pointer/reference a const TrackInformation& is returned.
Definition at line 5 of file TrackInformationExtractor.cc.
References missing(), and wrongType().
|
inline |
Definition at line 26 of file TrackInformationExtractor.h.
References operator()().
Referenced by operator()().
TrackInformation & TrackInformationExtractor::operator() | ( | G4Track & | gtk | ) | const |
for a non-const G4Track pointer/reference the TrackInformation& is also non-const.
Definition at line 15 of file TrackInformationExtractor.cc.
References missing(), and wrongType().
|
inline |
Definition at line 31 of file TrackInformationExtractor.h.
References operator()().
Referenced by operator()().
|
inlineprivate |
Definition at line 37 of file TrackInformationExtractor.h.
Referenced by operator()().