CMS 3D CMS Logo

OpticalAlignInfo.h
Go to the documentation of this file.
1 #ifndef OpticalAlignInfo_H
2 #define OpticalAlignInfo_H
3 
5 
6 #include <string>
7 #include <vector>
8 #include <iostream>
9 
11 
16 class OpticalAlignInfo;
17 
18 std::ostream &operator<<(std::ostream &, const OpticalAlignInfo &);
19 
24 class OpticalAlignParam;
25 
26 std::ostream &operator<<(std::ostream &, const OpticalAlignParam &);
27 
35 public:
37 
38  std::string name() const { return name_; }
39  double value() const { return value_; }
40  double sigma() const { return error_; }
41  int quality() const { return quality_; }
42  std::string dimType() const { return dim_type_; }
43 
44 public:
45  double value_;
46  double error_;
47  int quality_; // f = fixed, c = calibrated, u = unknown.
50 
51  void clear() {
52  value_ = 0.0;
53  error_ = 0.0;
55  name_.clear();
56  }
57 
59 };
60 
61 // a Class holding data for an Optical Alignment transformation
71 public:
72  /*
73  OpticalAlignParam x() const { return x_; }
74  OpticalAlignParam y() const { return y_; }
75  OpticalAlignParam z() const { return z_; }
76  OpticalAlignParam angX() const { return angx_; }
77  OpticalAlignParam angY() const { return angy_; }
78  OpticalAlignParam angZ() const { return angz_; }
79  std::vector<OpticalAlignParam> extraEntries() const { return extraEntries_; }
80  std::string type() { return type_; }
81  std::string name() const { return name_; }
82  std::string parentName() const { return parentObjectName_; }
83  unsigned int ID() const { return ID_; }
84  */
86 
87 public:
89  std::vector<OpticalAlignParam> extraEntries_;
93  unsigned int ID_;
94  void clear() {
95  x_.clear();
96  y_.clear();
97  z_.clear();
98  angx_.clear();
99  angy_.clear();
100  angz_.clear();
101  extraEntries_.clear();
102  type_.clear();
103  ID_ = 0;
104  }
105 
107 };
108 
117 /* class OpticalAlignCOPSInfo : public OpticalAlignInfo { */
118 /* public: */
119 /* OpticalAlignParam dowel1X_, dowel1Y_; */
120 /* OpticalAlignParam upCCDtoDowel2X_, upCCDtoDowel2Y_; */
121 /* OpticalAlignParam downCCDtoDowel2X_, downCCDtoDowel2Y_; */
122 /* OpticalAlignParam leftCCDtoDowel2X_, leftCCDtoDowel2Y_; */
123 /* OpticalAlignParam rightCCDtoDowel2X_, rightCCDtoDowel2Y_; */
124 /* }; */
125 
126 #endif //OpticalAlignInfo_H
std::string parentName_
OpticalAlignParam x_
double value() const
std::ostream & operator<<(std::ostream &, const OpticalAlignInfo &)
OpticalAlignParam angx_
OpticalAlignParam * findExtraEntry(std::string &name)
OpticalAlignParam y_
std::string name() const
OpticalAlignParam angz_
OpticalAlignParam z_
std::vector< OpticalAlignParam > extraEntries_
#define COND_SERIALIZABLE
Definition: Serializable.h:39
OpticalAlignParam angy_
std::string dim_type_
std::string dimType() const
unsigned int ID_
double sigma() const