CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
int i
Definition: DBlmapReader.cc:9
AlignmentErrors * alignmentErrors() const
Return vector of alignment errors.
friend std::ostream & operator<<(std::ostream &, const AlignableCSCEndcap &)
Printout muon End Cap information (not recursive)
AlignableCSCEndcap(const std::vector< AlignableCSCStation * > cscStations)
The constructor simply copies the vector of stations and computes the surface from them...
~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()
tuple result
Definition: query.py:137
Alignments * alignments() const
Return alignment data.
RotationType computeOrientation()
Just initialize to default given by default constructor of a RotationType.
std::vector< AlignableCSCStation * > theCSCStations
align::RotationType RotationType
Definition: Alignable.h:36
align::PositionType PositionType
Definition: Alignable.h:35
PositionType computePosition()
Compute average z position from all components (x and y forced to 0)
AlignableCSCStation & station(int i)
Return AlignableCSCEndcap station at given index.