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 cms::MuonNumbering &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 30 of file CSCGeometryBuilderFromDDD.h.

Constructor & Destructor Documentation

◆ CSCGeometryBuilderFromDDD()

CSCGeometryBuilderFromDDD::CSCGeometryBuilderFromDDD ( )

Constructor.

Definition at line 28 of file CSCGeometryBuilderFromDDD.cc.

28 : myName("CSCGeometryBuilderFromDDD") {}

◆ ~CSCGeometryBuilderFromDDD()

CSCGeometryBuilderFromDDD::~CSCGeometryBuilderFromDDD ( )
virtual

Destructor.

Definition at line 30 of file CSCGeometryBuilderFromDDD.cc.

30 {}

Member Function Documentation

◆ build() [1/2]

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

Definition at line 50 of file CSCGeometryBuilderFromDDD.cc.

52  {
55 
57  if (!cscp.build(cview, muonConstants, rig, rdp)) {
58  throw cms::Exception("CSCGeometryBuilderFromDDD", "Failed to build the necessary objects from the DD4HEP");
59  }
60 
61  CSCGeometryBuilder realbuilder;
62  realbuilder.build(geom, rig, rdp);
63 }

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 32 of file CSCGeometryBuilderFromDDD.cc.

34  {
37 
38  // simple class just really a method to get the parameters... but I want this method
39  // available to classes other than CSCGeometryBuilderFromDDD so... simple class...
41  if (!cscp.build(cview, muonConstants, rig, rdp)) {
42  throw cms::Exception("CSCGeometryBuilderFromDDD", "Failed to build the necessary objects from the DDD");
43  }
44  CSCGeometryBuilder realbuilder;
45  realbuilder.build(geom, rig, rdp);
46 }

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 46 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:48
CSCRecoDigiParameters
Definition: CSCRecoDigiParameters.h:18
CSCGeometryBuilderFromDDD::myName
const std::string myName
Definition: CSCGeometryBuilderFromDDD.h:46
CSCGeometryBuilder
Definition: CSCGeometryBuilder.h:20
relativeConstraints.geom
geom
Definition: relativeConstraints.py:72
CSCGeometryParsFromDD
Definition: CSCGeometryParsFromDD.h:32
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