Class to hold one picture of the BPix survey. More...
#include <SurveyPxbImage.h>
Public Types | |
typedef Point3DBase< value_t, LocalTag > | coord_t |
typedef unsigned int | count_t |
typedef unsigned int | id_t |
typedef std::pair< id_t, id_t > | idPair_t |
enum | location { ll, ul, lr, ur } |
enum to help access specific locations on a picture More... | |
typedef double | value_t |
Public Member Functions | |
void | fill (std::istringstream &iss) |
const coord_t | getCoord (count_t m) |
id_t | getIdFirst () |
Get Id of first module. More... | |
const idPair_t | getIdPair () |
Get Id pair. More... | |
id_t | getIdSecond () |
Get Id of second module. More... | |
value_t | getSigmaX () |
Get Gaussian error in u direction. More... | |
value_t | getSigmaY () |
Get Gaussian error in u direction. More... | |
bool | isValid () |
returns validity flag More... | |
SurveyPxbImage () | |
SurveyPxbImage (std::istringstream &iss) | |
Protected Attributes | |
idPair_t | idPair_ |
bool | isRotated_ |
Flag if the image was rotated or not. More... | |
bool | isValidFlag_ |
Validity Flag. More... | |
std::vector< coord_t > | measurementVec_ |
Vector to hold four measurements. More... | |
value_t | sigma_x_ |
Gaussian errors. More... | |
value_t | sigma_y_ |
Class to hold one picture of the BPix survey.
Definition at line 12 of file SurveyPxbImage.h.
typedef Point3DBase<value_t, LocalTag> SurveyPxbImage::coord_t |
Definition at line 18 of file SurveyPxbImage.h.
typedef unsigned int SurveyPxbImage::count_t |
Definition at line 15 of file SurveyPxbImage.h.
typedef unsigned int SurveyPxbImage::id_t |
Definition at line 16 of file SurveyPxbImage.h.
typedef std::pair<id_t,id_t> SurveyPxbImage::idPair_t |
Definition at line 19 of file SurveyPxbImage.h.
typedef double SurveyPxbImage::value_t |
Definition at line 17 of file SurveyPxbImage.h.
enum
to help access specific locations on a picture
Enumerator | |
---|---|
ll | |
ul | |
lr | |
ur |
Definition at line 22 of file SurveyPxbImage.h.
SurveyPxbImage::SurveyPxbImage | ( | ) |
|
inline |
Constructor from a string stream.
Observe the ordering: A line needs to be of the form rawID1 y_1_1 x_1_1 y_2_1 x_2_1 rawId2 y_1_2 x_1_2 y_2_2 x_2_2 sigma_y sigma_x
x_i_1
denoting the left, x_i_2
the right module. The data is then mapped to
-------------++-------------- (1) +||+ (3) || left module || right module || || (0) +||+ (2) -------------++--------------
where (i)
refers to the entry in the std::vector measurements
Therefore the mapping is as follows:
y_1_1, x_1_1 -> (0)
y_2_1, x_2_1 -> (1)
y_1_2, x_1_2 -> (2)
y_2_2, x_2_2 -> (3)
The sigmas denote the Gaussian error of the measurement in the u and v coordinate Definition at line 52 of file SurveyPxbImage.h.
References fill().
void SurveyPxbImage::fill | ( | std::istringstream & | iss | ) |
Definition at line 9 of file SurveyPxbImage.cc.
References idPair_, isRotated_, isValidFlag_, measurementVec_, sigma_x_, and sigma_y_.
Referenced by SurveyPxbImage().
const SurveyPxbImage::coord_t SurveyPxbImage::getCoord | ( | count_t | m | ) |
Get coordinate of a measurement
m | number of mark |
Definition at line 47 of file SurveyPxbImage.cc.
References measurementVec_.
|
inline |
|
inline |
|
inline |
|
inline |
Get Gaussian error in u direction.
Definition at line 72 of file SurveyPxbImage.h.
References sigma_x_.
|
inline |
Get Gaussian error in u direction.
Definition at line 75 of file SurveyPxbImage.h.
References sigma_y_.
|
inline |
returns validity flag
Definition at line 78 of file SurveyPxbImage.h.
Referenced by core.AutoHandle.AutoHandle::ReallyLoad().
|
protected |
Pair to hold the Id's of the involved modules first: module with lower Id
Definition at line 96 of file SurveyPxbImage.h.
Referenced by fill(), getIdFirst(), getIdPair(), and getIdSecond().
|
protected |
Flag if the image was rotated or not.
Definition at line 89 of file SurveyPxbImage.h.
Referenced by fill().
|
protected |
|
protected |
Vector to hold four measurements.
Definition at line 78 of file SurveyPxbImage.h.
Referenced by fill(), and getCoord().
|
protected |
Gaussian errors.
Definition at line 86 of file SurveyPxbImage.h.
Referenced by fill(), SurveyPxbImageLocalFit::getSigma(), and getSigmaX().
|
protected |
Definition at line 86 of file SurveyPxbImage.h.
Referenced by fill(), SurveyPxbImageLocalFit::getSigma(), and getSigmaY().