#include <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 15 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 17 of file TrackResiduals.cc.
References residuals_.
|
staticprotected |
Definition at line 132 of file TrackResiduals.cc.
References mag(), pull_char_to_double, and FWPFMaths::sgn().
Referenced by setPullXY().
|
staticprotected |
Definition at line 148 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 159 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 175 of file TrackResiduals.cc.
References reco::HitPattern::getHitPattern(), i, reco::HitPattern::numberOfHits(), residualX(), residualY(), reco::HitPattern::TRACK_HITS, 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 83 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 38 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 93 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 51 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 103 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 28 of file TrackResiduals.cc.
References customizeTrackingMonitorSeedNumber::idx, numResiduals, pack_residual(), residuals_, residualType, and X_Y_RESIDUALS.
Referenced by trajectoryToResiduals().
|
staticprotected |
Definition at line 125 of file TrackResiduals.cc.
References mag(), pull_char_to_double, and FWPFMaths::sgn().
Referenced by residualX(), and residualY().
|
staticprotected |
Definition at line 141 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 53 of file TrackResiduals.h.
Referenced by print(), residualX(), residualY(), setPullXY(), setResidualXY(), and TrackResiduals().
|
private |
Definition at line 54 of file TrackResiduals.h.
Referenced by residualX(), residualY(), setPullXY(), setResidualType(), and setResidualXY().