CMS 3D CMS Logo

MuonAlignmentInputDB Class Reference

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

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

Inheritance diagram for MuonAlignmentInputDB:

MuonAlignmentInputMethod

List of all members.

Public Member Functions

 MuonAlignmentInputDB (std::string dtLabel, std::string cscLabel)
 MuonAlignmentInputDB ()
virtual AlignableMuonnewAlignableMuon (const edm::EventSetup &iSetup) const
virtual ~MuonAlignmentInputDB ()

Private Member Functions

 MuonAlignmentInputDB (const MuonAlignmentInputDB &)
const MuonAlignmentInputDBoperator= (const MuonAlignmentInputDB &)

Private Attributes

std::string m_cscLabel
std::string m_dtLabel


Detailed Description

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

Usage: <usage>

Definition at line 29 of file MuonAlignmentInputDB.h.


Constructor & Destructor Documentation

MuonAlignmentInputDB::MuonAlignmentInputDB (  ) 

Definition at line 38 of file MuonAlignmentInputDB.cc.

00039    : m_dtLabel(""), m_cscLabel("") {}

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]

Definition at line 49 of file MuonAlignmentInputDB.cc.

00049 {}

MuonAlignmentInputDB::MuonAlignmentInputDB ( const MuonAlignmentInputDB  )  [private]


Member Function Documentation

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]


Member Data Documentation

std::string MuonAlignmentInputDB::m_cscLabel [private]

Definition at line 50 of file MuonAlignmentInputDB.h.

Referenced by newAlignableMuon().

std::string MuonAlignmentInputDB::m_dtLabel [private]

Definition at line 50 of file MuonAlignmentInputDB.h.

Referenced by newAlignableMuon().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:28:38 2009 for CMSSW by  doxygen 1.5.4