#include <DDDWorld.h>
Public Member Functions | |
DDDWorld (const DDCompactView *, G4LogicalVolumeToDDLogicalPartMap &, SensitiveDetectorCatalog &, bool check=false) | |
void | SetAsWorld (G4VPhysicalVolume *pv) |
~DDDWorld () | |
Private Attributes | |
DDG4Builder * | theBuilder |
Definition at line 10 of file DDDWorld.h.
DDDWorld::DDDWorld | ( | const DDCompactView * | cpv, |
G4LogicalVolumeToDDLogicalPartMap & | map, | ||
SensitiveDetectorCatalog & | catalog, | ||
bool | check = false |
||
) |
Definition at line 12 of file DDDWorld.cc.
References DDGeometryReturnType::logicalVolume(), DDGeometryReturnType::lvToDDLPMap(), runTheMatrix::ret, and DDGeometryReturnType::sdCatalog().
{ std::auto_ptr<DDG4Builder> theBuilder(new DDG4Builder(cpv, check)); DDGeometryReturnType ret = theBuilder->BuildGeometry(); G4LogicalVolume * world = ret.logicalVolume(); G4VPhysicalVolume * pv = new G4PVPlacement(0,G4ThreeVector(),world,"DDDWorld",0,false,0); SetAsWorld(pv); map = ret.lvToDDLPMap(); catalog = ret.sdCatalog(); }
DDDWorld::~DDDWorld | ( | ) |
Definition at line 28 of file DDDWorld.cc.
{}
void DDDWorld::SetAsWorld | ( | G4VPhysicalVolume * | pv | ) |
Definition at line 30 of file DDDWorld.cc.
{ G4RunManagerKernel * kernel = G4RunManagerKernel::GetRunManagerKernel(); if (kernel != 0) kernel->DefineWorldVolume(pv); edm::LogInfo("SimG4CoreGeometry") << " World volume defined "; }
DDG4Builder* DDDWorld::theBuilder [private] |
Definition at line 19 of file DDDWorld.h.