CMS 3D CMS Logo

AlignableCSCEndcap.h
Go to the documentation of this file.
1 #ifndef Alignment_MuonAlignment_AlignableCSCEndcap_H
2 #define Alignment_MuonAlignment_AlignableCSCEndcap_H
3 
16 
18 
19 
20 
21 #include <vector>
22 
23 class GeomDet;
24 
29 
31 {
32 
33  public:
34 
35  AlignableCSCEndcap( const std::vector<AlignableCSCStation*>& cscStations );
36 
37  // gets the global position as the average over all positions of the layers
39  // get the global orientation
40  RotationType computeOrientation() ; //see explanation for "theOrientation"
41  // get the Surface
43 
45 
47  friend std::ostream& operator << ( std::ostream&, const AlignableCSCEndcap& );
48 
50  void dump( void ) const override;
51 
52  // Get alignments sorted by DetId
53  Alignments* alignments() const override;
54 
55  // Get alignment errors sorted by DetId
56  AlignmentErrorsExtended* alignmentErrors() const override;
57 
58 
59 
60 private:
61 
62  std::vector<AlignableCSCStation*> theCSCStations;
63 
64 
65 };
66 
67 #endif
68 
69 
70 
71 
void dump(void) const override
Recursive printout of the muon End Cap structure.
friend std::ostream & operator<<(std::ostream &, const AlignableCSCEndcap &)
Printout muon End Cap information (not recursive)
Alignments * alignments() const override
Return alignment data.
AlignmentErrorsExtended * alignmentErrors() const override
Return vector of alignment errors.
AlignableSurface computeSurface()
RotationType computeOrientation()
Just initialize to default given by default constructor of a RotationType.
std::vector< AlignableCSCStation * > theCSCStations
PositionType computePosition()
Compute average z position from all components (x and y forced to 0)
AlignableCSCEndcap(const std::vector< AlignableCSCStation * > &cscStations)
The constructor simply copies the vector of stations and computes the surface from them...
AlignableCSCStation & station(int i)
Return AlignableCSCEndcap station at given index.