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 
38 
39  virtual std::vector<Alignable*> components() const
40  {
41 
42  std::vector<Alignable*> result;
43  result.insert( result.end(), theCSCStations.begin(), theCSCStations.end() );
44  return result;
45 
46  }
47 
48  // gets the global position as the average over all positions of the layers
50  // get the global orientation
51  RotationType computeOrientation() ; //see explanation for "theOrientation"
52  // get the Surface
54 
56 
58  friend std::ostream& operator << ( std::ostream&, const AlignableCSCEndcap& );
59 
61  void dump( void ) const;
62 
63  // Get alignments sorted by DetId
64  Alignments* alignments() const;
65 
66  // Get alignment errors sorted by DetId
68 
69 
70 
71 private:
72 
73  std::vector<AlignableCSCStation*> theCSCStations;
74 
75 
76 };
77 
78 #endif
79 
80 
81 
82 
friend std::ostream & operator<<(std::ostream &, const AlignableCSCEndcap &)
Printout muon End Cap information (not recursive)
~AlignableCSCEndcap()
Clean delete of the vector and its elements.
virtual std::vector< Alignable * > components() const
Return vector of direct components.
void dump(void) const
Recursive printout of the muon End Cap structure.
AlignableSurface computeSurface()
Alignments * alignments() const
Return alignment data.
AlignmentErrorsExtended * alignmentErrors() const
Return vector of alignment errors.
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.