17#ifndef ROOT_TG4RootNavMgr
18#define ROOT_TG4RootNavMgr
22#include "G4Threading.hh"
30class G4TrackingManager;
85 std::function<Bool_t(Int_t)> restoreGeoStateFunction);
Builder creating a pseudo G4 geometry starting from a TGeo geometry.
Manager class creating a G4Navigator based on a ROOT geometry.
static G4ThreadLocal TG4RootNavMgr * fRootNavMgr
void SetVerboseLevel(Int_t level)
TGeoManager * fGeometry
Pointer to TGeo geometry.
void SetNavigator(TG4RootNavigator *nav)
static TG4RootNavMgr * fgMasterInstance
void SetG4TrackingManager(G4TrackingManager *trackingManager)
Forward current G4TrackingManager.
TVirtualUserPostDetConstruction * fPostDetDetConstruction
TG4RootDetectorConstruction * GetDetConstruction() const
Return the G4 geometry built based on ROOT one.
Bool_t fConnected
Flags connection to G4.
TG4RootNavigator * GetNavigator() const
Return the G4 navigator working with TGeo.
static TG4RootNavMgr * GetMasterInstance()
TG4RootNavigator * fNavigator
G4 navigator working with TGeo.
void PrintG4State() const
void LocateGlobalPointAndSetup(Double_t *pt, Double_t *dir=0)
static TG4RootNavMgr * GetInstance(TGeoManager *geom=0)
void Initialize(TVirtualUserPostDetConstruction *sdinit=0, Int_t nthreads=1)
TG4RootDetectorConstruction * fDetConstruction
void SetGeometryRestoreFunction(std::function< Bool_t(Int_t)> restoreGeoStateFunction)
Forward the given function to the TG4RootNavigator.
GEANT4 navigator using directly a TGeo geometry.
Abstract class for defining links to G4 geometry.