#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 &) |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 34 of file MuonAlignmentInputMethod.h.
MuonAlignmentInputMethod::MuonAlignmentInputMethod | ( | ) |
Definition at line 35 of file MuonAlignmentInputMethod.cc.
{}
MuonAlignmentInputMethod::~MuonAlignmentInputMethod | ( | ) | [virtual] |
Definition at line 42 of file MuonAlignmentInputMethod.cc.
{}
MuonAlignmentInputMethod::MuonAlignmentInputMethod | ( | const MuonAlignmentInputMethod & | ) | [private] |
boost::shared_ptr< CSCGeometry > MuonAlignmentInputMethod::idealCSCGeometry | ( | const edm::EventSetup & | iSetup | ) | const [protected] |
Definition at line 81 of file MuonAlignmentInputMethod.cc.
References CSCGeometryBuilderFromDDD::build(), and edm::EventSetup::get().
Referenced by newAlignableMuon(), MuonAlignmentInputDB::newAlignableMuon(), MuonAlignmentInputSurveyDB::newAlignableMuon(), and MuonAlignmentInputXML::newAlignableMuon().
{ edm::ESTransientHandle<DDCompactView> cpv; iSetup.get<IdealGeometryRecord>().get(cpv); edm::ESHandle<MuonDDDConstants> mdc; iSetup.get<MuonNumberingRecord>().get(mdc); CSCGeometryBuilderFromDDD CSCGeometryBuilder; boost::shared_ptr<CSCGeometry> boost_cscGeometry(new CSCGeometry); CSCGeometryBuilder.build(boost_cscGeometry, &(*cpv), *mdc); return boost_cscGeometry; }
boost::shared_ptr< DTGeometry > MuonAlignmentInputMethod::idealDTGeometry | ( | const edm::EventSetup & | iSetup | ) | const [protected] |
Definition at line 67 of file MuonAlignmentInputMethod.cc.
References DTGeometryBuilderFromDDD::build(), and edm::EventSetup::get().
Referenced by newAlignableMuon(), MuonAlignmentInputDB::newAlignableMuon(), MuonAlignmentInputSurveyDB::newAlignableMuon(), and MuonAlignmentInputXML::newAlignableMuon().
{ edm::ESTransientHandle<DDCompactView> cpv; iSetup.get<IdealGeometryRecord>().get(cpv); edm::ESHandle<MuonDDDConstants> mdc; iSetup.get<MuonNumberingRecord>().get(mdc); DTGeometryBuilderFromDDD DTGeometryBuilder; boost::shared_ptr<DTGeometry> boost_dtGeometry(new DTGeometry ); DTGeometryBuilder.build(boost_dtGeometry, &(*cpv), *mdc); return boost_dtGeometry; }
AlignableMuon * MuonAlignmentInputMethod::newAlignableMuon | ( | const edm::EventSetup & | iSetup | ) | const [virtual] |
Reimplemented in MuonAlignmentInputDB, MuonAlignmentInputSurveyDB, and MuonAlignmentInputXML.
Definition at line 60 of file MuonAlignmentInputMethod.cc.
References align::AlignableMuon, idealCSCGeometry(), and idealDTGeometry().
Referenced by MuonAlignment::MuonAlignment().
{ boost::shared_ptr<DTGeometry> dtGeometry = idealDTGeometry(iSetup); boost::shared_ptr<CSCGeometry> cscGeometry = idealCSCGeometry(iSetup); return new AlignableMuon(&(*dtGeometry), &(*cscGeometry)); }
const MuonAlignmentInputMethod& MuonAlignmentInputMethod::operator= | ( | const MuonAlignmentInputMethod & | ) | [private] |