7 #include "G4PVPlacement.hh" 8 #include "G4RunManagerKernel.hh" 9 #include "G4TransportationManager.hh" 17 std::unique_ptr<DDG4Builder> theBuilder(
new DDG4Builder(cpv, check));
22 m_world =
new G4PVPlacement(
nullptr, G4ThreeVector(), world,
"DDDWorld",
nullptr,
false, 0);
31 G4RunManagerKernel *kernel = G4RunManagerKernel::GetRunManagerKernel();
33 kernel->DefineWorldVolume(pv);
35 edm::LogError(
"SimG4CoreGeometry") <<
"No G4RunManagerKernel?";
36 edm::LogInfo(
"SimG4CoreGeometry") <<
" World volume defined ";
40 G4RunManagerKernel *kernel = G4RunManagerKernel::GetRunManagerKernel();
42 kernel->WorkerDefineWorldVolume(pv);
45 G4TransportationManager *transM = G4TransportationManager::GetTransportationManager();
46 transM->SetWorldForTracking(pv);
48 edm::LogError(
"SimG4CoreGeometry") <<
"No G4RunManagerKernel?";
49 edm::LogInfo(
"SimG4CoreGeometry") <<
" World volume defined (for worker) ";
static void SetAsWorld(G4VPhysicalVolume *pv)
Compact representation of the geometrical detector hierarchy.
G4LogicalVolume * logicalVolume() const
DDDWorld(const DDCompactView *, G4LogicalVolumeToDDLogicalPartMap &, SensitiveDetectorCatalog &, bool check=false)
SensitiveDetectorCatalog sdCatalog() const
G4LogicalVolumeToDDLogicalPartMap lvToDDLPMap() const
static void WorkerSetAsWorld(G4VPhysicalVolume *pv)
static void check(T const &p, std::string const &id, SelectedProducts const &iProducts)