Alignment
MuonAlignment
src
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
15
#include "
FWCore/Framework/interface/ESHandle.h
"
16
#include "
FWCore/Framework/interface/ESTransientHandle.h
"
17
18
// user include files
19
#include "
Alignment/MuonAlignment/interface/MuonAlignmentInputMethod.h
"
20
#include "
Geometry/Records/interface/MuonNumberingRecord.h
"
21
22
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
23
#include "
Geometry/Records/interface/MuonGeometryRecord.h
"
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
44
MuonAlignmentInputMethod::~MuonAlignmentInputMethod
() {}
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
62
AlignableMuon
*
MuonAlignmentInputMethod::newAlignableMuon
(
const
edm::EventSetup
& iSetup)
const
{
63
edm::ESHandle<DTGeometry>
dtGeometry;
64
edm::ESHandle<CSCGeometry>
cscGeometry;
65
iSetup.
get
<
MuonGeometryRecord
>().
get
(
idealGeometryLabel
, dtGeometry);
66
iSetup.
get
<
MuonGeometryRecord
>().
get
(
idealGeometryLabel
, cscGeometry);
67
return
new
AlignableMuon
(&(*dtGeometry), &(*cscGeometry));
68
}
69
70
//
71
// const member functions
72
//
73
74
//
75
// static member functions
76
//
MuonAlignmentInputMethod::idealGeometryLabel
std::string idealGeometryLabel
Definition:
MuonAlignmentInputMethod.h:54
MuonAlignmentInputMethod.h
ESTransientHandle.h
MessageLogger.h
ESHandle.h
MuonNumberingRecord.h
align::AlignableMuon
Definition:
StructureType.h:84
edm::EventSetup::get
T get() const
Definition:
EventSetup.h:80
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:33
edm::EventSetup
Definition:
EventSetup.h:57
get
#define get
MuonAlignmentInputMethod::MuonAlignmentInputMethod
MuonAlignmentInputMethod()
Definition:
MuonAlignmentInputMethod.cc:36
MuonGeometryRecord.h
MuonGeometryRecord
Definition:
MuonGeometryRecord.h:34
MuonAlignmentInputMethod::newAlignableMuon
virtual AlignableMuon * newAlignableMuon(const edm::EventSetup &iSetup) const
Definition:
MuonAlignmentInputMethod.cc:62
Generated for CMSSW Reference Manual by
1.8.16