CMS 3D CMS Logo

MuonAlignmentInputMethod.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: MuonAlignment
4 // Class : MuonAlignmentInputMethod
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author: Jim Pivarski
10 // Created: Thu Mar 6 14:25:07 CST 2008
11 // $Id: MuonAlignmentInputMethod.cc,v 1.3 2009/01/19 11:07:37 flucke Exp $
12 //
13 
14 // system include files
17 
18 // user include files
21 
24 
25 //
26 // constants, enums and typedefs
27 //
28 
29 //
30 // static data member definitions
31 //
32 
33 //
34 // constructors and destructor
35 //
36 MuonAlignmentInputMethod::MuonAlignmentInputMethod() : idealGeometryLabel("idealForInputMethod") {}
37 MuonAlignmentInputMethod::MuonAlignmentInputMethod(std::string idealLabel) : idealGeometryLabel(idealLabel) {}
38 
39 // MuonAlignmentInputMethod::MuonAlignmentInputMethod(const MuonAlignmentInputMethod& rhs)
40 // {
41 // // do actual copying here;
42 // }
43 
45 
46 //
47 // assignment operators
48 //
49 // const MuonAlignmentInputMethod& MuonAlignmentInputMethod::operator=(const MuonAlignmentInputMethod& rhs)
50 // {
51 // //An exception safe implementation is
52 // MuonAlignmentInputMethod temp(rhs);
53 // swap(rhs);
54 //
55 // return *this;
56 // }
57 
58 //
59 // member functions
60 //
61 
63  edm::ESHandle<DTGeometry> dtGeometry;
64  edm::ESHandle<CSCGeometry> cscGeometry;
66  iSetup.get<MuonGeometryRecord>().get(idealGeometryLabel, dtGeometry);
67  iSetup.get<MuonGeometryRecord>().get(idealGeometryLabel, cscGeometry);
69  return new AlignableMuon(&(*dtGeometry), &(*cscGeometry), &(*gemGeometry));
70 }
71 
72 //
73 // const member functions
74 //
75 
76 //
77 // static member functions
78 //
MuonAlignmentInputMethod::idealGeometryLabel
std::string idealGeometryLabel
Definition: MuonAlignmentInputMethod.h:54
MuonAlignmentInputMethod.h
ESTransientHandle.h
MessageLogger.h
ESHandle.h
MuonNumberingRecord.h
align::AlignableMuon
Definition: StructureType.h:90
edm::EventSetup::get
T get() const
Definition: EventSetup.h:87
edm::ESHandle< DTGeometry >
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MuonAlignmentInputMethod::~MuonAlignmentInputMethod
virtual ~MuonAlignmentInputMethod()
Definition: MuonAlignmentInputMethod.cc:44
AlignableMuon
Constructor of the full muon geometry.
Definition: AlignableMuon.h:38
edm::EventSetup
Definition: EventSetup.h:58
get
#define get
MuonAlignmentInputMethod::MuonAlignmentInputMethod
MuonAlignmentInputMethod()
Definition: MuonAlignmentInputMethod.cc:36
gemGeometry_cff.gemGeometry
gemGeometry
Definition: gemGeometry_cff.py:5
MuonGeometryRecord.h
MuonGeometryRecord
Definition: MuonGeometryRecord.h:34
MuonAlignmentInputMethod::newAlignableMuon
virtual AlignableMuon * newAlignableMuon(const edm::EventSetup &iSetup) const
Definition: MuonAlignmentInputMethod.cc:62