CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Member Functions
MuonAlignmentInputMethod Class Reference

#include <Alignment/MuonAlignment/interface/MuonAlignmentInputMethod.h>

Inheritance diagram for MuonAlignmentInputMethod:
MuonAlignmentInputDB MuonAlignmentInputSurveyDB MuonAlignmentInputXML

Public Member Functions

 MuonAlignmentInputMethod ()
 
virtual AlignableMuonnewAlignableMuon (const edm::EventSetup &iSetup) const
 
virtual ~MuonAlignmentInputMethod ()
 

Protected Member Functions

std::shared_ptr< CSCGeometryidealCSCGeometry (const edm::EventSetup &iSetup) const
 
std::shared_ptr< DTGeometryidealDTGeometry (const edm::EventSetup &iSetup) const
 

Private Member Functions

 MuonAlignmentInputMethod (const MuonAlignmentInputMethod &)=delete
 
const MuonAlignmentInputMethodoperator= (const MuonAlignmentInputMethod &)=delete
 

Detailed Description

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 34 of file MuonAlignmentInputMethod.h.

Constructor & Destructor Documentation

◆ MuonAlignmentInputMethod() [1/2]

MuonAlignmentInputMethod::MuonAlignmentInputMethod ( )

Definition at line 37 of file MuonAlignmentInputMethod.cc.

37 {}

◆ ~MuonAlignmentInputMethod()

MuonAlignmentInputMethod::~MuonAlignmentInputMethod ( )
virtual

Definition at line 44 of file MuonAlignmentInputMethod.cc.

44 {}

◆ MuonAlignmentInputMethod() [2/2]

MuonAlignmentInputMethod::MuonAlignmentInputMethod ( const MuonAlignmentInputMethod )
privatedelete

Member Function Documentation

◆ idealCSCGeometry()

std::shared_ptr< CSCGeometry > MuonAlignmentInputMethod::idealCSCGeometry ( const edm::EventSetup iSetup) const
protected

Definition at line 83 of file MuonAlignmentInputMethod.cc.

83  {
85  iSetup.get<IdealGeometryRecord>().get(cpv);
86 
88  iSetup.get<IdealGeometryRecord>().get(mdc);
90 
91  auto boost_cscGeometry = std::make_shared<CSCGeometry>();
92  CSCGeometryBuilder.build(*boost_cscGeometry, &(*cpv), *mdc);
93 
94  return boost_cscGeometry;
95 }

References CSCGeometryBuilder::build(), edm::EventSetup::get(), and get.

Referenced by MuonAlignmentInputDB::newAlignableMuon(), MuonAlignmentInputSurveyDB::newAlignableMuon(), MuonAlignmentInputXML::newAlignableMuon(), and newAlignableMuon().

◆ idealDTGeometry()

std::shared_ptr< DTGeometry > MuonAlignmentInputMethod::idealDTGeometry ( const edm::EventSetup iSetup) const
protected

Definition at line 69 of file MuonAlignmentInputMethod.cc.

69  {
71  iSetup.get<IdealGeometryRecord>().get(cpv);
72 
74  iSetup.get<IdealGeometryRecord>().get(mdc);
76 
77  auto boost_dtGeometry = std::make_shared<DTGeometry>();
78  DTGeometryBuilder.build(*boost_dtGeometry, &(*cpv), *mdc);
79 
80  return boost_dtGeometry;
81 }

References edm::EventSetup::get(), and get.

Referenced by MuonAlignmentInputDB::newAlignableMuon(), MuonAlignmentInputSurveyDB::newAlignableMuon(), MuonAlignmentInputXML::newAlignableMuon(), and newAlignableMuon().

◆ newAlignableMuon()

AlignableMuon * MuonAlignmentInputMethod::newAlignableMuon ( const edm::EventSetup iSetup) const
virtual

Reimplemented in MuonAlignmentInputXML, MuonAlignmentInputSurveyDB, and MuonAlignmentInputDB.

Definition at line 62 of file MuonAlignmentInputMethod.cc.

62  {
63  std::shared_ptr<DTGeometry> dtGeometry = idealDTGeometry(iSetup);
64  std::shared_ptr<CSCGeometry> cscGeometry = idealCSCGeometry(iSetup);
65 
66  return new AlignableMuon(&(*dtGeometry), &(*cscGeometry));
67 }

References align::AlignableMuon, idealCSCGeometry(), and idealDTGeometry().

◆ operator=()

const MuonAlignmentInputMethod& MuonAlignmentInputMethod::operator= ( const MuonAlignmentInputMethod )
privatedelete
DTGeometryBuilder
DTGeometryBuilderFromDDD
Definition: DTGeometryBuilderFromDDD.h:31
align::AlignableMuon
Definition: StructureType.h:84
CSCGeometryBuilder
Definition: CSCGeometryBuilder.h:20
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
edm::ESHandle
Definition: DTSurvey.h:22
CSCGeometryBuilder::build
void build(CSCGeometry &theGeometry, const RecoIdealGeometry &rig, const CSCRecoDigiParameters &cscpars)
Build the geometry.
Definition: CSCGeometryBuilder.cc:17
get
#define get
edm::ESTransientHandle
Definition: ESTransientHandle.h:41
MuonAlignmentInputMethod::idealDTGeometry
std::shared_ptr< DTGeometry > idealDTGeometry(const edm::EventSetup &iSetup) const
Definition: MuonAlignmentInputMethod.cc:69
CSCGeometryBuilderFromDDD
Definition: CSCGeometryBuilderFromDDD.h:30
IdealGeometryRecord
Definition: IdealGeometryRecord.h:27
MuonAlignmentInputMethod::idealCSCGeometry
std::shared_ptr< CSCGeometry > idealCSCGeometry(const edm::EventSetup &iSetup) const
Definition: MuonAlignmentInputMethod.cc:83