DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Helper class to ease the extraction of information from a G4Step object. More...
#include <Geant4StepHandler.h>
Public Member Functions | |
Geant4StepHandler ()=delete | |
Inhibit default constructor. More... | |
Geant4StepHandler (const G4Step *s) | |
Initializing constructor. More... | |
Geant4StepHandler (const Geant4StepHandler ©)=delete | |
No copy constructor. More... | |
Geant4StepHandler (Geant4StepHandler &©)=delete | |
No move constructor. More... | |
Geant4StepHandler & | operator= (const Geant4StepHandler ©)=delete |
Assignment operator inhibited. Should not be copied. More... | |
Geant4StepHandler & | operator= (Geant4StepHandler &©)=delete |
Move operator inhibited. Should not be copied. More... | |
const char * | preStepStatus () const |
Returns the pre-step status in form of a string. More... | |
const char * | postStepStatus () const |
Returns the post-step status in form of a string. More... | |
double | totalEnergy () const |
Returns total energy deposit. More... | |
Position | prePos () const |
Returns the pre-step position. More... | |
const G4ThreeVector & | prePosG4 () const |
Returns the pre-step position as a G4ThreeVector. More... | |
Position | postPos () const |
Returns the post-step position. More... | |
const G4ThreeVector & | postPosG4 () const |
Returns the post-step position as a G4ThreeVector. More... | |
G4ThreeVector | avgPositionG4 () const |
Average position vector of the step. More... | |
Position | avgPosition () const |
Average position vector of the step. More... | |
Position | direction () const |
Direction calculated from the post- and pre-position ofthe step. More... | |
Momentum | preMom () const |
Momentum | postMom () const |
double | deposit () const |
double | stepLength () const |
const G4VTouchable * | preTouchable () const |
const G4VTouchable * | postTouchable () const |
const char * | volName (const G4StepPoint *p, const char *undefined="") const |
G4VPhysicalVolume * | volume (const G4StepPoint *p) const |
G4VSolid * | solid (const G4StepPoint *p) const |
G4VPhysicalVolume * | physvol (const G4StepPoint *p) const |
G4LogicalVolume * | logvol (const G4StepPoint *p) const |
G4VSensitiveDetector * | sd (const G4StepPoint *p) const |
std::string | sdName (const G4StepPoint *p, const std::string &undefined="") const |
bool | isSensitive (const G4StepPoint *point) const |
G4VPhysicalVolume * | preVolume () const |
G4VSensitiveDetector * | preSD () const |
G4VPhysicalVolume * | postVolume () const |
G4VSensitiveDetector * | postSD () const |
bool | firstInVolume () const |
bool | lastInVolume () const |
double | birkAttenuation () const |
Apply BirksLaw. More... | |
void | doApplyBirksLaw (void) |
Set applyBirksLaw to ture. More... | |
Public Member Functions inherited from dd4hep::sim::Geant4HitHandler | |
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... | |
Static Public Member Functions | |
static const char * | stepStatus (G4StepStatus status) |
Returns the step status (argument) in form of a string. More... | |
Public Attributes | |
const G4Step * | step |
G4StepPoint * | pre |
G4StepPoint * | post |
bool | applyBirksLaw |
Public Attributes inherited from dd4hep::sim::Geant4HitHandler | |
const G4Track * | track |
const G4VTouchable * | touchable_ptr |
Helper class to ease the extraction of information from a G4Step object.
Helper/utility class to easily access Geant4 step information. Born by lazyness: Avoid typing millions of statements!
Definition at line 46 of file Geant4StepHandler.h.
|
delete |
Inhibit default constructor.
|
inline |
Initializing constructor.
Definition at line 55 of file Geant4StepHandler.h.
|
delete |
No copy constructor.
|
delete |
No move constructor.
|
inline |
Average position vector of the step.
Definition at line 109 of file Geant4StepHandler.h.
|
inline |
Average position vector of the step.
Definition at line 102 of file Geant4StepHandler.h.
double Geant4StepHandler::birkAttenuation | ( | ) | const |
Apply BirksLaw.
Definition at line 68 of file Geant4StepHandler.cpp.
|
inline |
Definition at line 135 of file Geant4StepHandler.h.
|
inline |
Direction calculated from the post- and pre-position ofthe step.
Definition at line 116 of file Geant4StepHandler.h.
|
inline |
Set applyBirksLaw to ture.
Definition at line 196 of file Geant4StepHandler.h.
|
inline |
Definition at line 187 of file Geant4StepHandler.h.
|
inline |
Definition at line 172 of file Geant4StepHandler.h.
|
inline |
Definition at line 190 of file Geant4StepHandler.h.
|
inline |
Definition at line 160 of file Geant4StepHandler.h.
|
delete |
Assignment operator inhibited. Should not be copied.
|
delete |
Move operator inhibited. Should not be copied.
|
inline |
Definition at line 157 of file Geant4StepHandler.h.
|
inline |
Definition at line 131 of file Geant4StepHandler.h.
|
inline |
Returns the post-step position.
Definition at line 93 of file Geant4StepHandler.h.
|
inline |
Returns the post-step position as a G4ThreeVector.
Definition at line 98 of file Geant4StepHandler.h.
|
inline |
Definition at line 184 of file Geant4StepHandler.h.
const char * Geant4StepHandler::postStepStatus | ( | ) | const |
Returns the post-step status in form of a string.
Definition at line 63 of file Geant4StepHandler.cpp.
|
inline |
Definition at line 144 of file Geant4StepHandler.h.
|
inline |
Definition at line 181 of file Geant4StepHandler.h.
|
inline |
Definition at line 127 of file Geant4StepHandler.h.
|
inline |
Returns the pre-step position.
Definition at line 84 of file Geant4StepHandler.h.
|
inline |
Returns the pre-step position as a G4ThreeVector.
Definition at line 89 of file Geant4StepHandler.h.
|
inline |
Definition at line 178 of file Geant4StepHandler.h.
const char * Geant4StepHandler::preStepStatus | ( | ) | const |
Returns the pre-step status in form of a string.
Definition at line 58 of file Geant4StepHandler.cpp.
|
inline |
Definition at line 141 of file Geant4StepHandler.h.
|
inline |
Definition at line 175 of file Geant4StepHandler.h.
|
inline |
Definition at line 164 of file Geant4StepHandler.h.
|
inline |
Definition at line 168 of file Geant4StepHandler.h.
|
inline |
Definition at line 154 of file Geant4StepHandler.h.
|
inline |
Definition at line 138 of file Geant4StepHandler.h.
|
static |
Returns the step status (argument) in form of a string.
Returns the step status in form of a string.
Definition at line 27 of file Geant4StepHandler.cpp.
|
inline |
Returns total energy deposit.
Definition at line 77 of file Geant4StepHandler.h.
|
inline |
Definition at line 147 of file Geant4StepHandler.h.
|
inline |
Definition at line 151 of file Geant4StepHandler.h.
bool dd4hep::sim::Geant4StepHandler::applyBirksLaw |
Definition at line 51 of file Geant4StepHandler.h.
G4StepPoint* dd4hep::sim::Geant4StepHandler::post |
Definition at line 50 of file Geant4StepHandler.h.
G4StepPoint* dd4hep::sim::Geant4StepHandler::pre |
Definition at line 49 of file Geant4StepHandler.h.
const G4Step* dd4hep::sim::Geant4StepHandler::step |
Definition at line 48 of file Geant4StepHandler.h.