#include <DataFormats/TrackReco/interface/TrackResiduals.h>
Public Types | |
enum | ResidualType { X_Y_RESIDUALS, X_Y_PULLS } |
Public Member Functions | |
void | print (std::ostream &stream=std::cout) const |
void | print (const HitPattern &, std::ostream &stream=std::cout) const |
double | residualX (int i, const HitPattern &) const |
double | residualX (int i) const |
double | residualY (int i, const HitPattern &) const |
double | residualY (int i) const |
void | setPullXY (int idx, double pullX, double pullY) |
void | setResidualType (enum ResidualType) |
void | setResidualXY (int idx, double residualX, double residualY) |
TrackResiduals () | |
TrackResiduals (enum ResidualType) | |
Protected Types | |
enum | { numResiduals = 0x40 } |
number of residuals stored More... | |
Static Protected Member Functions | |
static unsigned char | pack_pull (double) |
static unsigned char | pack_residual (double) |
static double | unpack_pull (unsigned char) |
static double | unpack_residual (unsigned char) |
Private Attributes | |
unsigned char | residuals_ [numResiduals] |
residuals, bitpacked two hits to a char More... | |
char | residualType |
Friends | |
class | Trajectory |
Definition at line 17 of file TrackResiduals.h.
|
protected |
TrackResiduals::TrackResiduals | ( | ) |
Definition at line 11 of file TrackResiduals.cc.
References residuals_.
TrackResiduals::TrackResiduals | ( | enum ResidualType | type | ) |
Definition at line 16 of file TrackResiduals.cc.
References residuals_.
|
staticprotected |
Definition at line 121 of file TrackResiduals.cc.
References mag(), pull_char_to_double, and FWPFMaths::sgn().
Referenced by setPullXY().
|
staticprotected |
Definition at line 138 of file TrackResiduals.cc.
References mag(), pull_char_to_double, and FWPFMaths::sgn().
Referenced by setResidualXY().
void TrackResiduals::print | ( | std::ostream & | stream = std::cout | ) | const |
Definition at line 146 of file TrackResiduals.cc.
References flags, i, numResiduals, and residuals_.
void TrackResiduals::print | ( | const HitPattern & | h, |
std::ostream & | stream = std::cout |
||
) | const |
Definition at line 160 of file TrackResiduals.cc.
References reco::HitPattern::getHitPattern(), i, reco::HitPattern::numberOfHits(), residualX(), residualY(), and reco::HitPattern::validHitFilter().
double TrackResiduals::residualX | ( | int | i, |
const HitPattern & | h | ||
) | const |
get the residual of the ith hit (needs the hit pattern to figure out which hits are valid)
Definition at line 76 of file TrackResiduals.cc.
References customizeTrackingMonitorSeedNumber::idx, and index_to_hitpattern().
Referenced by FWTrackResidualDetailView::prepareData(), and print().
double TrackResiduals::residualX | ( | int | i | ) | const |
get the residual of the ith valid hit, with no regard for alignment with the HitPattern
Definition at line 35 of file TrackResiduals.cc.
References residuals_, residualType, unpack_pull(), unpack_residual(), X_Y_PULLS, and X_Y_RESIDUALS.
double TrackResiduals::residualY | ( | int | i, |
const HitPattern & | h | ||
) | const |
Definition at line 84 of file TrackResiduals.cc.
References customizeTrackingMonitorSeedNumber::idx, and index_to_hitpattern().
Referenced by FWTrackResidualDetailView::prepareData(), and print().
double TrackResiduals::residualY | ( | int | i | ) | const |
Definition at line 48 of file TrackResiduals.cc.
References residuals_, residualType, unpack_pull(), unpack_residual(), X_Y_PULLS, and X_Y_RESIDUALS.
void TrackResiduals::setPullXY | ( | int | idx, |
double | pullX, | ||
double | pullY | ||
) |
Definition at line 92 of file TrackResiduals.cc.
References customizeTrackingMonitorSeedNumber::idx, numResiduals, pack_pull(), residuals_, residualType, and X_Y_PULLS.
Referenced by trajectoryToResiduals().
void TrackResiduals::setResidualType | ( | enum ResidualType | type | ) |
void TrackResiduals::setResidualXY | ( | int | idx, |
double | residualX, | ||
double | residualY | ||
) |
Definition at line 26 of file TrackResiduals.cc.
References customizeTrackingMonitorSeedNumber::idx, numResiduals, pack_residual(), residuals_, residualType, and X_Y_RESIDUALS.
Referenced by trajectoryToResiduals().
|
staticprotected |
Definition at line 113 of file TrackResiduals.cc.
References mag(), pull_char_to_double, and FWPFMaths::sgn().
Referenced by residualX(), and residualY().
|
staticprotected |
Definition at line 130 of file TrackResiduals.cc.
References mag(), pull_char_to_double, and FWPFMaths::sgn().
Referenced by residualX(), and residualY().
|
friend |
Definition at line 18 of file TrackResiduals.h.
|
private |
residuals, bitpacked two hits to a char
Definition at line 70 of file TrackResiduals.h.
Referenced by print(), residualX(), residualY(), setPullXY(), setResidualXY(), and TrackResiduals().
|
private |
Definition at line 71 of file TrackResiduals.h.
Referenced by residualX(), residualY(), setPullXY(), setResidualType(), and setResidualXY().