CMS 3D CMS Logo

AlignableMuon.h
Go to the documentation of this file.
1 #ifndef Alignment_MuonAlignment_AlignableMuon_H
2 #define Alignment_MuonAlignment_AlignableMuon_H
3 
15 
18 
19 class CSCGeometry;
20 
21 // Classes that will be used to construct the muon
22 class AlignableDTBarrel;
23 class AlignableDTWheel;
24 class AlignableDTStation;
25 class AlignableDTChamber;
26 class AlignableCSCEndcap;
28 class AlignableCSCRing;
30 
32 
34 public:
36  AlignableMuon(const DTGeometry*, const CSCGeometry*);
37 
39  ~AlignableMuon() override;
40 
43  void update(const DTGeometry*, const CSCGeometry*);
44 
47 
49  virtual Alignable* mother() { return nullptr; }
50 
63 
66 
69 
72 
75 
78 
79 private:
82 
85 
88 
90  Alignments* alignments() const override;
91 
93  AlignmentErrorsExtended* alignmentErrors() const override;
94 
95  // Sub-structure builders
96 
98  void buildDTBarrel(const DTGeometry*, bool update = false);
99 
101  void buildCSCEndcap(const CSCGeometry*, bool update = false);
102 
104  void recursiveSetMothers(Alignable* alignable);
105 
108 
110  std::vector<AlignableDTChamber*> theDTChambers;
111  std::vector<AlignableDTStation*> theDTStations;
112  std::vector<AlignableDTWheel*> theDTWheels;
113  std::vector<AlignableDTBarrel*> theDTBarrel;
114 
115  std::vector<AlignableCSCChamber*> theCSCChambers;
116  std::vector<AlignableCSCStation*> theCSCStations;
117  std::vector<AlignableCSCRing*> theCSCRings;
118  std::vector<AlignableCSCEndcap*> theCSCEndcaps;
119 
121 };
122 
123 #endif //AlignableMuon_H
A muon DT Chamber( an AlignableDet )
AlignmentErrorsExtended * alignmentErrors() const override
Get alignment errors sorted by DetId.
align::Alignables DTLayers()
Methods to return specific of components.
void update(const DTGeometry *, const CSCGeometry *)
align::Alignables CSCChambers()
Alignments * alignments() const override
Get alignments sorted by DetId.
align::Alignables DTBarrel()
align::Alignables CSCStations()
align::Alignables DTStations()
~AlignableMuon() override
Destructor.
virtual Alignable * mother()
Alignable tracker has no mother.
Definition: AlignableMuon.h:49
AlignableSurface computeSurface()
Get the Surface.
const AlignableObjectId & objectIdProvider() const
Return muon alignable object ID provider derived from the muon system geometry.
Definition: AlignableMuon.h:77
std::vector< AlignableCSCEndcap * > theCSCEndcaps
Alignments * dtAlignments()
Get DT alignments sorted by DetId.
const AlignableObjectId alignableObjectId_
alignable object ID provider
align::Alignables CSCEndcaps()
align::Alignables theMuonComponents
align::Alignables DTChambers()
align::Alignables DTWheels()
std::vector< AlignableCSCStation * > theCSCStations
void recursiveSetMothers(Alignable *alignable)
Set mothers recursively.
Allows conversion between type and name, and vice-versa.
std::vector< AlignableDTStation * > theDTStations
AlignmentErrorsExtended * cscAlignmentErrorsExtended()
Get CSC alignment errors sorted by DetId.
align::Alignables CSCLayers()
void buildCSCEndcap(const CSCGeometry *, bool update=false)
Build muon end caps.
std::vector< AlignableDTChamber * > theDTChambers
Containers of separate components.
std::vector< AlignableCSCRing * > theCSCRings
align::Alignables DTSuperLayers()
PositionType computePosition()
Get the position (centered at 0 by default)
Alignments * cscAlignments()
Get CSC alignments sorted by DetId.
const align::Alignables & components() const final
Return all components.
Definition: AlignableMuon.h:46
AlignableMuon(const DTGeometry *, const CSCGeometry *)
Constructor from geometries.
AlignmentErrorsExtended * dtAlignmentErrorsExtended()
Get DT alignment errors sorted by DetId.
std::vector< Alignable * > Alignables
Definition: Utilities.h:31
align::Alignables CSCRings()
void buildDTBarrel(const DTGeometry *, bool update=false)
Build muon barrel.
RotationType computeOrientation()
Get the global orientation (no rotation by default)
std::vector< AlignableDTBarrel * > theDTBarrel
std::vector< AlignableDTWheel * > theDTWheels
Constructor of the full muon geometry.
Definition: AlignableMuon.h:33
std::vector< AlignableCSCChamber * > theCSCChambers
A muon CSC Chamber( an AlignableDet )