CMS 3D CMS Logo

Public Member Functions | Private Attributes

DDDWorld Class Reference

#include <DDDWorld.h>

List of all members.

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(), 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.

{}

Member Function Documentation

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 ";
}

Member Data Documentation

Definition at line 19 of file DDDWorld.h.