7 #include "G4RunManagerKernel.hh"
8 #include "G4PVPlacement.hh"
9 #include "G4TransportationManager.hh"
18 std::auto_ptr<DDG4Builder> theBuilder(
new DDG4Builder(cpv, check));
23 m_world =
new G4PVPlacement(0,G4ThreeVector(),world,
"DDDWorld",0,
false,0);
32 G4RunManagerKernel * kernel = G4RunManagerKernel::GetRunManagerKernel();
33 if(kernel) kernel->DefineWorldVolume(pv);
34 else edm::LogError(
"SimG4CoreGeometry") <<
"No G4RunManagerKernel?";
35 edm::LogInfo(
"SimG4CoreGeometry") <<
" World volume defined ";
39 G4RunManagerKernel * kernel = G4RunManagerKernel::GetRunManagerKernel();
41 kernel->WorkerDefineWorldVolume(pv);
44 G4TransportationManager* transM = G4TransportationManager::GetTransportationManager();
45 transM->SetWorldForTracking(pv);
47 else edm::LogError(
"SimG4CoreGeometry") <<
"No G4RunManagerKernel?";
48 edm::LogInfo(
"SimG4CoreGeometry") <<
" World volume defined (for worker) ";
tuple ret
prodAgent to be discontinued
static void SetAsWorld(G4VPhysicalVolume *pv)
type of data representation of DDCompactView
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)