CMS 3D CMS Logo

AlignableDTWheel.h
Go to the documentation of this file.
1 #ifndef Alignment_MuonAlignment_AlignableDTWheel_H
2 #define Alignment_MuonAlignment_AlignableDTWheel_H
3 
16 
18 
19 
20 #include <vector>
21 
22 class GeomDet;
23 
28 
30 {
31 
32  public:
33 
34  AlignableDTWheel( const std::vector<AlignableDTStation*>& dtStations );
35 
36  ~AlignableDTWheel() override;
37 
38  std::vector<Alignable*> components() const override
39  {
40 
41  std::vector<Alignable*> result;
42  result.insert( result.end(), theDTStations.begin(), theDTStations.end() );
43  return result;
44 
45  }
46 
47  // gets the global position as the average over all positions of the layers
49  // get the global orientation
50  RotationType computeOrientation() ; //see explanation for "theOrientation"
51  // get the Surface
53 
55 
57  friend std::ostream& operator << ( std::ostream&, const AlignableDTWheel& );
58 
60  void dump( void ) const override;
61 
62 
63 private:
64 
65  std::vector<AlignableDTStation*> theDTStations;
66 
67 
68 };
69 
70 #endif
71 
72 
73 
74 
friend std::ostream & operator<<(std::ostream &, const AlignableDTWheel &)
Printout muon DT wheel information (not recursive)
std::vector< Alignable * > components() const override
Return vector of direct components.
AlignableDTWheel(const std::vector< AlignableDTStation * > &dtStations)
The constructor simply copies the vector of stations and computes the surface from them...
void dump(void) const override
Recursive printout of the muon DT wheel structure.
AlignableDTStation & station(int i)
Return Alignable DT Station at given index.
AlignableSurface computeSurface()
PositionType computePosition()
Compute average z position from all components (x and y forced to 0)
RotationType computeOrientation()
Just initialize to default given by default constructor of a RotationType.
std::vector< AlignableDTStation * > theDTStations
~AlignableDTWheel() override
Clean delete of the vector and its elements.