CMS 3D CMS Logo

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

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

Inheritance diagram for MuonAlignmentInputDB:
MuonAlignmentInputMethod

Public Member Functions

 MuonAlignmentInputDB (const DTGeometry *dtGeometry, const CSCGeometry *cscGeometry, const GEMGeometry *gemGeometry, const Alignments *dtAlignments, const Alignments *cscAlignments, const Alignments *gemAlignments, const Alignments *globalPositionRcd)
 
 MuonAlignmentInputDB (const DTGeometry *dtGeometry, const CSCGeometry *cscGeometry, const GEMGeometry *gemGeometry, const Alignments *dtAlignments, const Alignments *cscAlignments, const Alignments *gemAlignments, const AlignmentErrorsExtended *dtAlignmentErrorsExtended, const AlignmentErrorsExtended *cscAlignmentErrorsExtended, const AlignmentErrorsExtended *gemAlignmentErrorsExtended, const Alignments *globalPositionRcd)
 
 MuonAlignmentInputDB (const MuonAlignmentInputDB &)=delete
 
AlignableMuonnewAlignableMuon () const override
 
const MuonAlignmentInputDBoperator= (const MuonAlignmentInputDB &)=delete
 
 ~MuonAlignmentInputDB () override
 
- Public Member Functions inherited from MuonAlignmentInputMethod
 MuonAlignmentInputMethod ()
 
 MuonAlignmentInputMethod (const DTGeometry *dtGeometry, const CSCGeometry *cscGeometry, const GEMGeometry *gemGeometry)
 
 MuonAlignmentInputMethod (const MuonAlignmentInputMethod &)=delete
 
const MuonAlignmentInputMethodoperator= (const MuonAlignmentInputMethod &)=delete
 
virtual ~MuonAlignmentInputMethod ()
 

Private Attributes

const AlignmentErrorsExtendedcscAlignmentErrorsExtended_
 
const AlignmentscscAlignments_
 
const CSCGeometrycscGeometry_
 
const AlignmentErrorsExtendeddtAlignmentErrorsExtended_
 
const AlignmentsdtAlignments_
 
const DTGeometrydtGeometry_
 
const AlignmentErrorsExtendedgemAlignmentErrorsExtended_
 
const AlignmentsgemAlignments_
 
const GEMGeometrygemGeometry_
 
const AlignmentsglobalPositionRcd_
 
const bool m_getAPEs
 

Detailed Description

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

Usage: <usage>

Definition at line 29 of file MuonAlignmentInputDB.h.

Constructor & Destructor Documentation

MuonAlignmentInputDB::MuonAlignmentInputDB ( const DTGeometry dtGeometry,
const CSCGeometry cscGeometry,
const GEMGeometry gemGeometry,
const Alignments dtAlignments,
const Alignments cscAlignments,
const Alignments gemAlignments,
const Alignments globalPositionRcd 
)

Definition at line 40 of file MuonAlignmentInputDB.cc.

47  : dtGeometry_(dtGeometry),
48  cscGeometry_(cscGeometry),
49  gemGeometry_(gemGeometry),
50  dtAlignments_(dtAlignments),
51  cscAlignments_(cscAlignments),
52  gemAlignments_(gemAlignments),
53  globalPositionRcd_(globalPositionRcd),
54  m_getAPEs(false) {}
const Alignments * dtAlignments_
const GEMGeometry * gemGeometry_
const Alignments * cscAlignments_
const DTGeometry * dtGeometry_
const Alignments * gemAlignments_
const CSCGeometry * cscGeometry_
const Alignments * globalPositionRcd_
MuonAlignmentInputDB::MuonAlignmentInputDB ( const DTGeometry dtGeometry,
const CSCGeometry cscGeometry,
const GEMGeometry gemGeometry,
const Alignments dtAlignments,
const Alignments cscAlignments,
const Alignments gemAlignments,
const AlignmentErrorsExtended dtAlignmentErrorsExtended,
const AlignmentErrorsExtended cscAlignmentErrorsExtended,
const AlignmentErrorsExtended gemAlignmentErrorsExtended,
const Alignments globalPositionRcd 
)

Definition at line 55 of file MuonAlignmentInputDB.cc.

65  : dtGeometry_(dtGeometry),
66  cscGeometry_(cscGeometry),
67  gemGeometry_(gemGeometry),
68  dtAlignments_(dtAlignments),
69  cscAlignments_(cscAlignments),
70  gemAlignments_(gemAlignments),
71  dtAlignmentErrorsExtended_(dtAlignmentErrorsExtended),
72  cscAlignmentErrorsExtended_(cscAlignmentErrorsExtended),
73  gemAlignmentErrorsExtended_(gemAlignmentErrorsExtended),
74  globalPositionRcd_(globalPositionRcd),
75  m_getAPEs(true) {}
const Alignments * dtAlignments_
const GEMGeometry * gemGeometry_
const AlignmentErrorsExtended * cscAlignmentErrorsExtended_
const Alignments * cscAlignments_
const AlignmentErrorsExtended * gemAlignmentErrorsExtended_
const DTGeometry * dtGeometry_
const Alignments * gemAlignments_
const AlignmentErrorsExtended * dtAlignmentErrorsExtended_
const CSCGeometry * cscGeometry_
const Alignments * globalPositionRcd_
MuonAlignmentInputDB::~MuonAlignmentInputDB ( )
override

Definition at line 82 of file MuonAlignmentInputDB.cc.

82 {}
MuonAlignmentInputDB::MuonAlignmentInputDB ( const MuonAlignmentInputDB )
delete

Member Function Documentation

AlignableMuon * MuonAlignmentInputDB::newAlignableMuon ( ) const
overridevirtual

Reimplemented from MuonAlignmentInputMethod.

Definition at line 100 of file MuonAlignmentInputDB.cc.

References align::AlignableMuon, GeometryAligner::applyAlignments(), cscAlignmentErrorsExtended_, cscAlignments_, cscGeometry_, align::DetectorGlobalPosition(), dtAlignmentErrorsExtended_, dtAlignments_, dtGeometry_, gemAlignmentErrorsExtended_, gemAlignments_, gemGeometry_, globalPositionRcd_, mps_fire::i, Alignments::m_align, AlignmentErrorsExtended::m_alignError, m_getAPEs, and DetId::Muon.

100  {
101  if (m_getAPEs) {
102  GeometryAligner aligner;
115 
116  } else {
117  AlignmentErrorsExtended dtAlignmentErrorsExtended2, cscAlignmentErrorsExtended2, gemAlignmentErrorsExtended2;
118 
119  for (std::vector<AlignTransform>::const_iterator i = dtAlignments_->m_align.begin();
120  i != dtAlignments_->m_align.end();
121  ++i) {
122  CLHEP::HepSymMatrix empty_matrix(3, 0);
123  AlignTransformErrorExtended empty_error(empty_matrix, i->rawId());
124  dtAlignmentErrorsExtended2.m_alignError.push_back(empty_error);
125  }
126  for (std::vector<AlignTransform>::const_iterator i = cscAlignments_->m_align.begin();
127  i != cscAlignments_->m_align.end();
128  ++i) {
129  CLHEP::HepSymMatrix empty_matrix(3, 0);
130  AlignTransformErrorExtended empty_error(empty_matrix, i->rawId());
131  cscAlignmentErrorsExtended2.m_alignError.push_back(empty_error);
132  }
133  for (std::vector<AlignTransform>::const_iterator i = gemAlignments_->m_align.begin();
134  i != gemAlignments_->m_align.end();
135  ++i) {
136  CLHEP::HepSymMatrix empty_matrix(3, 0);
137  AlignTransformErrorExtended empty_error(empty_matrix, i->rawId());
138  gemAlignmentErrorsExtended2.m_alignError.push_back(empty_error);
139  }
140 
141  GeometryAligner aligner;
144  &dtAlignmentErrorsExtended2,
148  &cscAlignmentErrorsExtended2,
152  &gemAlignmentErrorsExtended2,
154  }
155 
156  return new AlignableMuon(dtGeometry_, cscGeometry_, gemGeometry_);
157 }
const Alignments * dtAlignments_
Class to update a given geometry with a set of alignments.
const GEMGeometry * gemGeometry_
const AlignmentErrorsExtended * cscAlignmentErrorsExtended_
const Alignments * cscAlignments_
void applyAlignments(const C *geometry, const Alignments *alignments, const AlignmentErrorsExtended *alignmentErrors, const AlignTransform &globalCoordinates)
const AlignmentErrorsExtended * gemAlignmentErrorsExtended_
const DTGeometry * dtGeometry_
Definition: DetId.h:17
const Alignments * gemAlignments_
const AlignmentErrorsExtended * dtAlignmentErrorsExtended_
std::vector< AlignTransformErrorExtended > m_alignError
const CSCGeometry * cscGeometry_
const AlignTransform & DetectorGlobalPosition(const Alignments &allGlobals, const DetId &id)
const Alignments * globalPositionRcd_
const MuonAlignmentInputDB& MuonAlignmentInputDB::operator= ( const MuonAlignmentInputDB )
delete

Member Data Documentation

const AlignmentErrorsExtended* MuonAlignmentInputDB::cscAlignmentErrorsExtended_
private

Definition at line 71 of file MuonAlignmentInputDB.h.

Referenced by newAlignableMuon().

const Alignments* MuonAlignmentInputDB::cscAlignments_
private

Definition at line 68 of file MuonAlignmentInputDB.h.

Referenced by newAlignableMuon().

const CSCGeometry* MuonAlignmentInputDB::cscGeometry_
private

Definition at line 65 of file MuonAlignmentInputDB.h.

Referenced by newAlignableMuon().

const AlignmentErrorsExtended* MuonAlignmentInputDB::dtAlignmentErrorsExtended_
private

Definition at line 70 of file MuonAlignmentInputDB.h.

Referenced by newAlignableMuon().

const Alignments* MuonAlignmentInputDB::dtAlignments_
private

Definition at line 67 of file MuonAlignmentInputDB.h.

Referenced by newAlignableMuon().

const DTGeometry* MuonAlignmentInputDB::dtGeometry_
private

Definition at line 64 of file MuonAlignmentInputDB.h.

Referenced by newAlignableMuon().

const AlignmentErrorsExtended* MuonAlignmentInputDB::gemAlignmentErrorsExtended_
private

Definition at line 72 of file MuonAlignmentInputDB.h.

Referenced by newAlignableMuon().

const Alignments* MuonAlignmentInputDB::gemAlignments_
private

Definition at line 69 of file MuonAlignmentInputDB.h.

Referenced by newAlignableMuon().

const GEMGeometry* MuonAlignmentInputDB::gemGeometry_
private

Definition at line 66 of file MuonAlignmentInputDB.h.

Referenced by newAlignableMuon().

const Alignments* MuonAlignmentInputDB::globalPositionRcd_
private

Definition at line 73 of file MuonAlignmentInputDB.h.

Referenced by newAlignableMuon().

const bool MuonAlignmentInputDB::m_getAPEs
private

Definition at line 75 of file MuonAlignmentInputDB.h.

Referenced by newAlignableMuon().