test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AlignableExtras.h
Go to the documentation of this file.
1 #ifndef Alignment_CommonAlignment_AlignableExtras_H
2 #define Alignment_CommonAlignment_AlignableExtras_H
3 
18 
20 {
21  public:
22 
24 
26  explicit AlignableExtras();
27 
29  Alignables& subStructures(const std::string &subStructName) {
30  return alignableLists_.find(subStructName);
31  }
32 
34  Alignables& beamSpot() { return this->subStructures("BeamSpot");}
35 
36  Alignables components() const { return components_; }
37 
39  Alignments* alignments() const;
40 
43 
44  void dump(void) const;
45 
47  void initializeBeamSpot(double x, double y, double z,
48  double dxdz, double dydz);
49 
50  private:
51 
52  AlignSetup<Alignables> alignableLists_; //< kind of map of lists of alignables
53  Alignables components_; //< list of alignables
54 };
55 
56 #endif //AlignableExtras_H
Alignables components_
AlignableExtras()
Constructor (builds all alignables)
Type & find(const std::string &name="")
Definition: AlignSetup.h:58
Alignables & subStructures(const std::string &subStructName)
Return alignables determined by name.
AlignSetup< Alignables > alignableLists_
void initializeBeamSpot(double x, double y, double z, double dxdz, double dydz)
Initialize the alignable beam spot with the given parameters.
Alignables components() const
void dump(void) const
std::vector< Alignable * > Alignables
Definition: Utilities.h:28
align::Alignables Alignables
AlignmentErrorsExtended * alignmentErrors() const
Return alignment errors, sorted by DetId.
Alignments * alignments() const
Return alignments, sorted by DetId.
Alignables & beamSpot()
Return beam spot alignable as a vector with one element.