CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AlignableDTBarrel.h
Go to the documentation of this file.
1 #ifndef Alignment_MuonAlignment_AlignableDTBarrel_H
2 #define Alignment_MuonAlignment_AlignableDTBarrel_H
3 
16 
18 
19 
20 
21 #include <vector>
22 
23 class GeomDet;
24 
29 
31 {
32 
33  public:
34 
35  AlignableDTBarrel( const std::vector<AlignableDTWheel*> dtWheels );
36 
38 
39  virtual std::vector<Alignable*> components() const
40  {
41 
42  std::vector<Alignable*> result;
43  result.insert( result.end(), theDTWheels.begin(), theDTWheels.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 
55  AlignableDTWheel &wheel(int i);
56 
58  friend std::ostream& operator << ( std::ostream&, const AlignableDTBarrel& );
59 
61  void dump( void );
62 
63 
64  // Get alignments sorted by DetId
65  Alignments* alignments() const;
66 
67  // Get alignment errors sorted by DetId
69 
70 
71 
72 private:
73 
74  std::vector<AlignableDTWheel*> theDTWheels;
75 
76 
77 };
78 
79 #endif
80 
81 
82 
83 
int i
Definition: DBlmapReader.cc:9
PositionType computePosition()
Compute average z position from all components (x and y forced to 0)
Alignments * alignments() const
Return alignment data.
void dump(void)
Recursive printout of the muon Barrel structure.
friend std::ostream & operator<<(std::ostream &, const AlignableDTBarrel &)
Printout muon Barrel information (not recursive)
~AlignableDTBarrel()
Clean delete of the vector and its elements.
virtual std::vector< Alignable * > components() const
Return vector of direct components.
RotationType computeOrientation()
Just initialize to default given by default constructor of a RotationType.
tuple result
Definition: query.py:137
std::vector< AlignableDTWheel * > theDTWheels
AlignableDTWheel & wheel(int i)
Return AlignableBarrelLayer at given index.
AlignableSurface computeSurface()
align::RotationType RotationType
Definition: Alignable.h:36
align::PositionType PositionType
Definition: Alignable.h:35
AlignmentErrors * alignmentErrors() const
Return vector of alignment errors.
AlignableDTBarrel(const std::vector< AlignableDTWheel * > dtWheels)
The constructor simply copies the vector of wheels and computes the surface from them.