CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
AlignableMuon Class Reference

Constructor of the full muon geometry. More...

#include <AlignableMuon.h>

Inheritance diagram for AlignableMuon:
AlignableComposite Alignable

Public Member Functions

 AlignableMuon (const DTGeometry *, const CSCGeometry *)
 Constructor from geometries. More...
 
const align::Alignablescomponents () const final
 Return all components. More...
 
AlignmentErrorsExtendedcscAlignmentErrorsExtended ()
 Get CSC alignment errors sorted by DetId. More...
 
AlignmentscscAlignments ()
 Get CSC alignments sorted by DetId. More...
 
align::Alignables CSCChambers ()
 
align::Alignables CSCEndcaps ()
 
align::Alignables CSCLayers ()
 
align::Alignables CSCRings ()
 
align::Alignables CSCStations ()
 
AlignmentErrorsExtendeddtAlignmentErrorsExtended ()
 Get DT alignment errors sorted by DetId. More...
 
AlignmentsdtAlignments ()
 Get DT alignments sorted by DetId. More...
 
align::Alignables DTBarrel ()
 
align::Alignables DTChambers ()
 
align::Alignables DTLayers ()
 Methods to return specific of components. More...
 
align::Alignables DTStations ()
 
align::Alignables DTSuperLayers ()
 
align::Alignables DTWheels ()
 
virtual Alignablemother ()
 Alignable tracker has no mother. More...
 
const AlignableObjectIdobjectIdProvider () const
 Return muon alignable object ID provider derived from the muon system geometry. More...
 
void update (const DTGeometry *, const CSCGeometry *)
 
 ~AlignableMuon () override
 Destructor. More...
 
- Public Member Functions inherited from AlignableComposite
void addAlignmentPositionError (const AlignmentPositionError &ape, bool propagateDown) override
 
void addAlignmentPositionErrorFromLocalRotation (const RotationType &rotation, bool propagateDown) override
 
void addAlignmentPositionErrorFromRotation (const RotationType &rotation, bool propagateDown) override
 
void addComponent (Alignable *component) final
 
void addSurfaceDeformation (const SurfaceDeformation *deformation, bool propagateDown) override
 
 AlignableComposite (align::ID id, StructureType aType, const RotationType &rot=RotationType())
 
StructureType alignableObjectId () const override
 Return the alignable type identifier. More...
 
void dump () const override
 Recursive printout of alignable structure. More...
 
void move (const GlobalVector &displacement) override
 Move with respect to the global reference frame. More...
 
virtual void moveComponentLocal (const int i, const LocalVector &localDisplacement)
 Move a single component with respect to the local reference frame. More...
 
virtual void moveComponentsLocal (const LocalVector &localDisplacement)
 Move with respect to the local reference frame. More...
 
void recursiveComponents (Alignables &result) const override
 Provide all components, subcomponents etc. (cf. description in base class) More...
 
void rotateInGlobalFrame (const RotationType &rotation) override
 Rotation interpreted in global reference frame. More...
 
void setAlignmentPositionError (const AlignmentPositionError &ape, bool propagateDown) override
 
void setSurfaceDeformation (const SurfaceDeformation *deformation, bool propagateDown) override
 Set the surface deformation parameters - if (!propagateDown) do not affect daughters. More...
 
int surfaceDeformationIdPairs (std::vector< std::pair< int, SurfaceDeformation * > > &) const override
 Return surface deformations. More...
 
void update (align::ID, StructureType aType, const RotationType &rot=RotationType())
 
 ~AlignableComposite () override
 deleting its components More...
 
- Public Member Functions inherited from Alignable
 Alignable (align::ID, const AlignableSurface &)
 
 Alignable (align::ID, const RotationType &)
 
AlignmentParametersalignmentParameters () const
 Get the AlignmentParameters. More...
 
virtual void cacheTransformation ()
 cache the current position, rotation and other parameters (e.g. surface deformations), also for possible components More...
 
virtual void cacheTransformation (const align::RunNumber &)
 
virtual CompConstraintType compConstraintType () const
 Return the alignable type of contraints wrt. its components. More...
 
const AlignablesdeepComponents () const
 
const GlobalVectordisplacement () const
 Return change of the global position since the creation of the object. More...
 
bool firstCompsWithParams (Alignables &paramComps) const
 
const DetIdgeomDetId () const
 
const PositionTypeglobalPosition () const
 Return the global position of the object. More...
 
const RotationTypeglobalRotation () const
 Return the global orientation of the object. More...
 
align::ID id () const
 Return the ID of Alignable, i.e. DetId of 'first' component GeomDet(Unit). More...
 
bool lastCompsWithParams (Alignables &paramComps) const
 
Alignablemother () const
 Return pointer to container alignable (if any) More...
 
virtual void recenterSurface ()
 Recenter surface object without moving possible components. More...
 
virtual void recursiveComponents (Alignables &result) const =0
 
virtual void restoreCachedTransformation ()
 restore the previously cached transformation, also for possible components More...
 
virtual void restoreCachedTransformation (const align::RunNumber &)
 
virtual void rotateAroundGlobalAxis (const GlobalVector &axis, Scalar radians)
 Rotation around arbitratry global axis. More...
 
virtual void rotateAroundGlobalX (Scalar radians)
 Rotation around global x-axis. More...
 
virtual void rotateAroundGlobalY (Scalar radians)
 Rotation around global y-axis. More...
 
virtual void rotateAroundGlobalZ (Scalar radians)
 Rotation around global z-axis. More...
 
virtual void rotateAroundLocalAxis (const LocalVector &axis, Scalar radians)
 Rotation around arbitratry local axis. More...
 
virtual void rotateAroundLocalX (Scalar radians)
 Rotation around local x-axis. More...
 
virtual void rotateAroundLocalY (Scalar radians)
 Rotation around local y-axis. More...
 
virtual void rotateAroundLocalZ (Scalar radians)
 Rotation around local z-axis. More...
 
virtual void rotateInLocalFrame (const RotationType &rotation)
 Rotation intepreted in the local reference frame. More...
 
const RotationTyperotation () const
 Return change of orientation since the creation of the object. More...
 
void setAlignmentParameters (AlignmentParameters *dap)
 Set the AlignmentParameters. More...
 
void setMother (Alignable *mother)
 Assign mother to alignable. More...
 
void setSurvey (const SurveyDet *)
 Set survey info. More...
 
int size () const
 Return number of direct components. More...
 
const AlignableSurfacesurface () const
 Return the Surface (global position and orientation) of the object. More...
 
AlignmentSurfaceDeformationssurfaceDeformations () const
 Return surface deformations, sorted by DetId. More...
 
const SurveyDetsurvey () const
 Return survey info. More...
 
void update (align::ID, const AlignableSurface &)
 
virtual ~Alignable ()
 Destructor. More...
 

Private Member Functions

AlignmentErrorsExtendedalignmentErrors () const override
 Get alignment errors sorted by DetId. More...
 
Alignmentsalignments () const override
 Get alignments sorted by DetId. More...
 
void buildCSCEndcap (const CSCGeometry *, bool update=false)
 Build muon end caps. More...
 
void buildDTBarrel (const DTGeometry *, bool update=false)
 Build muon barrel. More...
 
RotationType computeOrientation ()
 Get the global orientation (no rotation by default) More...
 
PositionType computePosition ()
 Get the position (centered at 0 by default) More...
 
AlignableSurface computeSurface ()
 Get the Surface. More...
 
void recursiveSetMothers (Alignable *alignable)
 Set mothers recursively. More...
 

Private Attributes

const AlignableObjectId alignableObjectId_
 alignable object ID provider More...
 
std::vector< AlignableCSCChamber * > theCSCChambers
 
std::vector< AlignableCSCEndcap * > theCSCEndcaps
 
std::vector< AlignableCSCRing * > theCSCRings
 
std::vector< AlignableCSCStation * > theCSCStations
 
std::vector< AlignableDTBarrel * > theDTBarrel
 
std::vector< AlignableDTChamber * > theDTChambers
 Containers of separate components. More...
 
std::vector< AlignableDTStation * > theDTStations
 
std::vector< AlignableDTWheel * > theDTWheels
 
align::Alignables theMuonComponents
 

Additional Inherited Members

- Public Types inherited from Alignable
typedef align::Alignables Alignables
 
enum  CompConstraintType { CompConstraintType::NONE, CompConstraintType::POSITION, CompConstraintType::POSITION_Z }
 
typedef align::GlobalVector GlobalVector
 
typedef align::LocalVector LocalVector
 
typedef align::PositionType PositionType
 
typedef align::RotationType RotationType
 
typedef align::Scalar Scalar
 
typedef align::StructureType StructureType
 
- Protected Types inherited from Alignable
template<class T >
using Cache = std::map< align::RunNumber, T >
 
- Protected Member Functions inherited from AlignableComposite
 AlignableComposite (const GeomDet *geomDet)
 Constructor from GeomDet, only for use in AlignableDet. More...
 
void setSurface (const AlignableSurface &s)
 
void update (const GeomDet *geomDet)
 
template<class T >
void update (T)=delete
 
- Protected Member Functions inherited from Alignable
void addDisplacement (const GlobalVector &displacement)
 
void addRotation (const RotationType &rotation)
 
virtual void updateMother (const GlobalVector &shift)
 
- Protected Attributes inherited from AlignableComposite
StructureType theStructureType
 
- Protected Attributes inherited from Alignable
CompConstraintType compConstraintType_ {CompConstraintType::NONE}
 
Cache< GlobalVectordisplacementsCache_
 
Cache< RotationTyperotationsCache_
 
Cache< AlignableSurfacesurfacesCache_
 
GlobalVector theCachedDisplacement
 
RotationType theCachedRotation
 
AlignableSurface theCachedSurface
 
Alignables theDeepComponents
 
DetId theDetId
 
GlobalVector theDisplacement
 
align::ID theId
 
RotationType theRotation
 
AlignableSurface theSurface
 

Detailed Description

Constructor of the full muon geometry.

The alignable muon.

Date
2008/04/25 21:23:15
Revision
1.21
Author
Andre Sznajder - UERJ(Brazil)

Definition at line 37 of file AlignableMuon.h.

Constructor & Destructor Documentation

AlignableMuon::AlignableMuon ( const DTGeometry dtGeometry,
const CSCGeometry cscGeometry 
)

Constructor from geometries.

Definition at line 30 of file AlignableMuon.cc.

References buildCSCEndcap(), buildDTBarrel(), components(), recursiveSetMothers(), and Alignable::theId.

31  : AlignableComposite(0, align::AlignableMuon), // cannot yet set id, use 0
32  alignableObjectId_(nullptr, dtGeometry, cscGeometry)
33 {
34 
35  // Build the muon barrel
36  buildDTBarrel( dtGeometry );
37 
38  // Build the muon end caps
39  buildCSCEndcap( cscGeometry );
40 
41  // Set links to mothers recursively
42  recursiveSetMothers( this );
43 
44  // now can set id as for all composites: id of first component
45  theId = this->components()[0]->id();
46 
47  edm::LogInfo("AlignableMuon") << "Constructing alignable muon objects DONE";
48 
49 
50 }
AlignableComposite()
default constructor hidden
const AlignableObjectId alignableObjectId_
alignable object ID provider
void recursiveSetMothers(Alignable *alignable)
Set mothers recursively.
void buildCSCEndcap(const CSCGeometry *, bool update=false)
Build muon end caps.
const align::Alignables & components() const final
Return all components.
Definition: AlignableMuon.h:53
void buildDTBarrel(const DTGeometry *, bool update=false)
Build muon barrel.
align::ID theId
Definition: Alignable.h:244
AlignableMuon::~AlignableMuon ( )
override

Destructor.

Definition at line 53 of file AlignableMuon.cc.

References theMuonComponents.

54 {
55 
56  for ( align::Alignables::iterator iter=theMuonComponents.begin();
57  iter != theMuonComponents.end(); iter++){
58  delete *iter;
59  }
60 
61 
62 }
align::Alignables theMuonComponents

Member Function Documentation

AlignmentErrorsExtended * AlignableMuon::alignmentErrors ( void  ) const
overrideprivatevirtual

Get alignment errors sorted by DetId.

Reimplemented from AlignableComposite.

Definition at line 456 of file AlignableMuon.cc.

References AlCaHLTBitMon_QueryRunRegistry::comp, components(), popcon2dropbox::copy(), mps_fire::i, AlignmentErrorsExtended::m_alignError, and jetUpdater_cfi::sort.

Referenced by objectIdProvider().

457 {
458 
460  AlignmentErrorsExtended* m_alignmentErrors = new AlignmentErrorsExtended();
461 
462  // Add components recursively
463  for ( align::Alignables::iterator i=comp.begin(); i!=comp.end(); i++ )
464  {
465  AlignmentErrorsExtended* tmpAlignmentErrorsExtended = (*i)->alignmentErrors();
466  std::copy( tmpAlignmentErrorsExtended->m_alignError.begin(), tmpAlignmentErrorsExtended->m_alignError.end(),
467  std::back_inserter(m_alignmentErrors->m_alignError) );
468  delete tmpAlignmentErrorsExtended;
469  }
470 
471  // sort by rawId
472  std::sort( m_alignmentErrors->m_alignError.begin(), m_alignmentErrors->m_alignError.end());
473 
474  return m_alignmentErrors;
475 
476 }
def copy(args, dbName)
std::vector< AlignTransformErrorExtended > m_alignError
const align::Alignables & components() const final
Return all components.
Definition: AlignableMuon.h:53
std::vector< Alignable * > Alignables
Definition: Utilities.h:32
Alignments * AlignableMuon::alignments ( void  ) const
overrideprivatevirtual

Get alignments sorted by DetId.

Reimplemented from AlignableComposite.

Definition at line 435 of file AlignableMuon.cc.

References AlCaHLTBitMon_QueryRunRegistry::comp, components(), popcon2dropbox::copy(), mps_fire::i, Alignments::m_align, and jetUpdater_cfi::sort.

Referenced by objectIdProvider().

436 {
437 
439  Alignments* m_alignments = new Alignments();
440  // Add components recursively
441  for ( align::Alignables::iterator i=comp.begin(); i!=comp.end(); i++ )
442  {
443  Alignments* tmpAlignments = (*i)->alignments();
444  std::copy( tmpAlignments->m_align.begin(), tmpAlignments->m_align.end(),
445  std::back_inserter(m_alignments->m_align) );
446  delete tmpAlignments;
447  }
448 
449  // sort by rawId
450  std::sort( m_alignments->m_align.begin(), m_alignments->m_align.end());
451 
452  return m_alignments;
453 
454 }
def copy(args, dbName)
std::vector< AlignTransform > m_align
Definition: Alignments.h:19
const align::Alignables & components() const final
Return all components.
Definition: AlignableMuon.h:53
std::vector< Alignable * > Alignables
Definition: Utilities.h:32
void AlignableMuon::buildCSCEndcap ( const CSCGeometry pCSC,
bool  update = false 
)
private

Build muon end caps.

Definition at line 181 of file AlignableMuon.cc.

References align::AlignableCSCChamber, align::AlignableCSCEndcap, align::AlignableCSCRing, align::AlignableCSCStation, CSCGeometry::chambers(), RecoEcal_EventContent_cff::ec, CSCDetId::endcap(), LogDebug, CSCDetId::ring(), CSCDetId::station(), theCSCChambers, theCSCEndcaps, theCSCRings, theCSCStations, and theMuonComponents.

Referenced by AlignableMuon(), objectIdProvider(), and update().

182 {
183 
184  LogDebug("Position") << "Constructing AlignableCSCBarrel";
185 
186  // Temporary container for stations in a given endcap
187  std::vector<AlignableCSCStation*> tmpCSCStationsInEndcap;
188 
189  // Loop over endcaps ( 1..2 )
190  for( int iec = 1 ; iec < 3 ; iec++ ){
191 
192  // Temporary container for rings in a given station
193  std::vector<AlignableCSCRing*> tmpCSCRingsInStation;
194 
195  // Loop over stations ( 1..4 )
196  for( int ist = 1 ; ist < 5 ; ist++ ){
197 
198  // Temporary container for chambers in a given ring
199  std::vector<AlignableCSCChamber*> tmpCSCChambersInRing;
200 
201  // Loop over rings ( 1..4 )
202  for ( int iri = 1; iri < 5; iri++ ){
203 
204  // Loop over geom CSC Chambers
205  int iChamber{0};
206  const CSCGeometry::ChamberContainer& vc = pCSC->chambers();
207  for(const auto& det: vc){
208 
209  // Get the CSCDet ID
210  CSCDetId cscId = det->id();
211 
212  // Get chamber, station, ring, layer and endcap labels of the CSC chamber
213  int ec = cscId.endcap();
214  int st = cscId.station();
215  int ri = cscId.ring();
216  //int ch = cscId.chamber();
217 
218  // Select the chambers in a given endcap, station, and ring
219  if ( iec == ec && ist == st && iri == ri ) {
220 
221  if (update) {
222  // Update the alignable CSC chamber
223  theCSCEndcaps[iec-1]->station(ist-1).ring(iri-1).chamber(iChamber).update(det);
224  } else {
225  AlignableCSCChamber* tmpCSCChamber = new AlignableCSCChamber(det);
226 
227  // Store the alignable CSC chambers
228  tmpCSCChambersInRing.push_back(tmpCSCChamber);
229  }
230 
231  ++iChamber;
232  // End If chamber selection
233  }
234 
235  // End loop over geom CSC chambers
236  }
237 
238  if (!update) {
239  // Not all stations have 4 rings: only add the rings that exist (have chambers associated with them)
240  if (!tmpCSCChambersInRing.empty()) {
241 
242  // Store the alignable CSC chambers
243  theCSCChambers.insert(theCSCChambers.end(),
244  tmpCSCChambersInRing.begin(),
245  tmpCSCChambersInRing.end());
246 
247  // Create the alignable CSC ring with chambers in a given ring
248  AlignableCSCRing* tmpCSCRing = new AlignableCSCRing(tmpCSCChambersInRing);
249 
250  // Store the CSC rings in a given station
251  tmpCSCRingsInStation.push_back(tmpCSCRing);
252 
253  // Clear the temporary vector of chambers in ring
254  tmpCSCChambersInRing.clear();
255 
256  // End if this ring exists
257  }
258  }
259 
260  // End loop over rings
261  }
262 
263  if (!update) {
264  // Create the alignable CSC station with rings in a given station
265  AlignableCSCStation* tmpCSCStation = new AlignableCSCStation(tmpCSCRingsInStation);
266 
267  // Store the alignable CSC rings
268  theCSCRings.insert(theCSCRings.end(), tmpCSCRingsInStation.begin(),
269  tmpCSCRingsInStation.end());
270 
271  // Store the CSC stations in a given endcap
272  tmpCSCStationsInEndcap.push_back(tmpCSCStation);
273 
274  // Clear the temporary vector of rings in station
275  tmpCSCRingsInStation.clear();
276  }
277 
278  // End loop over stations
279  }
280 
281  if (!update) {
282  // Create the alignable CSC endcap
283  AlignableCSCEndcap* tmpEndcap = new AlignableCSCEndcap(tmpCSCStationsInEndcap);
284 
285  // Store the alignable CSC stations
286  theCSCStations.insert(theCSCStations.end(), tmpCSCStationsInEndcap.begin(),
287  tmpCSCStationsInEndcap.end());
288 
289  // Store the alignable CSC endcaps
290  theCSCEndcaps.push_back(tmpEndcap);
291 
292  // Clear the temporary vector of stations in endcap
293  tmpCSCStationsInEndcap.clear();
294  }
295 
296  // End loop over endcaps
297  }
298 
299  if (!update) {
300  // Store the encaps in the muon components
301  theMuonComponents.insert(theMuonComponents.end(), theCSCEndcaps.begin(),
302  theCSCEndcaps.end());
303  }
304 }
#define LogDebug(id)
void update(const DTGeometry *, const CSCGeometry *)
const ChamberContainer & chambers() const
Return a vector of all chambers.
Definition: CSCGeometry.cc:121
std::vector< AlignableCSCEndcap * > theCSCEndcaps
int endcap() const
Definition: CSCDetId.h:93
align::Alignables theMuonComponents
std::vector< AlignableCSCStation * > theCSCStations
int ring() const
Definition: CSCDetId.h:75
std::vector< AlignableCSCRing * > theCSCRings
std::vector< const CSCChamber * > ChamberContainer
Definition: CSCGeometry.h:32
int station() const
Definition: CSCDetId.h:86
std::vector< AlignableCSCChamber * > theCSCChambers
A muon CSC Chamber( an AlignableDet )
void AlignableMuon::buildDTBarrel ( const DTGeometry pDT,
bool  update = false 
)
private

Build muon barrel.

Definition at line 81 of file AlignableMuon.cc.

References align::AlignableDTBarrel, align::AlignableDTChamber, align::AlignableDTStation, align::AlignableDTWheel, DTGeometry::chambers(), LogDebug, DTChamberId::station(), theDTBarrel, theDTChambers, theDTStations, theDTWheels, theMuonComponents, and DTChamberId::wheel().

Referenced by AlignableMuon(), objectIdProvider(), and update().

82 {
83 
84  LogDebug("Position") << "Constructing AlignableDTBarrel";
85 
86  // Temporary container for chambers in a given station and stations in a given wheel
87  std::vector<AlignableDTChamber*> tmpDTChambersInStation;
88  std::vector<AlignableDTStation*> tmpDTStationsInWheel;
89 
90 
91  // Loop over wheels ( -2..2 )
92  for( int iwh = -2 ; iwh < 3 ; iwh++ ){
93 
94  // Loop over stations ( 1..4 )
95  for( int ist = 1 ; ist < 5 ; ist++ ){
96 
97  // Loop over geom DT Chambers
98  int iChamber{0};
99  std::vector<const GeomDet*> theSLs; // FIXME: What is this vector meant to be for? Probably redundant since super layers are handled inside of the AlignableDTChamber.
100  for(const auto& det: pDT->chambers()){
101  // Get the chamber ID
102  DTChamberId chamberId = det->id();
103 
104  // Get wheel,station and sector of the chamber
105  int wh = chamberId.wheel();
106  int st = chamberId.station();
107  //int se = chamberId.sector();
108 
109  // Select the chambers in a given wheel in a given station
110  if ( iwh == wh && ist == st ){
111 
112  if (update) {
113  // Update the alignable DT chamber
114  theDTBarrel.back()->wheel(iwh+2).station(ist-1).chamber(iChamber).update(det);
115  } else {
116  // Create the alignable DT chamber
117  AlignableDTChamber* tmpDTChamber = new AlignableDTChamber(det);
118 
119  // Store the DT chambers in a given DT Station and Wheel
120  tmpDTChambersInStation.push_back( tmpDTChamber );
121  }
122 
123  ++iChamber;
124  // End chamber selection
125  }
126 
127  // End loop over chambers
128  }
129 
130  if (!update) {
131  // Store the DT chambers
132  theDTChambers.insert(theDTChambers.end(), tmpDTChambersInStation.begin(),
133  tmpDTChambersInStation.end());
134 
135  // Create the alignable DT station with chambers in a given station and wheel
136  AlignableDTStation* tmpDTStation = new AlignableDTStation(tmpDTChambersInStation);
137 
138  // Store the DT stations in a given wheel
139  tmpDTStationsInWheel.push_back(tmpDTStation);
140 
141  // Clear the temporary vector of chambers in a station
142  tmpDTChambersInStation.clear();
143  }
144  // End loop over stations
145  }
146 
147  if (!update) {
148  // Store The DT stations
149  theDTStations.insert(theDTStations.end(),tmpDTStationsInWheel.begin(),
150  tmpDTStationsInWheel.end());
151 
152  // Create the alignable DT wheel
153  AlignableDTWheel* tmpWheel = new AlignableDTWheel(tmpDTStationsInWheel);
154 
155 
156  // Store the DT wheels
157  theDTWheels.push_back(tmpWheel);
158 
159  // Clear temporary vector of stations in a wheel
160  tmpDTStationsInWheel.clear();
161  }
162 
163  // End loop over wheels
164  }
165 
166  if (!update) {
167  // Create the alignable Muon Barrel
168  AlignableDTBarrel* tmpDTBarrel = new AlignableDTBarrel(theDTWheels);
169 
170  // Store the barrel
171  theDTBarrel.push_back(tmpDTBarrel);
172 
173  // Store the barrel in the muon
174  theMuonComponents.push_back(tmpDTBarrel);
175  }
176 }
#define LogDebug(id)
A muon DT Chamber( an AlignableDet )
const std::vector< const DTChamber * > & chambers() const
Return a vector of all Chamber.
Definition: DTGeometry.cc:102
void update(const DTGeometry *, const CSCGeometry *)
align::Alignables theMuonComponents
std::vector< AlignableDTStation * > theDTStations
std::vector< AlignableDTChamber * > theDTChambers
Containers of separate components.
std::vector< AlignableDTBarrel * > theDTBarrel
std::vector< AlignableDTWheel * > theDTWheels
int station() const
Return the station number.
Definition: DTChamberId.h:51
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:45
const align::Alignables& AlignableMuon::components ( ) const
inlinefinalvirtual

Return all components.

Reimplemented from AlignableComposite.

Definition at line 53 of file AlignableMuon.h.

References theMuonComponents.

Referenced by AlignableMuon(), alignmentErrors(), and alignments().

53 { return theMuonComponents; }
align::Alignables theMuonComponents
RotationType AlignableMuon::computeOrientation ( )
private

Get the global orientation (no rotation by default)

Referenced by objectIdProvider().

PositionType AlignableMuon::computePosition ( )
private

Get the position (centered at 0 by default)

Referenced by objectIdProvider().

AlignableSurface AlignableMuon::computeSurface ( )
private

Get the Surface.

Referenced by objectIdProvider().

AlignmentErrorsExtended * AlignableMuon::cscAlignmentErrorsExtended ( void  )

Get CSC alignment errors sorted by DetId.

Definition at line 511 of file AlignableMuon.cc.

References popcon2dropbox::copy(), CSCEndcaps(), and AlignmentErrorsExtended::m_alignError.

Referenced by AlignmentProducerBase::applyAlignmentsToGeometry(), MuonAlignment::copyAlignmentToSurvey(), mother(), MisalignedMuonESProducer::produce(), MuonAlignment::saveCSCtoDB(), MuonAlignmentOutputXML::write(), and AlignmentProducerBase::writeForRunRange().

512 {
513 
514  // Retrieve muon endcaps alignment errors
515  AlignmentErrorsExtended* cscEndCap1Errors = this->CSCEndcaps().front()->alignmentErrors();
516  AlignmentErrorsExtended* cscEndCap2Errors = this->CSCEndcaps().back()->alignmentErrors();
517  AlignmentErrorsExtended* tmpAlignmentErrorsExtended = new AlignmentErrorsExtended();
518 
519  std::copy(cscEndCap1Errors->m_alignError.begin(), cscEndCap1Errors->m_alignError.end(), back_inserter(tmpAlignmentErrorsExtended->m_alignError) );
520  std::copy(cscEndCap2Errors->m_alignError.begin(), cscEndCap2Errors->m_alignError.end(), back_inserter(tmpAlignmentErrorsExtended->m_alignError) );
521 
522  return tmpAlignmentErrorsExtended;
523 
524 }
def copy(args, dbName)
align::Alignables CSCEndcaps()
std::vector< AlignTransformErrorExtended > m_alignError
Alignments * AlignableMuon::cscAlignments ( void  )

Get CSC alignments sorted by DetId.

Definition at line 496 of file AlignableMuon.cc.

References popcon2dropbox::copy(), CSCEndcaps(), and Alignments::m_align.

Referenced by AlignmentProducerBase::applyAlignmentsToGeometry(), mother(), MisalignedMuonESProducer::produce(), MuonAlignment::saveCSCtoDB(), and AlignmentProducerBase::writeForRunRange().

497 {
498 
499  // Retrieve muon endcaps alignments
500  Alignments* cscEndCap1 = this->CSCEndcaps().front()->alignments();
501  Alignments* cscEndCap2 = this->CSCEndcaps().back()->alignments();
502  Alignments* tmpAlignments = new Alignments();
503 
504  std::copy( cscEndCap1->m_align.begin(), cscEndCap1->m_align.end(), back_inserter( tmpAlignments->m_align ) );
505  std::copy( cscEndCap2->m_align.begin(), cscEndCap2->m_align.end(), back_inserter( tmpAlignments->m_align ) );
506 
507  return tmpAlignments;
508 
509 }
def copy(args, dbName)
std::vector< AlignTransform > m_align
Definition: Alignments.h:19
align::Alignables CSCEndcaps()
align::Alignables AlignableMuon::CSCChambers ( )

Definition at line 392 of file AlignableMuon.cc.

References popcon2dropbox::copy(), mps_fire::result, and theCSCChambers.

Referenced by AlignmentParameterSelector::addSelection(), CSCLayers(), MuonAlignmentFromReference::initialize(), mother(), and MuonScenarioBuilder::moveCSCSectors().

393 {
395  copy( theCSCChambers.begin(), theCSCChambers.end(), back_inserter(result) );
396  return result;
397 }
def copy(args, dbName)
std::vector< Alignable * > Alignables
Definition: Utilities.h:32
std::vector< AlignableCSCChamber * > theCSCChambers
align::Alignables AlignableMuon::CSCEndcaps ( )
align::Alignables AlignableMuon::CSCLayers ( )

Definition at line 376 of file AlignableMuon.cc.

References chambers, CSCChambers(), LayerTriplets::layers(), and mps_fire::result.

Referenced by AlignmentParameterSelector::addSelection(), and mother().

377 {
379 
381  for (align::Alignables::const_iterator chamberIter = chambers.begin(); chamberIter != chambers.end(); ++chamberIter) {
382  align::Alignables layers = (*chamberIter)->components();
383  for (align::Alignables::const_iterator layerIter = layers.begin(); layerIter != layers.end(); ++layerIter) {
384  result.push_back(*layerIter);
385  }
386  }
387 
388  return result;
389 }
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
Definition: LayerTriplets.cc:4
align::Alignables CSCChambers()
std::vector< Alignable * > Alignables
Definition: Utilities.h:32
static char chambers[264][20]
Definition: ReadPGInfo.cc:243
align::Alignables AlignableMuon::CSCRings ( )

Definition at line 400 of file AlignableMuon.cc.

References popcon2dropbox::copy(), mps_fire::result, and theCSCRings.

Referenced by AlignmentParameterSelector::addSelection(), and mother().

401 {
403  copy( theCSCRings.begin(), theCSCRings.end(), back_inserter(result) );
404  return result;
405 }
def copy(args, dbName)
std::vector< AlignableCSCRing * > theCSCRings
std::vector< Alignable * > Alignables
Definition: Utilities.h:32
align::Alignables AlignableMuon::CSCStations ( )

Definition at line 408 of file AlignableMuon.cc.

References popcon2dropbox::copy(), mps_fire::result, and theCSCStations.

Referenced by AlignmentParameterSelector::addSelection(), and mother().

409 {
411  copy( theCSCStations.begin(), theCSCStations.end(), back_inserter(result) );
412  return result;
413 }
def copy(args, dbName)
std::vector< AlignableCSCStation * > theCSCStations
std::vector< Alignable * > Alignables
Definition: Utilities.h:32
AlignmentErrorsExtended * AlignableMuon::dtAlignmentErrorsExtended ( void  )

Get DT alignment errors sorted by DetId.

Definition at line 487 of file AlignableMuon.cc.

References DTBarrel().

Referenced by AlignmentProducerBase::applyAlignmentsToGeometry(), MuonAlignment::copyAlignmentToSurvey(), mother(), MisalignedMuonESProducer::produce(), MuonAlignment::saveDTtoDB(), MuonAlignmentOutputXML::write(), and AlignmentProducerBase::writeForRunRange().

488 {
489  // Retrieve muon barrel alignment errors
490  AlignmentErrorsExtended* tmpAlignmentErrorsExtended = this->DTBarrel().front()->alignmentErrors();
491 
492  return tmpAlignmentErrorsExtended;
493 
494 }
align::Alignables DTBarrel()
Alignments * AlignableMuon::dtAlignments ( void  )

Get DT alignments sorted by DetId.

Definition at line 478 of file AlignableMuon.cc.

References DTBarrel().

Referenced by AlignmentProducerBase::applyAlignmentsToGeometry(), mother(), MisalignedMuonESProducer::produce(), MuonAlignment::saveDTtoDB(), and AlignmentProducerBase::writeForRunRange().

479 {
480  // Retrieve muon barrel alignments
481  Alignments* tmpAlignments = this->DTBarrel().front()->alignments();
482 
483  return tmpAlignments;
484 
485 }
align::Alignables DTBarrel()
align::Alignables AlignableMuon::DTBarrel ( )
align::Alignables AlignableMuon::DTChambers ( )

Definition at line 343 of file AlignableMuon.cc.

References popcon2dropbox::copy(), mps_fire::result, and theDTChambers.

Referenced by AlignmentParameterSelector::addSelection(), DTLayers(), DTSuperLayers(), MuonAlignmentFromReference::initialize(), mother(), and MuonScenarioBuilder::moveDTSectors().

344 {
346  copy( theDTChambers.begin(), theDTChambers.end(), back_inserter(result) );
347  return result;
348 }
def copy(args, dbName)
std::vector< AlignableDTChamber * > theDTChambers
Containers of separate components.
std::vector< Alignable * > Alignables
Definition: Utilities.h:32
align::Alignables AlignableMuon::DTLayers ( )

Methods to return specific of components.

Definition at line 308 of file AlignableMuon.cc.

References chambers, DTChambers(), LayerTriplets::layers(), and mps_fire::result.

Referenced by AlignmentParameterSelector::addSelection(), and mother().

309 {
311 
313  for (align::Alignables::const_iterator chamberIter = chambers.begin(); chamberIter != chambers.end(); ++chamberIter) {
314  align::Alignables superlayers = (*chamberIter)->components();
315  for (align::Alignables::const_iterator superlayerIter = superlayers.begin(); superlayerIter != superlayers.end(); ++superlayerIter) {
316  align::Alignables layers = (*superlayerIter)->components();
317  for (align::Alignables::const_iterator layerIter = layers.begin(); layerIter != layers.end(); ++layerIter) {
318  result.push_back(*layerIter);
319  }
320  }
321  }
322 
323  return result;
324 }
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
Definition: LayerTriplets.cc:4
align::Alignables DTChambers()
std::vector< Alignable * > Alignables
Definition: Utilities.h:32
static char chambers[264][20]
Definition: ReadPGInfo.cc:243
align::Alignables AlignableMuon::DTStations ( )

Definition at line 351 of file AlignableMuon.cc.

References popcon2dropbox::copy(), mps_fire::result, and theDTStations.

Referenced by AlignmentParameterSelector::addSelection(), and mother().

352 {
354  copy( theDTStations.begin(), theDTStations.end(), back_inserter(result) );
355  return result;
356 }
def copy(args, dbName)
std::vector< AlignableDTStation * > theDTStations
std::vector< Alignable * > Alignables
Definition: Utilities.h:32
align::Alignables AlignableMuon::DTSuperLayers ( )

Definition at line 327 of file AlignableMuon.cc.

References chambers, DTChambers(), and mps_fire::result.

Referenced by AlignmentParameterSelector::addSelection(), and mother().

328 {
330 
332  for (align::Alignables::const_iterator chamberIter = chambers.begin(); chamberIter != chambers.end(); ++chamberIter) {
333  align::Alignables superlayers = (*chamberIter)->components();
334  for (align::Alignables::const_iterator superlayerIter = superlayers.begin(); superlayerIter != superlayers.end(); ++superlayerIter) {
335  result.push_back(*superlayerIter);
336  }
337  }
338 
339  return result;
340 }
align::Alignables DTChambers()
std::vector< Alignable * > Alignables
Definition: Utilities.h:32
static char chambers[264][20]
Definition: ReadPGInfo.cc:243
align::Alignables AlignableMuon::DTWheels ( )

Definition at line 360 of file AlignableMuon.cc.

References popcon2dropbox::copy(), mps_fire::result, and theDTWheels.

Referenced by AlignmentParameterSelector::addSelection(), and mother().

361 {
363  copy( theDTWheels.begin(), theDTWheels.end(), back_inserter(result) );
364  return result;
365 }
def copy(args, dbName)
std::vector< Alignable * > Alignables
Definition: Utilities.h:32
std::vector< AlignableDTWheel * > theDTWheels
virtual Alignable* AlignableMuon::mother ( )
inlinevirtual
const AlignableObjectId& AlignableMuon::objectIdProvider ( ) const
inline

Return muon alignable object ID provider derived from the muon system geometry.

Definition at line 85 of file AlignableMuon.h.

References alignableObjectId_, alignmentErrors(), alignments(), buildCSCEndcap(), buildDTBarrel(), computeOrientation(), computePosition(), computeSurface(), and recursiveSetMothers().

Referenced by AlignableObjectId::commonObjectIdProvider(), MuonAlignmentInputXML::newAlignableMuon(), and MuonAlignmentOutputXML::write().

85 { return alignableObjectId_; }
const AlignableObjectId alignableObjectId_
alignable object ID provider
void AlignableMuon::recursiveSetMothers ( Alignable alignable)
private

Set mothers recursively.

Definition at line 425 of file AlignableMuon.cc.

References Alignable::components().

Referenced by AlignableMuon(), and objectIdProvider().

426 {
427  for (const auto& iter: alignable->components()) {
428  iter->setMother(alignable);
429  recursiveSetMothers(iter);
430  }
431 }
virtual const Alignables & components() const =0
Return vector of all direct components.
void recursiveSetMothers(Alignable *alignable)
Set mothers recursively.
void AlignableMuon::update ( const DTGeometry dtGeometry,
const CSCGeometry cscGeometry 
)

Updater using DTGeometry and CSCGeometry. The given geometries have to match the current ones.

Definition at line 66 of file AlignableMuon.cc.

References buildCSCEndcap(), and buildDTBarrel().

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), AlignmentProducerBase::createAlignables(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), dqm-mbProfile.Profile::finish(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), MatrixUtil.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

68 {
69  // update the muon barrel
70  buildDTBarrel(dtGeometry, /* update = */ true);
71 
72  // update the muon end caps
73  buildCSCEndcap(cscGeometry, /* update = */ true);
74 
75  edm::LogInfo("Alignment")
76  << "@SUB=AlignableMuon::update" << "Updating alignable muon objects DONE";
77 }
void buildCSCEndcap(const CSCGeometry *, bool update=false)
Build muon end caps.
void buildDTBarrel(const DTGeometry *, bool update=false)
Build muon barrel.

Member Data Documentation

const AlignableObjectId AlignableMuon::alignableObjectId_
private

alignable object ID provider

Definition at line 118 of file AlignableMuon.h.

Referenced by objectIdProvider().

std::vector<AlignableCSCChamber*> AlignableMuon::theCSCChambers
private

Definition at line 126 of file AlignableMuon.h.

Referenced by buildCSCEndcap(), and CSCChambers().

std::vector<AlignableCSCEndcap*> AlignableMuon::theCSCEndcaps
private

Definition at line 129 of file AlignableMuon.h.

Referenced by buildCSCEndcap(), and CSCEndcaps().

std::vector<AlignableCSCRing*> AlignableMuon::theCSCRings
private

Definition at line 128 of file AlignableMuon.h.

Referenced by buildCSCEndcap(), and CSCRings().

std::vector<AlignableCSCStation*> AlignableMuon::theCSCStations
private

Definition at line 127 of file AlignableMuon.h.

Referenced by buildCSCEndcap(), and CSCStations().

std::vector<AlignableDTBarrel*> AlignableMuon::theDTBarrel
private

Definition at line 124 of file AlignableMuon.h.

Referenced by buildDTBarrel(), and DTBarrel().

std::vector<AlignableDTChamber*> AlignableMuon::theDTChambers
private

Containers of separate components.

Definition at line 121 of file AlignableMuon.h.

Referenced by buildDTBarrel(), and DTChambers().

std::vector<AlignableDTStation*> AlignableMuon::theDTStations
private

Definition at line 122 of file AlignableMuon.h.

Referenced by buildDTBarrel(), and DTStations().

std::vector<AlignableDTWheel*> AlignableMuon::theDTWheels
private

Definition at line 123 of file AlignableMuon.h.

Referenced by buildDTBarrel(), and DTWheels().

align::Alignables AlignableMuon::theMuonComponents
private

Definition at line 131 of file AlignableMuon.h.

Referenced by buildCSCEndcap(), buildDTBarrel(), components(), and ~AlignableMuon().