#include <math.h>
#include "DataFormats/TrackReco/interface/HitPattern.h"
#include "DataFormats/TrackReco/interface/TrackResiduals.h"
#include <cstdio>
#include <cstring>
#include "FWCore/MessageLogger/interface/MessageLogger.h"
Go to the source code of this file.
Functions | |
static int | index_to_hitpattern (int i_hitpattern, const HitPattern &h) |
Variables | |
static const double | pull_char_to_double [8][2] |
static const double | residual_char_to_double [8][2] |
static int index_to_hitpattern | ( | int | i_hitpattern, |
const HitPattern & | h | ||
) | [static] |
Definition at line 61 of file TrackResiduals.cc.
References reco::HitPattern::getHitPattern(), i, reco::HitPattern::numberOfHits(), and reco::HitPattern::validHitFilter().
Referenced by reco::TrackResiduals::residualX(), and reco::TrackResiduals::residualY().
{ int i_residuals = 0; assert(i_hitpattern < h.numberOfHits()); if (!h.validHitFilter(h.getHitPattern(i_hitpattern))) // asking for residual of invalid hit... return -999; for (int i = 0; i <= i_hitpattern; i++) { if (h.validHitFilter(h.getHitPattern(i))) i_residuals++; } assert(i_residuals > 0); return i_residuals - 1; }
const double pull_char_to_double[8][2] [static] |
{ { 0, 0.5 }, { 0.5, 1 }, { 1, 1.5 }, { 1.5, 2 }, { 2, 2.5 }, { 2.5, 3.5 }, { 3.5, 4.5 }, { 4.5, 5.5 }, }
Definition at line 102 of file TrackResiduals.cc.
Referenced by reco::TrackResiduals::pack_pull(), reco::TrackResiduals::pack_residual(), reco::TrackResiduals::unpack_pull(), and reco::TrackResiduals::unpack_residual().
const double residual_char_to_double[8][2] [static] |
{ { 0, 0.5 }, { 0.5, 1 }, { 1, 1.5 }, { 1.5, 2 }, { 2, 2.5 }, { 2.5, 3.5 }, { 3.5, 4.5 }, { 4.5, 5.5 }, }
Definition at line 129 of file TrackResiduals.cc.