Belle II Software
release-08-01-10
|
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. More... | |
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. More... | |
virtual void | setDebugLvl (unsigned int lvl=1) |
Protected Attributes | |
unsigned int | debugLvl_ |
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 extraoplation is currenly 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.
|
overridevirtual |
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.
Implements AbsMaterialInterface.
Definition at line 339 of file Geant4MaterialInterface.cc.
|
overridevirtual |
Initialize the navigator at given position and with given direction.
Returns true if the volume changed.
Implements AbsMaterialInterface.
Definition at line 289 of file Geant4MaterialInterface.cc.