CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CSCGeometryBuilderFromDDD Class Reference

#include <CSCGeometryBuilderFromDDD.h>

Public Member Functions

void build (CSCGeometry &geom, const DDCompactView *fv, const MuonGeometryConstants &muonConstants)
 
void build (CSCGeometry &geom, const cms::DDCompactView *cview, const MuonGeometryConstants &muonConstants)
 
 CSCGeometryBuilderFromDDD ()
 Constructor. More...
 
virtual ~CSCGeometryBuilderFromDDD ()
 Destructor. More...
 

Private Attributes

const std::string myName
 

Detailed Description

Definition at line 26 of file CSCGeometryBuilderFromDDD.h.

Constructor & Destructor Documentation

◆ CSCGeometryBuilderFromDDD()

CSCGeometryBuilderFromDDD::CSCGeometryBuilderFromDDD ( )

Constructor.

Definition at line 24 of file CSCGeometryBuilderFromDDD.cc.

24 : myName("CSCGeometryBuilderFromDDD") {}

◆ ~CSCGeometryBuilderFromDDD()

CSCGeometryBuilderFromDDD::~CSCGeometryBuilderFromDDD ( )
virtual

Destructor.

Definition at line 26 of file CSCGeometryBuilderFromDDD.cc.

26 {}

Member Function Documentation

◆ build() [1/2]

void CSCGeometryBuilderFromDDD::build ( CSCGeometry geom,
const DDCompactView fv,
const MuonGeometryConstants muonConstants 
)

Definition at line 28 of file CSCGeometryBuilderFromDDD.cc.

References CSCGeometryBuilder::build(), CSCGeometryParsFromDD::build(), Exception, and relativeConstraints::geom.

Referenced by CSCGeometryESModule::initCSCGeometry_().

30  {
33 
34  // simple class just really a method to get the parameters... but I want this method
35  // available to classes other than CSCGeometryBuilderFromDDD so... simple class...
37  if (!cscp.build(cview, muonConstants, rig, rdp)) {
38  throw cms::Exception("CSCGeometryBuilderFromDDD", "Failed to build the necessary objects from the DDD");
39  }
40  CSCGeometryBuilder realbuilder;
41  realbuilder.build(geom, rig, rdp);
42 }
void build(CSCGeometry &theGeometry, const RecoIdealGeometry &rig, const CSCRecoDigiParameters &cscpars)
Build the geometry.
bool build(const DDCompactView *cview, const MuonGeometryConstants &muonConstants, RecoIdealGeometry &rig, CSCRecoDigiParameters &rdp)
Build the geometry returning the RecoIdealGeometry and the CSCRecoDigiParameters objects.

◆ build() [2/2]

void CSCGeometryBuilderFromDDD::build ( CSCGeometry geom,
const cms::DDCompactView cview,
const MuonGeometryConstants muonConstants 
)

Definition at line 46 of file CSCGeometryBuilderFromDDD.cc.

References CSCGeometryBuilder::build(), CSCGeometryParsFromDD::build(), Exception, and relativeConstraints::geom.

48  {
51 
53  if (!cscp.build(cview, muonConstants, rig, rdp)) {
54  throw cms::Exception("CSCGeometryBuilderFromDDD", "Failed to build the necessary objects from the DD4hep");
55  }
56 
57  CSCGeometryBuilder realbuilder;
58  realbuilder.build(geom, rig, rdp);
59 }
void build(CSCGeometry &theGeometry, const RecoIdealGeometry &rig, const CSCRecoDigiParameters &cscpars)
Build the geometry.
bool build(const DDCompactView *cview, const MuonGeometryConstants &muonConstants, RecoIdealGeometry &rig, CSCRecoDigiParameters &rdp)
Build the geometry returning the RecoIdealGeometry and the CSCRecoDigiParameters objects.

Member Data Documentation

◆ myName

const std::string CSCGeometryBuilderFromDDD::myName
private

Definition at line 42 of file CSCGeometryBuilderFromDDD.h.