#include <DD4hep_DDDWorld.h>
Definition at line 12 of file DD4hep_DDDWorld.h.
◆ DDDWorld()
DDDWorld::DDDWorld |
( |
const cms::DDDetector * |
ddd, |
|
|
dd4hep::sim::Geant4GeometryMaps::VolumeMap & |
map |
|
) |
| |
Definition at line 19 of file DD4hep_DDDWorld.cc.
20 LogVerbatim(
"SimG4CoreApplication") <<
"DD4hep_DDDWorld: initialization of DDDWorld...";
23 printout(
INFO,
"SimDD4CMS",
"+++ DDDWorld::DDDWorld start... %s", world.name());
26 Geant4GeometryInfo*
geometry = g4Geo.create(world).detach();
30 LogVerbatim(
"Geometry") <<
"The world is " << it->first.name();
34 for (
auto iter =
map.begin(); iter !=
map.end(); ++iter) {
35 log << iter->first.name() <<
" = ";
37 log << iter->second->GetName() <<
"; ";
39 log <<
"***none***; ";
47 printout(
INFO,
"SimDD4CMS",
"+++ DDDWorld::DDDWorld done!");
49 LogVerbatim(
"SimG4CoreApplication") <<
"DD4hep_DDDWorld: initialization of DDDWorld done.";
References cms::DDDetector::description(), hgcalTestNeighbor_cfi::detector, align::Detector, unpackBuffers-CaloStage2::INFO, dqm-mbProfile::log, edm::LogVerbatim::log(), and genParticles_cff::map.
◆ ~DDDWorld()
◆ getWorldVolume()
const G4VPhysicalVolume* cms::DDDWorld::getWorldVolume |
( |
| ) |
const |
|
inline |
◆ getWorldVolumeForWorker()
G4VPhysicalVolume* cms::DDDWorld::getWorldVolumeForWorker |
( |
| ) |
const |
|
inline |
◆ setAsWorld()
void DDDWorld::setAsWorld |
( |
G4VPhysicalVolume * |
pv | ) |
|
|
private |
Definition at line 54 of file DD4hep_DDDWorld.cc.
55 G4RunManagerKernel* kernel = G4RunManagerKernel::GetRunManagerKernel();
58 kernel->DefineWorldVolume(
pv);
60 edm::LogError(
"SimG4CoreGeometry") <<
"cms::DDDWorld::setAsWorld: No G4RunManagerKernel?";
62 edm::LogInfo(
"SimG4CoreGeometry") <<
" World volume defined ";
References MetAnalyzer::pv().
◆ workerSetAsWorld()
void DDDWorld::workerSetAsWorld |
( |
G4VPhysicalVolume * |
pv | ) |
|
|
static |
Definition at line 65 of file DD4hep_DDDWorld.cc.
66 G4RunManagerKernel* kernel = G4RunManagerKernel::GetRunManagerKernel();
68 kernel->WorkerDefineWorldVolume(
pv);
71 G4TransportationManager* transM = G4TransportationManager::GetTransportationManager();
72 transM->SetWorldForTracking(
pv);
74 edm::LogError(
"SimG4CoreGeometry") <<
"cms::DDDWorld::workerSetAsWorld: No G4RunManagerKernel?";
76 edm::LogInfo(
"SimG4CoreGeometry") <<
" World volume defined (for worker) ";
References MetAnalyzer::pv().
◆ m_world
G4VPhysicalVolume* cms::DDDWorld::m_world |
|
private |