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 cms::DDCompactView *cview, const MuonGeometryConstants &muonConstants)
 
void build (CSCGeometry &geom, const DDCompactView *fv, 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 cms::DDCompactView cview,
const MuonGeometryConstants muonConstants 
)

Definition at line 46 of file CSCGeometryBuilderFromDDD.cc.

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 }

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

◆ build() [2/2]

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

Definition at line 28 of file CSCGeometryBuilderFromDDD.cc.

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 }

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

Referenced by CSCGeometryESModule::initCSCGeometry_().

Member Data Documentation

◆ myName

const std::string CSCGeometryBuilderFromDDD::myName
private

Definition at line 42 of file CSCGeometryBuilderFromDDD.h.

CSCGeometryParsFromDD::build
bool build(const DDCompactView *cview, const MuonGeometryConstants &muonConstants, RecoIdealGeometry &rig, CSCRecoDigiParameters &rdp)
Build the geometry returning the RecoIdealGeometry and the CSCRecoDigiParameters objects.
Definition: CSCGeometryParsFromDD.cc:39
CSCRecoDigiParameters
Definition: CSCRecoDigiParameters.h:18
CSCGeometryBuilderFromDDD::myName
const std::string myName
Definition: CSCGeometryBuilderFromDDD.h:42
CSCGeometryBuilder
Definition: CSCGeometryBuilder.h:20
relativeConstraints.geom
geom
Definition: relativeConstraints.py:72
CSCGeometryParsFromDD
Definition: CSCGeometryParsFromDD.h:29
CSCGeometryBuilder::build
void build(CSCGeometry &theGeometry, const RecoIdealGeometry &rig, const CSCRecoDigiParameters &cscpars)
Build the geometry.
Definition: CSCGeometryBuilder.cc:17
Exception
Definition: hltDiff.cc:246
RecoIdealGeometry
Definition: RecoIdealGeometry.h:28