Belle II Software development
|
AbsMaterialInterface implementation for use with Geant4's navigator. More...
#include <Geant4MaterialInterface.h>
Public Member Functions | |
bool | initTrack (double posX, double posY, double posZ, double dirX, double dirY, double dirZ) override |
Initialize the navigator at given position and with given direction. | |
genfit::Material | getMaterialParameters () override |
Get material parameters in current material. | |
double | findNextBoundary (const genfit::RKTrackRep *rep, const genfit::M1x7 &state7, double sMax, bool varField=true) override |
Make a step (following the curvature) until step length sMax or the next boundary is reached. | |
Private Attributes | |
std::unique_ptr< class G4SafeNavigator > | nav_ |
holds a object of G4SafeNavigator, which is located in Geant4MaterialInterface.cc | |
const class G4VPhysicalVolume * | currentVolume_ |
the volume the extrapolation is currently located in | |
bool | m_takingFullStep = false |
stores whether to call SetGeometricallyLimitedStep() because the full step length was taken. | |
AbsMaterialInterface implementation for use with Geant4's navigator.
This allows to look up the material properties from the Geant4 geometry also used for simulation purposes.
Definition at line 29 of file Geant4MaterialInterface.h.
Definition at line 276 of file Geant4MaterialInterface.cc.
Definition at line 283 of file Geant4MaterialInterface.cc.
|
override |
Make a step (following the curvature) until step length sMax or the next boundary is reached.
After making a step to a boundary, the position has to be beyond the boundary, i.e. the current material has to be that beyond the boundary. The actual step made is returned.
Definition at line 339 of file Geant4MaterialInterface.cc.
|
override |
Get material parameters in current material.
Definition at line 309 of file Geant4MaterialInterface.cc.
|
override |
Initialize the navigator at given position and with given direction.
Returns true if the volume changed.
Definition at line 289 of file Geant4MaterialInterface.cc.
|
private |
the volume the extrapolation is currently located in
Definition at line 63 of file Geant4MaterialInterface.h.
|
private |
stores whether to call SetGeometricallyLimitedStep() because the full step length was taken.
Definition at line 68 of file Geant4MaterialInterface.h.
|
private |
holds a object of G4SafeNavigator, which is located in Geant4MaterialInterface.cc
Definition at line 60 of file Geant4MaterialInterface.h.