#include <Alignment/MuonAlignment/interface/MuonAlignmentInputDB.h>
Public Member Functions | |
MuonAlignmentInputDB (std::string dtLabel, std::string cscLabel) | |
MuonAlignmentInputDB () | |
virtual AlignableMuon * | newAlignableMuon (const edm::EventSetup &iSetup) const |
virtual | ~MuonAlignmentInputDB () |
Private Member Functions | |
MuonAlignmentInputDB (const MuonAlignmentInputDB &) | |
const MuonAlignmentInputDB & | operator= (const MuonAlignmentInputDB &) |
Private Attributes | |
std::string | m_cscLabel |
std::string | m_dtLabel |
Usage: <usage>
Definition at line 29 of file MuonAlignmentInputDB.h.
MuonAlignmentInputDB::MuonAlignmentInputDB | ( | ) |
MuonAlignmentInputDB::MuonAlignmentInputDB | ( | std::string | dtLabel, | |
std::string | cscLabel | |||
) |
Definition at line 41 of file MuonAlignmentInputDB.cc.
00042 : m_dtLabel(dtLabel), m_cscLabel(cscLabel) {}
MuonAlignmentInputDB::~MuonAlignmentInputDB | ( | ) | [virtual] |
MuonAlignmentInputDB::MuonAlignmentInputDB | ( | const MuonAlignmentInputDB & | ) | [private] |
AlignableMuon * MuonAlignmentInputDB::newAlignableMuon | ( | const edm::EventSetup & | iSetup | ) | const [virtual] |
Reimplemented from MuonAlignmentInputMethod.
Definition at line 67 of file MuonAlignmentInputDB.cc.
References align::AlignableMuon, GeometryAligner::applyAlignments(), align::DetectorGlobalPosition(), edm::EventSetup::get(), MuonAlignmentInputMethod::idealCSCGeometry(), MuonAlignmentInputMethod::idealDTGeometry(), m_cscLabel, m_dtLabel, and DetId::Muon.
00067 { 00068 boost::shared_ptr<DTGeometry> dtGeometry = idealDTGeometry(iSetup); 00069 boost::shared_ptr<CSCGeometry> cscGeometry = idealCSCGeometry(iSetup); 00070 00071 edm::ESHandle<Alignments> dtAlignments; 00072 edm::ESHandle<AlignmentErrors> dtAlignmentErrors; 00073 edm::ESHandle<Alignments> cscAlignments; 00074 edm::ESHandle<AlignmentErrors> cscAlignmentErrors; 00075 edm::ESHandle<Alignments> globalPositionRcd; 00076 00077 iSetup.get<DTAlignmentRcd>().get(m_dtLabel, dtAlignments); 00078 iSetup.get<DTAlignmentErrorRcd>().get(m_dtLabel, dtAlignmentErrors); 00079 iSetup.get<CSCAlignmentRcd>().get(m_cscLabel, cscAlignments); 00080 iSetup.get<CSCAlignmentErrorRcd>().get(m_cscLabel, cscAlignmentErrors); 00081 iSetup.get<GlobalPositionRcd>().get(globalPositionRcd); 00082 00083 GeometryAligner aligner; 00084 aligner.applyAlignments<DTGeometry>(&(*dtGeometry), &(*dtAlignments), &(*dtAlignmentErrors), 00085 align::DetectorGlobalPosition(*globalPositionRcd, DetId(DetId::Muon))); 00086 aligner.applyAlignments<CSCGeometry>(&(*cscGeometry), &(*cscAlignments), &(*cscAlignmentErrors), 00087 align::DetectorGlobalPosition(*globalPositionRcd, DetId(DetId::Muon))); 00088 00089 return new AlignableMuon(&(*dtGeometry), &(*cscGeometry)); 00090 }
const MuonAlignmentInputDB& MuonAlignmentInputDB::operator= | ( | const MuonAlignmentInputDB & | ) | [private] |
std::string MuonAlignmentInputDB::m_cscLabel [private] |
std::string MuonAlignmentInputDB::m_dtLabel [private] |