#include <Alignment/MuonAlignment/interface/MuonAlignmentInputMethod.h>
Public Member Functions | |
MuonAlignmentInputMethod () | |
virtual AlignableMuon * | newAlignableMuon (const edm::EventSetup &iSetup) const |
virtual | ~MuonAlignmentInputMethod () |
Protected Member Functions | |
boost::shared_ptr< CSCGeometry > | idealCSCGeometry (const edm::EventSetup &iSetup) const |
boost::shared_ptr< DTGeometry > | idealDTGeometry (const edm::EventSetup &iSetup) const |
Private Member Functions | |
MuonAlignmentInputMethod (const MuonAlignmentInputMethod &) | |
const MuonAlignmentInputMethod & | operator= (const MuonAlignmentInputMethod &) |
Usage: <usage>
Definition at line 34 of file MuonAlignmentInputMethod.h.
MuonAlignmentInputMethod::MuonAlignmentInputMethod | ( | ) |
MuonAlignmentInputMethod::~MuonAlignmentInputMethod | ( | ) | [virtual] |
MuonAlignmentInputMethod::MuonAlignmentInputMethod | ( | const MuonAlignmentInputMethod & | ) | [private] |
boost::shared_ptr< CSCGeometry > MuonAlignmentInputMethod::idealCSCGeometry | ( | const edm::EventSetup & | iSetup | ) | const [protected] |
Definition at line 79 of file MuonAlignmentInputMethod.cc.
References CSCGeometryBuilderFromDDD::build(), and edm::EventSetup::get().
Referenced by newAlignableMuon(), MuonAlignmentInputDB::newAlignableMuon(), MuonAlignmentInputSurveyDB::newAlignableMuon(), and MuonAlignmentInputXML::newAlignableMuon().
00079 { 00080 edm::ESHandle<DDCompactView> cpv; 00081 iSetup.get<IdealGeometryRecord>().get(cpv); 00082 00083 edm::ESHandle<MuonDDDConstants> mdc; 00084 iSetup.get<MuonNumberingRecord>().get(mdc); 00085 CSCGeometryBuilderFromDDD CSCGeometryBuilder; 00086 00087 boost::shared_ptr<CSCGeometry> boost_cscGeometry(new CSCGeometry); 00088 CSCGeometryBuilder.build(boost_cscGeometry, &(*cpv), *mdc); 00089 00090 return boost_cscGeometry; 00091 }
boost::shared_ptr< DTGeometry > MuonAlignmentInputMethod::idealDTGeometry | ( | const edm::EventSetup & | iSetup | ) | const [protected] |
Definition at line 66 of file MuonAlignmentInputMethod.cc.
References DTGeometryBuilderFromDDD::build(), and edm::EventSetup::get().
Referenced by newAlignableMuon(), MuonAlignmentInputDB::newAlignableMuon(), MuonAlignmentInputSurveyDB::newAlignableMuon(), and MuonAlignmentInputXML::newAlignableMuon().
00066 { 00067 edm::ESHandle<DDCompactView> cpv; 00068 iSetup.get<IdealGeometryRecord>().get(cpv); 00069 00070 edm::ESHandle<MuonDDDConstants> mdc; 00071 iSetup.get<MuonNumberingRecord>().get(mdc); 00072 DTGeometryBuilderFromDDD DTGeometryBuilder; 00073 00074 boost::shared_ptr<DTGeometry> boost_dtGeometry = boost::shared_ptr<DTGeometry>(DTGeometryBuilder.build(&(*cpv), *mdc)); 00075 00076 return boost_dtGeometry; 00077 }
AlignableMuon * MuonAlignmentInputMethod::newAlignableMuon | ( | const edm::EventSetup & | iSetup | ) | const [virtual] |
Reimplemented in MuonAlignmentInputDB, MuonAlignmentInputSurveyDB, and MuonAlignmentInputXML.
Definition at line 59 of file MuonAlignmentInputMethod.cc.
References align::AlignableMuon, idealCSCGeometry(), and idealDTGeometry().
Referenced by MuonAlignment::MuonAlignment().
00059 { 00060 boost::shared_ptr<DTGeometry> dtGeometry = idealDTGeometry(iSetup); 00061 boost::shared_ptr<CSCGeometry> cscGeometry = idealCSCGeometry(iSetup); 00062 00063 return new AlignableMuon(&(*dtGeometry), &(*cscGeometry)); 00064 }
const MuonAlignmentInputMethod& MuonAlignmentInputMethod::operator= | ( | const MuonAlignmentInputMethod & | ) | [private] |