20 using namespace DD4hep::Simulation;
27 return "WorldBoundary";
30 return "GeomBoundary";
33 return "AtRestDoItProc";
35 case fAlongStepDoItProc:
36 return "AlongStepDoItProc";
38 case fPostStepDoItProc:
39 return "PostStepDoItProc";
41 case fUserDefinedLimit:
42 return "UserDefinedLimit";
44 case fExclusivelyForcedProc:
45 return "ExclusivelyForcedProc";
70 return localToGlobal(G4ThreeVector(local.X(),local.Y(),local.Z()));
80 G4TouchableHandle t =
step->GetPreStepPoint()->GetTouchableHandle();
81 G4ThreeVector p = t->GetHistory()->GetTopTransform().Inverse().TransformPoint(loc);
93 G4ThreeVector p =
globalToLocalG4(G4ThreeVector(global.X(),global.Y(),global.Z()));
110 G4TouchableHandle t =
step->GetPreStepPoint()->GetTouchableHandle();
111 return t->GetHistory()->GetTopTransform().TransformPoint(global);
116 #if G4VERSION_NUMBER >= 1001
117 static G4EmSaturation s_emSaturation(0);
119 static G4EmSaturation s_emSaturation();
122 double energyDeposition =
step->GetTotalEnergyDeposit();
123 double length =
step->GetStepLength();
124 double niel =
step->GetNonIonizingEnergyDeposit();
125 const G4Track* trk =
step->GetTrack();
126 const G4ParticleDefinition* particle = trk->GetDefinition();
127 const G4MaterialCutsCouple* couple = trk->GetMaterialCutsCouple();
128 double engyVis = s_emSaturation.VisibleEnergyDeposition(particle,
Position localToGlobal(const Position &local) const
Coordinate transformation to global coordinates.
static const char * stepStatus(G4StepStatus status)
Returns the step status (argument) in form of a string.
Position globalToLocal(double x, double y, double z) const
Coordinate transformation to local coordinates.
G4ThreeVector globalToLocalG4(double x, double y, double z) const
Coordinate transformation to local coordinates.
const char * postStepStatus() const
Returns the post-step status in form of a string.
Simple container for a physics vector.
ROOT::Math::XYZVector Position
const char * preStepStatus() const
Returns the pre-step status in form of a string.
double birkAttenuation() const
Apply BirksLaw.
ROOT::Math::XYZVector Position