CMS 3D CMS Logo

DDDWorld Class Reference

#include <SimG4Core/Geometry/interface/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 11 of file DDDWorld.h.


Constructor & Destructor Documentation

DDDWorld::DDDWorld ( const DDCompactView cpv,
G4LogicalVolumeToDDLogicalPartMap map,
SensitiveDetectorCatalog catalog,
bool  check = false 
)

Definition at line 15 of file DDDWorld.cc.

References DDGeometryReturnType::logicalVolume(), DDGeometryReturnType::lvToDDLPMap(), pv, DDGeometryReturnType::sdCatalog(), SetAsWorld(), and theBuilder.

00018                                {
00019 
00020   std::auto_ptr<DDG4Builder> theBuilder(new DDG4Builder(cpv, check));
00021 
00022   DDGeometryReturnType ret = theBuilder->BuildGeometry();
00023   G4LogicalVolume *    world = ret.logicalVolume();
00024   G4VPhysicalVolume *  pv = 
00025     new G4PVPlacement(0,G4ThreeVector(),world,"DDDWorld",0,false,0);
00026   SetAsWorld(pv);
00027   map     = ret.lvToDDLPMap();
00028   catalog = ret.sdCatalog();
00029 }

DDDWorld::~DDDWorld (  ) 

Definition at line 31 of file DDDWorld.cc.

00031 {}


Member Function Documentation

void DDDWorld::SetAsWorld ( G4VPhysicalVolume *  pv  ) 

Definition at line 33 of file DDDWorld.cc.

Referenced by DDDWorld().

00033                                                 {
00034   G4RunManagerKernel * kernel = G4RunManagerKernel::GetRunManagerKernel();
00035   if (kernel != 0) kernel->DefineWorldVolume(pv);
00036   edm::LogInfo("SimG4CoreGeometry") << " World volume defined ";
00037 }


Member Data Documentation

DDG4Builder* DDDWorld::theBuilder [private]

Definition at line 20 of file DDDWorld.h.

Referenced by DDDWorld().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:17:51 2009 for CMSSW by  doxygen 1.5.4