|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
13 #ifndef DDG4_GEANT4HITHANDLER_H
14 #define DDG4_GEANT4HITHANDLER_H
20 #include <G4EmSaturation.hh>
21 #include <G4Version.hh>
30 class Geant4HitHandler;
67 return track->GetDefinition();
70 return track->GetDefinition()->GetPDGEncoding();
74 return track->GetTrackID();
78 return track->GetParentID();
81 return track->GetGlobalTime();
84 return track->GetTotalEnergy();
87 return track->GetKineticEnergy();
90 return track->GetTrackStatus();
93 return track->GetTrackStatus() == fAlive;
96 return track->GetCreatorProcess();
99 const G4ThreeVector& p =
track->GetMomentum();
100 return Momentum(p.x(), p.y(), p.z());
103 return lv ? (0 != lv->GetSensitiveDetector()) :
false;
106 return pv ?
isSensitive(pv->GetLogicalVolume()) :
false;
135 #endif // DDG4_GEANT4HITHANDLER_H
Geant4HitHandler & operator=(const Geant4HitHandler ©)=delete
Assignment operator inhibited. Should not be copied.
Simple container for a physics vector.
Geant4HitHandler(Geant4HitHandler &©)=delete
No move constructor.
G4ThreeVector globalToLocalG4(double x, double y, double z) const
Coordinate transformation to local coordinates.
int trkID() const
Access the G4 track ID.
G4ParticleDefinition * trackDef() const
const G4VTouchable * touchable_ptr
Geant4HitHandler(const G4Track *t, const G4VTouchable *h)
Initializing constructor.
bool isSensitive(const G4VPhysicalVolume *pv) const
Geant4HitHandler()=delete
Inhibit default constructor.
Helper class to ease the extraction of information from a G4Hit object.
const G4VTouchable * touchable() const
Position globalToLocal(double x, double y, double z) const
Coordinate transformation to local coordinates.
Position localToGlobal(const Position &local) const
Coordinate transformation to global coordinates.
bool isSensitive(const G4LogicalVolume *lv) const
ROOT::Math::XYZVector Position
Geant4HitHandler(const Geant4HitHandler ©)=delete
No copy constructor.
Geant4HitHandler & operator=(Geant4HitHandler &©)=delete
Move operator inhibited. Should not be copied.
Namespace for the AIDA detector description toolkit.
const G4VProcess * trkProcess() const
int parentID() const
Access the G4 track ID of the parent track.
double trkKineEnergy() const