Class to hold one picture of the BPix survey and the local fit. More...
#include <SurveyPxbImageLocalFit.h>
Public Types | |
typedef unsigned int | count_t |
typedef std::vector< coord_t > | fidpoint_t |
typedef std::vector< value_t > | localpars_t |
typedef float | pede_deriv_t |
typedef int | pede_label_t |
Public Types inherited from SurveyPxbImage | |
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 | doFit (const fidpoint_t &fidpointvec) |
Invoke the fit. More... | |
void | doFit (const fidpoint_t &fidpointvec, const pede_label_t &label1, const pede_label_t &label2) |
void | doFit (value_t x1, value_t y1, value_t g1, value_t x2, value_t y2, value_t g2) |
value_t | getChi2 () |
returns the chi^2 of the fit More... | |
const pede_label_t * | getGlobalDerivsLabelPtr (count_t i) |
const pede_deriv_t * | getGlobalDerivsPtr (count_t i) |
pede_label_t | getGlobalDerivsSize () |
const pede_deriv_t * | getLocalDerivsPtr (count_t i) |
pede_label_t | getLocalDerivsSize () |
localpars_t | getLocalParameters () |
returns local parameters after fit More... | |
pede_deriv_t | getResiduum (count_t i) |
pede_deriv_t | getSigma (count_t i) |
bool | isFitValid () |
returns validity flag More... | |
void | setGlobalDerivsToZero (count_t i) |
void | setLocalDerivsToZero (count_t i) |
SurveyPxbImageLocalFit () | |
SurveyPxbImageLocalFit (std::istringstream &iss) | |
Constructor from istringstream. More... | |
Public Member Functions inherited from SurveyPxbImage | |
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) | |
Static Public Attributes | |
static const count_t | nFidpoints = 4 |
static const count_t | nGlD = 3 |
static const count_t | nLcD = 4 |
static const count_t | nLcPars = 4 |
static const count_t | nMsrmts = 8 |
Private Member Functions | |
value_t | dist (const coord_t &p1, const coord_t &p2) |
Distance. More... | |
void | initFidPoints () |
Initialise the fiducial points. More... | |
Private Attributes | |
localpars_t | a_ |
Local parameters. More... | |
value_t | chi2_ |
chi2 of the local fit More... | |
bool | derivsValidFlag_ |
std::vector< coord_t > | fidpoints_ |
True position of the fiducial points on a sensor wrt. local frame (u,v) More... | |
bool | fitValidFlag_ |
Validity Flag. More... | |
ROOT::Math::SMatrix < pede_deriv_t, nMsrmts, nGlD > | globalDerivsMatrix_ |
Matrix with global derivs. More... | |
std::vector< pede_label_t > | labelVec1_ |
Vector with labels to global derivs. More... | |
std::vector< pede_label_t > | labelVec2_ |
ROOT::Math::SMatrix < pede_deriv_t, nMsrmts, nLcD > | localDerivsMatrix_ |
Matrix with local derivs. More... | |
ROOT::Math::SVector< value_t, nMsrmts > | r |
Vector of residuals. More... | |
Additional Inherited Members | |
Protected Attributes inherited from SurveyPxbImage | |
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 and the local fit.
Definition at line 14 of file SurveyPxbImageLocalFit.h.
typedef unsigned int SurveyPxbImageLocalFit::count_t |
Definition at line 19 of file SurveyPxbImageLocalFit.h.
typedef std::vector<coord_t> SurveyPxbImageLocalFit::fidpoint_t |
Definition at line 18 of file SurveyPxbImageLocalFit.h.
typedef std::vector<value_t> SurveyPxbImageLocalFit::localpars_t |
Definition at line 17 of file SurveyPxbImageLocalFit.h.
typedef float SurveyPxbImageLocalFit::pede_deriv_t |
Definition at line 27 of file SurveyPxbImageLocalFit.h.
typedef int SurveyPxbImageLocalFit::pede_label_t |
Definition at line 26 of file SurveyPxbImageLocalFit.h.
|
inline |
Definition at line 30 of file SurveyPxbImageLocalFit.h.
References initFidPoints().
|
inline |
Constructor from istringstream.
Definition at line 37 of file SurveyPxbImageLocalFit.h.
References initFidPoints().
Distance.
Definition at line 108 of file SurveyPxbImageLocalFit.h.
References mathSSE::sqrt(), PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
void SurveyPxbImageLocalFit::doFit | ( | const fidpoint_t & | fidpointvec | ) |
Invoke the fit.
Definition at line 28 of file SurveyPxbImageLocalFit.cc.
void SurveyPxbImageLocalFit::doFit | ( | const fidpoint_t & | fidpointvec, |
const pede_label_t & | label1, | ||
const pede_label_t & | label2 | ||
) |
Definition at line 15 of file SurveyPxbImageLocalFit.cc.
void SurveyPxbImageLocalFit::doFit | ( | value_t | x1, |
value_t | y1, | ||
value_t | g1, | ||
value_t | x2, | ||
value_t | y2, | ||
value_t | g2 | ||
) |
Definition at line 204 of file SurveyPxbImageLocalFit.cc.
SurveyPxbImageLocalFit::value_t SurveyPxbImageLocalFit::getChi2 | ( | ) |
returns the chi^2 of the fit
Definition at line 254 of file SurveyPxbImageLocalFit.cc.
|
inline |
Definition at line 61 of file SurveyPxbImageLocalFit.h.
References labelVec1_, and labelVec2_.
|
inline |
Definition at line 60 of file SurveyPxbImageLocalFit.h.
References globalDerivsMatrix_, and nGlD.
|
inline |
|
inline |
Definition at line 59 of file SurveyPxbImageLocalFit.h.
References localDerivsMatrix_, and nLcD.
|
inline |
SurveyPxbImageLocalFit::localpars_t SurveyPxbImageLocalFit::getLocalParameters | ( | ) |
returns local parameters after fit
Definition at line 248 of file SurveyPxbImageLocalFit.cc.
|
inline |
Definition at line 62 of file SurveyPxbImageLocalFit.h.
References r.
|
inline |
Definition at line 63 of file SurveyPxbImageLocalFit.h.
References SurveyPxbImage::sigma_x_, and SurveyPxbImage::sigma_y_.
|
inlineprivate |
Initialise the fiducial points.
Definition at line 99 of file SurveyPxbImageLocalFit.h.
References fidpoints_.
Referenced by SurveyPxbImageLocalFit().
|
inline |
returns validity flag
Definition at line 49 of file SurveyPxbImageLocalFit.h.
References fitValidFlag_.
void SurveyPxbImageLocalFit::setGlobalDerivsToZero | ( | count_t | i | ) |
Definition at line 267 of file SurveyPxbImageLocalFit.cc.
void SurveyPxbImageLocalFit::setLocalDerivsToZero | ( | count_t | i | ) |
Definition at line 260 of file SurveyPxbImageLocalFit.cc.
|
private |
Local parameters.
Definition at line 70 of file SurveyPxbImageLocalFit.h.
|
private |
chi2 of the local fit
Definition at line 90 of file SurveyPxbImageLocalFit.h.
|
private |
Definition at line 96 of file SurveyPxbImageLocalFit.h.
|
private |
True position of the fiducial points on a sensor wrt. local frame (u,v)
Definition at line 87 of file SurveyPxbImageLocalFit.h.
Referenced by initFidPoints().
|
private |
|
private |
Matrix with global derivs.
Definition at line 77 of file SurveyPxbImageLocalFit.h.
Referenced by getGlobalDerivsPtr().
|
private |
Vector with labels to global derivs.
Definition at line 84 of file SurveyPxbImageLocalFit.h.
Referenced by getGlobalDerivsLabelPtr().
|
private |
Definition at line 84 of file SurveyPxbImageLocalFit.h.
Referenced by getGlobalDerivsLabelPtr().
|
private |
Matrix with local derivs.
Definition at line 81 of file SurveyPxbImageLocalFit.h.
Referenced by getLocalDerivsPtr().
|
static |
Definition at line 24 of file SurveyPxbImageLocalFit.h.
|
static |
Definition at line 20 of file SurveyPxbImageLocalFit.h.
Referenced by getGlobalDerivsPtr(), and getGlobalDerivsSize().
|
static |
Definition at line 21 of file SurveyPxbImageLocalFit.h.
Referenced by getLocalDerivsPtr(), and getLocalDerivsSize().
|
static |
Definition at line 23 of file SurveyPxbImageLocalFit.h.
|
static |
Definition at line 22 of file SurveyPxbImageLocalFit.h.
Vector of residuals.
Definition at line 73 of file SurveyPxbImageLocalFit.h.
Referenced by getResiduum().