CMS 3D CMS Logo

MuonAlignmentInputMethod Class Reference

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

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

Inheritance diagram for MuonAlignmentInputMethod:

MuonAlignmentInputDB MuonAlignmentInputSurveyDB MuonAlignmentInputXML

List of all members.

Public Member Functions

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

Protected Member Functions

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

Private Member Functions

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


Detailed Description

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

Usage: <usage>

Definition at line 34 of file MuonAlignmentInputMethod.h.


Constructor & Destructor Documentation

MuonAlignmentInputMethod::MuonAlignmentInputMethod (  ) 

Definition at line 34 of file MuonAlignmentInputMethod.cc.

00034 {}

MuonAlignmentInputMethod::~MuonAlignmentInputMethod (  )  [virtual]

Definition at line 41 of file MuonAlignmentInputMethod.cc.

00041 {}

MuonAlignmentInputMethod::MuonAlignmentInputMethod ( const MuonAlignmentInputMethod  )  [private]


Member Function Documentation

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]


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