DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Helper class to ease the extraction of information from a G4Hit object. More...
#include <Geant4HitHandler.h>
Public Member Functions | |
Geant4HitHandler ()=delete | |
Inhibit default constructor. More... | |
Geant4HitHandler (const G4Track *t, const G4VTouchable *h) | |
Initializing constructor. More... | |
Geant4HitHandler (const Geant4HitHandler ©)=delete | |
No copy constructor. More... | |
Geant4HitHandler (Geant4HitHandler &©)=delete | |
No move constructor. More... | |
Geant4HitHandler & | operator= (const Geant4HitHandler ©)=delete |
Assignment operator inhibited. Should not be copied. More... | |
Geant4HitHandler & | operator= (Geant4HitHandler &©)=delete |
Move operator inhibited. Should not be copied. More... | |
const G4VTouchable * | touchable () const |
G4ParticleDefinition * | trackDef () const |
int | trkPdgID () const |
int | trkID () const |
Access the G4 track ID. More... | |
int | parentID () const |
Access the G4 track ID of the parent track. More... | |
double | trkTime () const |
double | trkEnergy () const |
double | trkKineEnergy () const |
int | trkStatus () const |
bool | trkAlive () const |
const G4VProcess * | trkProcess () const |
Momentum | trkMom () const |
bool | isSensitive (const G4LogicalVolume *lv) const |
bool | isSensitive (const G4VPhysicalVolume *pv) const |
Position | localToGlobal (const Position &local) const |
Coordinate transformation to global coordinates. More... | |
Position | localToGlobal (const DDSegmentation::Vector3D &local) const |
Coordinate transformation to global coordinates. More... | |
Position | localToGlobal (const G4ThreeVector &local) const |
Coordinate transformation to global coordinates in MM. More... | |
Position | localToGlobal (double x, double y, double z) const |
Coordinate transformation to global coordinates in MM. More... | |
Position | globalToLocal (double x, double y, double z) const |
Coordinate transformation to local coordinates. More... | |
Position | globalToLocal (const Position &global) const |
Coordinate transformation to local coordinates. More... | |
Position | globalToLocal (const G4ThreeVector &global) const |
Coordinate transformation to local coordinates. More... | |
G4ThreeVector | globalToLocalG4 (double x, double y, double z) const |
Coordinate transformation to local coordinates. More... | |
G4ThreeVector | globalToLocalG4 (const G4ThreeVector &loc) const |
Coordinate transformation to local coordinates with G4 objects. More... | |
Public Attributes | |
const G4Track * | track |
const G4VTouchable * | touchable_ptr |
Helper class to ease the extraction of information from a G4Hit object.
Helper/utility class to easily access Geant4 hit information. Born by lazyness: Avoid typing millions of statements!
Definition at line 42 of file Geant4HitHandler.h.
|
delete |
Inhibit default constructor.
|
inline |
Initializing constructor.
Definition at line 50 of file Geant4HitHandler.h.
|
delete |
No copy constructor.
|
delete |
No move constructor.
dd4hep::Position Geant4HitHandler::globalToLocal | ( | const G4ThreeVector & | global | ) | const |
Coordinate transformation to local coordinates.
Definition at line 58 of file Geant4HitHandler.cpp.
dd4hep::Position Geant4HitHandler::globalToLocal | ( | const Position & | global | ) | const |
Coordinate transformation to local coordinates.
Definition at line 52 of file Geant4HitHandler.cpp.
dd4hep::Position Geant4HitHandler::globalToLocal | ( | double | x, |
double | y, | ||
double | z | ||
) | const |
Coordinate transformation to local coordinates.
Definition at line 46 of file Geant4HitHandler.cpp.
G4ThreeVector Geant4HitHandler::globalToLocalG4 | ( | const G4ThreeVector & | loc | ) | const |
Coordinate transformation to local coordinates with G4 objects.
Coordinate transformation to local coordinates.
Definition at line 69 of file Geant4HitHandler.cpp.
G4ThreeVector Geant4HitHandler::globalToLocalG4 | ( | double | x, |
double | y, | ||
double | z | ||
) | const |
Coordinate transformation to local coordinates.
Definition at line 64 of file Geant4HitHandler.cpp.
|
inline |
Definition at line 102 of file Geant4HitHandler.h.
|
inline |
Definition at line 105 of file Geant4HitHandler.h.
dd4hep::Position Geant4HitHandler::localToGlobal | ( | const DDSegmentation::Vector3D & | local | ) | const |
Coordinate transformation to global coordinates.
Coordinate transformation to global coordinate.
Note: DDSegmentation points are units in CM! Conversion done inside!
Definition at line 25 of file Geant4HitHandler.cpp.
dd4hep::Position Geant4HitHandler::localToGlobal | ( | const G4ThreeVector & | local | ) | const |
Coordinate transformation to global coordinates in MM.
Coordinate transformation to global coordinates.
Definition at line 40 of file Geant4HitHandler.cpp.
dd4hep::Position Geant4HitHandler::localToGlobal | ( | const Position & | local | ) | const |
Coordinate transformation to global coordinates.
Note: Positions are in units of MM!
Definition at line 30 of file Geant4HitHandler.cpp.
dd4hep::Position Geant4HitHandler::localToGlobal | ( | double | x, |
double | y, | ||
double | z | ||
) | const |
Coordinate transformation to global coordinates in MM.
Coordinate transformation to global coordinates.
Definition at line 35 of file Geant4HitHandler.cpp.
|
delete |
Assignment operator inhibited. Should not be copied.
|
delete |
Move operator inhibited. Should not be copied.
|
inline |
Access the G4 track ID of the parent track.
Definition at line 77 of file Geant4HitHandler.h.
|
inline |
Definition at line 63 of file Geant4HitHandler.h.
|
inline |
Definition at line 66 of file Geant4HitHandler.h.
|
inline |
Definition at line 92 of file Geant4HitHandler.h.
|
inline |
Definition at line 83 of file Geant4HitHandler.h.
|
inline |
Access the G4 track ID.
Definition at line 73 of file Geant4HitHandler.h.
|
inline |
Definition at line 86 of file Geant4HitHandler.h.
|
inline |
Definition at line 98 of file Geant4HitHandler.h.
|
inline |
Definition at line 69 of file Geant4HitHandler.h.
|
inline |
Definition at line 95 of file Geant4HitHandler.h.
|
inline |
Definition at line 89 of file Geant4HitHandler.h.
|
inline |
Definition at line 80 of file Geant4HitHandler.h.
const G4VTouchable* dd4hep::sim::Geant4HitHandler::touchable_ptr |
Definition at line 46 of file Geant4HitHandler.h.
const G4Track* dd4hep::sim::Geant4HitHandler::track |
Definition at line 45 of file Geant4HitHandler.h.