test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SurveyPxbImage.h
Go to the documentation of this file.
1 #ifndef GUARD_surveypxbimage_h
2 #define GUARD_surveypxbimage_h
3 
4 #include <sstream>
5 #include <vector>
6 #include <utility>
10 
13 {
14  public:
15  typedef unsigned int count_t;
16  typedef unsigned int id_t;
17  typedef double value_t;
19  typedef std::pair<id_t,id_t> idPair_t;
20 
22  enum location{
23  ll, // lower left mark (0)
24  ul, // upper left mark (1)
25  lr, // lower right mark (2)
26  ur // upper right mark (3)
27  };
28 
29  // Constructors
52  SurveyPxbImage(std::istringstream &iss) : isValidFlag_(false)
53  {
54  fill(iss);
55  };
56 
57  void fill(std::istringstream &iss);
58 
60  id_t getIdFirst() { return idPair_.first; };
62  id_t getIdSecond() { return idPair_.second; };
64  const idPair_t getIdPair() { return idPair_; };
65 
69  const coord_t getCoord(count_t m);
70 
72  value_t getSigmaX() { return sigma_x_; }
73 
75  value_t getSigmaY() { return sigma_y_; }
76 
78  bool isValid() { return isValidFlag_; };
79 
80 
81  protected:
83  std::vector<coord_t> measurementVec_;
84 
87 
89  bool isRotated_;
90 
93 
97 
98 };
99 
100 #endif
101 
value_t getSigmaY()
Get Gaussian error in u direction.
SurveyPxbImage(std::istringstream &iss)
unsigned int count_t
value_t sigma_x_
Gaussian errors.
void fill(std::istringstream &iss)
Point3DBase< value_t, LocalTag > coord_t
bool isRotated_
Flag if the image was rotated or not.
bool isValidFlag_
Validity Flag.
id_t getIdFirst()
Get Id of first module.
location
enum to help access specific locations on a picture
Class to hold one picture of the BPix survey.
std::vector< coord_t > measurementVec_
Vector to hold four measurements.
unsigned int id_t
id_t getIdSecond()
Get Id of second module.
const coord_t getCoord(count_t m)
const idPair_t getIdPair()
Get Id pair.
idPair_t idPair_
value_t getSigmaX()
Get Gaussian error in u direction.
volatile std::atomic< bool > shutdown_flag false
bool isValid()
returns validity flag
std::pair< id_t, id_t > idPair_t