test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Member Functions
MuonAlignmentInputMethod Class Reference

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

Inheritance diagram for MuonAlignmentInputMethod:
MuonAlignmentInputDB MuonAlignmentInputSurveyDB MuonAlignmentInputXML

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 37 of file MuonAlignmentInputMethod.cc.

37 {}
MuonAlignmentInputMethod::~MuonAlignmentInputMethod ( )
virtual

Definition at line 44 of file MuonAlignmentInputMethod.cc.

44 {}
MuonAlignmentInputMethod::MuonAlignmentInputMethod ( const MuonAlignmentInputMethod )
private

Member Function Documentation

boost::shared_ptr< CSCGeometry > MuonAlignmentInputMethod::idealCSCGeometry ( const edm::EventSetup iSetup) const
protected

Definition at line 83 of file MuonAlignmentInputMethod.cc.

References CSCGeometryBuilderFromDDD::build(), and edm::EventSetup::get().

Referenced by MuonAlignmentInputDB::newAlignableMuon(), MuonAlignmentInputSurveyDB::newAlignableMuon(), MuonAlignmentInputXML::newAlignableMuon(), and newAlignableMuon().

83  {
85  iSetup.get<IdealGeometryRecord>().get(cpv);
86 
88  iSetup.get<MuonNumberingRecord>().get(mdc);
90 
91  boost::shared_ptr<CSCGeometry> boost_cscGeometry(new CSCGeometry);
92  CSCGeometryBuilder.build(boost_cscGeometry, &(*cpv), *mdc);
93 
94  return boost_cscGeometry;
95 }
void build(boost::shared_ptr< CSCGeometry > geom, const DDCompactView *fv, const MuonDDDConstants &muonConstants)
Build the geometry.
const T & get() const
Definition: EventSetup.h:56
boost::shared_ptr< DTGeometry > MuonAlignmentInputMethod::idealDTGeometry ( const edm::EventSetup iSetup) const
protected

Definition at line 69 of file MuonAlignmentInputMethod.cc.

References DTGeometryBuilderFromDDD::build(), and edm::EventSetup::get().

Referenced by MuonAlignmentInputDB::newAlignableMuon(), MuonAlignmentInputSurveyDB::newAlignableMuon(), MuonAlignmentInputXML::newAlignableMuon(), and newAlignableMuon().

69  {
71  iSetup.get<IdealGeometryRecord>().get(cpv);
72 
74  iSetup.get<MuonNumberingRecord>().get(mdc);
75  DTGeometryBuilderFromDDD DTGeometryBuilder;
76 
77  boost::shared_ptr<DTGeometry> boost_dtGeometry(new DTGeometry );
78  DTGeometryBuilder.build(boost_dtGeometry, &(*cpv), *mdc);
79 
80  return boost_dtGeometry;
81 }
void build(boost::shared_ptr< DTGeometry > theGeometry, const DDCompactView *cview, const MuonDDDConstants &muonConstants)
const T & get() const
Definition: EventSetup.h:56
AlignableMuon * MuonAlignmentInputMethod::newAlignableMuon ( const edm::EventSetup iSetup) const
virtual

Reimplemented in MuonAlignmentInputXML, MuonAlignmentInputSurveyDB, and MuonAlignmentInputDB.

Definition at line 62 of file MuonAlignmentInputMethod.cc.

References align::AlignableMuon, idealCSCGeometry(), and idealDTGeometry().

Referenced by MuonAlignment::MuonAlignment().

62  {
63  boost::shared_ptr<DTGeometry> dtGeometry = idealDTGeometry(iSetup);
64  boost::shared_ptr<CSCGeometry> cscGeometry = idealCSCGeometry(iSetup);
65 
66  return new AlignableMuon(&(*dtGeometry), &(*cscGeometry));
67 }
boost::shared_ptr< CSCGeometry > idealCSCGeometry(const edm::EventSetup &iSetup) const
boost::shared_ptr< DTGeometry > idealDTGeometry(const edm::EventSetup &iSetup) const
const MuonAlignmentInputMethod& MuonAlignmentInputMethod::operator= ( const MuonAlignmentInputMethod )
private