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 18 of file SurveyPxbImageLocalFit.h.
typedef std::vector<coord_t> SurveyPxbImageLocalFit::fidpoint_t |
Definition at line 17 of file SurveyPxbImageLocalFit.h.
typedef std::vector<value_t> SurveyPxbImageLocalFit::localpars_t |
Definition at line 16 of file SurveyPxbImageLocalFit.h.
typedef float SurveyPxbImageLocalFit::pede_deriv_t |
Definition at line 26 of file SurveyPxbImageLocalFit.h.
typedef int SurveyPxbImageLocalFit::pede_label_t |
Definition at line 25 of file SurveyPxbImageLocalFit.h.
|
inline |
Definition at line 29 of file SurveyPxbImageLocalFit.h.
References initFidPoints().
|
inline |
Constructor from istringstream.
Definition at line 35 of file SurveyPxbImageLocalFit.h.
References initFidPoints().
Distance.
Definition at line 104 of file SurveyPxbImageLocalFit.h.
References PVValHelper::dx, PVValHelper::dy, LaserDQM_cfg::p1, SiStripOfflineCRack_cfg::p2, and mathSSE::sqrt().
void SurveyPxbImageLocalFit::doFit | ( | const fidpoint_t & | fidpointvec | ) |
Invoke the fit.
Definition at line 29 of file SurveyPxbImageLocalFit.cc.
References A, a, a_, chi2_, funct::cos(), gather_cfg::cout, fidpoints_, fitValidFlag_, CustomPhysics_cfi::gamma, globalDerivsMatrix_, mps_fire::i, localDerivsMatrix_, SurveyPxbImage::measurementVec_, r, SurveyPxbImage::sigma_x_, SurveyPxbImage::sigma_y_, funct::sin(), mathSSE::sqrt(), and y.
Referenced by doFit().
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.
References doFit(), hbheRecHitProducerGPUTask_cff::label1, labelVec1_, and labelVec2_.
void SurveyPxbImageLocalFit::doFit | ( | value_t | x1, |
value_t | y1, | ||
value_t | g1, | ||
value_t | x2, | ||
value_t | y2, | ||
value_t | g2 | ||
) |
Definition at line 231 of file SurveyPxbImageLocalFit.cc.
References funct::cos(), doFit(), fidpoints_, diffTwoXMLs::g1, diffTwoXMLs::g2, funct::sin(), testProducerWithPsetDescEmpty_cfi::u1, and MetAnalyzer::u2.
SurveyPxbImageLocalFit::value_t SurveyPxbImageLocalFit::getChi2 | ( | ) |
returns the chi^2 of the fit
Definition at line 306 of file SurveyPxbImageLocalFit.cc.
References chi2_, and fitValidFlag_.
|
inline |
Definition at line 58 of file SurveyPxbImageLocalFit.h.
References mps_fire::i, labelVec1_, and labelVec2_.
|
inline |
Definition at line 57 of file SurveyPxbImageLocalFit.h.
References globalDerivsMatrix_, mps_fire::i, and nGlD.
|
inline |
|
inline |
Definition at line 56 of file SurveyPxbImageLocalFit.h.
References mps_fire::i, localDerivsMatrix_, and nLcD.
|
inline |
SurveyPxbImageLocalFit::localpars_t SurveyPxbImageLocalFit::getLocalParameters | ( | ) |
returns local parameters after fit
Definition at line 298 of file SurveyPxbImageLocalFit.cc.
References a_, and fitValidFlag_.
|
inline |
Definition at line 59 of file SurveyPxbImageLocalFit.h.
References mps_fire::i, and r.
|
inline |
Definition at line 60 of file SurveyPxbImageLocalFit.h.
References mps_fire::i, SurveyPxbImage::sigma_x_, and SurveyPxbImage::sigma_y_.
|
inlineprivate |
Initialise the fiducial points.
Definition at line 96 of file SurveyPxbImageLocalFit.h.
References fidpoints_.
Referenced by SurveyPxbImageLocalFit().
|
inline |
returns validity flag
Definition at line 46 of file SurveyPxbImageLocalFit.h.
References fitValidFlag_.
void SurveyPxbImageLocalFit::setGlobalDerivsToZero | ( | count_t | i | ) |
Definition at line 320 of file SurveyPxbImageLocalFit.cc.
References globalDerivsMatrix_, mps_fire::i, dqmiolumiharvest::j, nGlD, and nMsrmts.
void SurveyPxbImageLocalFit::setLocalDerivsToZero | ( | count_t | i | ) |
Definition at line 313 of file SurveyPxbImageLocalFit.cc.
References mps_fire::i, dqmiolumiharvest::j, localDerivsMatrix_, nLcD, and nMsrmts.
|
private |
Local parameters.
Definition at line 67 of file SurveyPxbImageLocalFit.h.
Referenced by doFit(), and getLocalParameters().
|
private |
chi2 of the local fit
Definition at line 87 of file SurveyPxbImageLocalFit.h.
|
private |
Definition at line 93 of file SurveyPxbImageLocalFit.h.
|
private |
True position of the fiducial points on a sensor wrt. local frame (u,v)
Definition at line 84 of file SurveyPxbImageLocalFit.h.
Referenced by doFit(), and initFidPoints().
|
private |
Validity Flag.
Definition at line 90 of file SurveyPxbImageLocalFit.h.
Referenced by doFit(), getChi2(), getLocalParameters(), and isFitValid().
|
private |
Matrix with global derivs.
Definition at line 74 of file SurveyPxbImageLocalFit.h.
Referenced by doFit(), getGlobalDerivsPtr(), and setGlobalDerivsToZero().
|
private |
Vector with labels to global derivs.
Definition at line 81 of file SurveyPxbImageLocalFit.h.
Referenced by doFit(), and getGlobalDerivsLabelPtr().
|
private |
Definition at line 81 of file SurveyPxbImageLocalFit.h.
Referenced by doFit(), and getGlobalDerivsLabelPtr().
|
private |
Matrix with local derivs.
Definition at line 78 of file SurveyPxbImageLocalFit.h.
Referenced by doFit(), getLocalDerivsPtr(), and setLocalDerivsToZero().
|
static |
Definition at line 23 of file SurveyPxbImageLocalFit.h.
|
static |
Definition at line 19 of file SurveyPxbImageLocalFit.h.
Referenced by getGlobalDerivsPtr(), getGlobalDerivsSize(), and setGlobalDerivsToZero().
|
static |
Definition at line 20 of file SurveyPxbImageLocalFit.h.
Referenced by getLocalDerivsPtr(), getLocalDerivsSize(), and setLocalDerivsToZero().
|
static |
Definition at line 22 of file SurveyPxbImageLocalFit.h.
|
static |
Definition at line 21 of file SurveyPxbImageLocalFit.h.
Referenced by MillePedeAlignmentAlgorithm::addPxbSurvey(), setGlobalDerivsToZero(), and setLocalDerivsToZero().
Vector of residuals.
Definition at line 70 of file SurveyPxbImageLocalFit.h.
Referenced by doFit(), and getResiduum().