Belle II Software  release-05-02-19
Geant4MaterialInterface Class Reference

AbsMaterialInterface implementation for use with Geant4's navigator. More...

#include <Geant4MaterialInterface.h>

Inheritance diagram for Geant4MaterialInterface:
Collaboration diagram for Geant4MaterialInterface:

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 G4SafeNavigatornav_
 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.
 

Detailed Description

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 28 of file Geant4MaterialInterface.h.

Member Function Documentation

◆ findNextBoundary()

double findNextBoundary ( const genfit::RKTrackRep rep,
const genfit::M1x7 state7,
double  sMax,
bool  varField = true 
)
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 334 of file Geant4MaterialInterface.cc.

◆ initTrack()

bool initTrack ( double  posX,
double  posY,
double  posZ,
double  dirX,
double  dirY,
double  dirZ 
)
overridevirtual

Initialize the navigator at given position and with given direction.

Returns true if the volume changed.

Implements AbsMaterialInterface.

Definition at line 284 of file Geant4MaterialInterface.cc.


The documentation for this class was generated from the following files: