CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
DDDWorld Class Reference

#include <DDDWorld.h>

Public Member Functions

 DDDWorld (const DDCompactView *, G4LogicalVolumeToDDLogicalPartMap &, SensitiveDetectorCatalog &, bool check=false)
 
void SetAsWorld (G4VPhysicalVolume *pv)
 
 ~DDDWorld ()
 

Private Attributes

DDG4BuildertheBuilder
 

Detailed Description

Definition at line 10 of file DDDWorld.h.

Constructor & Destructor Documentation

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(), run_regression::ret, and DDGeometryReturnType::sdCatalog().

15  {
16 
17  std::auto_ptr<DDG4Builder> theBuilder(new DDG4Builder(cpv, check));
18 
20  G4LogicalVolume * world = ret.logicalVolume();
21  G4VPhysicalVolume * pv =
22  new G4PVPlacement(0,G4ThreeVector(),world,"DDDWorld",0,false,0);
23  SetAsWorld(pv);
24  map = ret.lvToDDLPMap();
25  catalog = ret.sdCatalog();
26 }
void SetAsWorld(G4VPhysicalVolume *pv)
Definition: DDDWorld.cc:30
G4LogicalVolume * logicalVolume() const
bool check(const DataFrame &df, bool capcheck, bool dvercheck)
SensitiveDetectorCatalog sdCatalog() const
G4LogicalVolumeToDDLogicalPartMap lvToDDLPMap() const
DDGeometryReturnType BuildGeometry()
Definition: DDG4Builder.cc:108
DDG4Builder * theBuilder
Definition: DDDWorld.h:19
DDDWorld::~DDDWorld ( )

Definition at line 28 of file DDDWorld.cc.

28 {}

Member Function Documentation

void DDDWorld::SetAsWorld ( G4VPhysicalVolume *  pv)

Definition at line 30 of file DDDWorld.cc.

30  {
31  G4RunManagerKernel * kernel = G4RunManagerKernel::GetRunManagerKernel();
32  if (kernel != 0) kernel->DefineWorldVolume(pv);
33  edm::LogInfo("SimG4CoreGeometry") << " World volume defined ";
34 }

Member Data Documentation

DDG4Builder* DDDWorld::theBuilder
private

Definition at line 19 of file DDDWorld.h.