CMS 3D CMS Logo

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 public:
14  typedef unsigned int count_t;
15  typedef unsigned int id_t;
16  typedef double value_t;
18  typedef std::pair<id_t, id_t> idPair_t;
19 
21  enum location {
22  ll, // lower left mark (0)
23  ul, // upper left mark (1)
24  lr, // lower right mark (2)
25  ur // upper right mark (3)
26  };
27 
28  // Constructors
51  SurveyPxbImage(std::istringstream &iss) : isValidFlag_(false) { fill(iss); };
52 
53  void fill(std::istringstream &iss);
54 
56  id_t getIdFirst() { return idPair_.first; };
58  id_t getIdSecond() { return idPair_.second; };
60  const idPair_t getIdPair() { return idPair_; };
61 
65  const coord_t getCoord(count_t m);
66 
68  value_t getSigmaX() { return sigma_x_; }
69 
71  value_t getSigmaY() { return sigma_y_; }
72 
74  bool isValid() { return isValidFlag_; };
75 
76 protected:
78  std::vector<coord_t> measurementVec_;
79 
82 
84  bool isRotated_;
85 
88 
92 };
93 
94 #endif
SurveyPxbImage::ul
Definition: SurveyPxbImage.h:23
SurveyPxbImage::sigma_x_
value_t sigma_x_
Gaussian errors.
Definition: SurveyPxbImage.h:81
SurveyPxbImage::coord_t
Point3DBase< value_t, LocalTag > coord_t
Definition: SurveyPxbImage.h:17
SurveyPxbImage::sigma_y_
value_t sigma_y_
Definition: SurveyPxbImage.h:81
funct::false
false
Definition: Factorize.h:34
count_t
Definition: ErrorPropogationTypes.h:7
SurveyPxbImage::measurementVec_
std::vector< coord_t > measurementVec_
Vector to hold four measurements.
Definition: SurveyPxbImage.h:74
SurveyPxbImage
Class to hold one picture of the BPix survey.
Definition: SurveyPxbImage.h:12
Point3DBase.h
SurveyPxbImage::ur
Definition: SurveyPxbImage.h:25
SurveyPxbImage::SurveyPxbImage
SurveyPxbImage(std::istringstream &iss)
Definition: SurveyPxbImage.h:51
SurveyPxbImage::lr
Definition: SurveyPxbImage.h:24
LocalTag.h
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
SurveyPxbImage::id_t
unsigned int id_t
Definition: SurveyPxbImage.h:15
SurveyPxbImage::idPair_t
std::pair< id_t, id_t > idPair_t
Definition: SurveyPxbImage.h:18
Point3DBase
Definition: Point3DBase.h:10
SurveyPxbImage::SurveyPxbImage
SurveyPxbImage()
SurveyPxbImage::getIdPair
const idPair_t getIdPair()
Get Id pair.
Definition: SurveyPxbImage.h:60
SurveyPxbImage::ll
Definition: SurveyPxbImage.h:22
SurveyPxbImage::count_t
unsigned int count_t
Definition: SurveyPxbImage.h:14
SurveyPxbImage::location
location
enum to help access specific locations on a picture
Definition: SurveyPxbImage.h:21
SurveyPxbImage::getIdSecond
id_t getIdSecond()
Get Id of second module.
Definition: SurveyPxbImage.h:58
SurveyPxbImage::idPair_
idPair_t idPair_
Definition: SurveyPxbImage.h:91
SurveyPxbImage::getIdFirst
id_t getIdFirst()
Get Id of first module.
Definition: SurveyPxbImage.h:56
SurveyPxbImage::getCoord
const coord_t getCoord(count_t m)
Definition: SurveyPxbImage.cc:39
SurveyPxbImage::fill
void fill(std::istringstream &iss)
Definition: SurveyPxbImage.cc:9
LocalPoint.h
SurveyPxbImage::value_t
double value_t
Definition: SurveyPxbImage.h:16
SurveyPxbImage::isRotated_
bool isRotated_
Flag if the image was rotated or not.
Definition: SurveyPxbImage.h:84
SurveyPxbImage::getSigmaX
value_t getSigmaX()
Get Gaussian error in u direction.
Definition: SurveyPxbImage.h:68
SurveyPxbImage::getSigmaY
value_t getSigmaY()
Get Gaussian error in u direction.
Definition: SurveyPxbImage.h:71
SurveyPxbImage::isValidFlag_
bool isValidFlag_
Validity Flag.
Definition: SurveyPxbImage.h:87
SurveyPxbImage::isValid
bool isValid()
returns validity flag
Definition: SurveyPxbImage.h:74