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)
 
const G4VPhysicalVolume * GetWorldVolume () const
 
void SetAsWorld (G4VPhysicalVolume *pv)
 
 ~DDDWorld ()
 

Private Attributes

G4VPhysicalVolume * m_world
 
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 
22  m_world = new G4PVPlacement(0,G4ThreeVector(),world,"DDDWorld",0,false,0);
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)
G4VPhysicalVolume * m_world
Definition: DDDWorld.h:21
SensitiveDetectorCatalog sdCatalog() const
G4LogicalVolumeToDDLogicalPartMap lvToDDLPMap() const
DDGeometryReturnType BuildGeometry()
Definition: DDG4Builder.cc:108
DDG4Builder * theBuilder
Definition: DDDWorld.h:20
DDDWorld::~DDDWorld ( )

Definition at line 28 of file DDDWorld.cc.

28 {}

Member Function Documentation

const G4VPhysicalVolume* DDDWorld::GetWorldVolume ( ) const
inline

Definition at line 17 of file DDDWorld.h.

References m_world.

Referenced by RunManager::initG4().

17 { return m_world; }
G4VPhysicalVolume * m_world
Definition: DDDWorld.h:21
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

G4VPhysicalVolume* DDDWorld::m_world
private

Definition at line 21 of file DDDWorld.h.

Referenced by GetWorldVolume().

DDG4Builder* DDDWorld::theBuilder
private

Definition at line 20 of file DDDWorld.h.