#include <MatchedHitRZCorrectionFromBending.h>
Public Member Functions | |
MatchedHitRZCorrectionFromBending () | |
MatchedHitRZCorrectionFromBending (DetId detId, const TrackerTopology *tTopo) | |
MatchedHitRZCorrectionFromBending (const DetLayer *layer, const TrackerTopology *tTopo) | |
void | operator() (const ThirdHitPredictionFromCircle &pred, double curvature, const TransientTrackingRecHit &hit, double &r, double &z, const TrackerTopology *tTopo) const |
Private Types | |
typedef double(* | FixupFn )(const ThirdHitPredictionFromCircle &pred, double curvature, double rOrZ, const TransientTrackingRecHit &hit, const TrackerTopology *tTopo) |
Static Private Member Functions | |
static double | tibMatchedHitZFixup (const ThirdHitPredictionFromCircle &pred, double curvature, double rOrZ, const TransientTrackingRecHit &hit, const TrackerTopology *tTopo) |
Private Attributes | |
FixupFn | rFixup |
FixupFn | zFixup |
Definition at line 11 of file MatchedHitRZCorrectionFromBending.h.
typedef double(* MatchedHitRZCorrectionFromBending::FixupFn)(const ThirdHitPredictionFromCircle &pred, double curvature, double rOrZ, const TransientTrackingRecHit &hit, const TrackerTopology *tTopo) [private] |
Definition at line 27 of file MatchedHitRZCorrectionFromBending.h.
MatchedHitRZCorrectionFromBending::MatchedHitRZCorrectionFromBending | ( | ) | [inline] |
Definition at line 13 of file MatchedHitRZCorrectionFromBending.h.
MatchedHitRZCorrectionFromBending::MatchedHitRZCorrectionFromBending | ( | DetId | detId, |
const TrackerTopology * | tTopo | ||
) |
Definition at line 14 of file MatchedHitRZCorrectionFromBending.cc.
References DetId::subdetId(), SiStripDetId::TIB, TrackerTopology::tibIsDoubleSide(), tibMatchedHitZFixup(), and zFixup.
: rFixup(0), zFixup(0) { if (detId.subdetId() == SiStripDetId::TIB && tTopo->tibIsDoubleSide(detId)) zFixup = tibMatchedHitZFixup; }
MatchedHitRZCorrectionFromBending::MatchedHitRZCorrectionFromBending | ( | const DetLayer * | layer, |
const TrackerTopology * | tTopo | ||
) |
Definition at line 23 of file MatchedHitRZCorrectionFromBending.cc.
References GeometricSearchDet::basicComponents(), DetLayer::subDetector(), sistripsummary::TIB, TrackerTopology::tibIsDoubleSide(), tibMatchedHitZFixup(), and zFixup.
: rFixup(0), zFixup(0) { if (layer->subDetector() == GeomDetEnumerators::TIB) { const GeometricSearchDet *tibLayer = layer; if (tTopo->tibIsDoubleSide(tibLayer->basicComponents()[0]->geographicalId())) zFixup = tibMatchedHitZFixup; } }
void MatchedHitRZCorrectionFromBending::operator() | ( | const ThirdHitPredictionFromCircle & | pred, |
double | curvature, | ||
const TransientTrackingRecHit & | hit, | ||
double & | r, | ||
double & | z, | ||
const TrackerTopology * | tTopo | ||
) | const [inline] |
double MatchedHitRZCorrectionFromBending::tibMatchedHitZFixup | ( | const ThirdHitPredictionFromCircle & | pred, |
double | curvature, | ||
double | rOrZ, | ||
const TransientTrackingRecHit & | hit, | ||
const TrackerTopology * | tTopo | ||
) | [static, private] |
Definition at line 35 of file MatchedHitRZCorrectionFromBending.cc.
References ThirdHitPredictionFromCircle::angle(), TransientTrackingRecHit::det(), GeomDet::geographicalId(), AlCaHLTBitMon_QueryRunRegistry::string, TrackerTopology::tibIsInternalString(), and TrackerTopology::tibLayer().
Referenced by MatchedHitRZCorrectionFromBending().
{ // the factors for [ TIB1=0, TIB2=1 ] [ inner string=0, outer string=1 ] static const double factors[2][2] = { { -2.4, 2.4 }, { 2.4, -2.4 } }; unsigned int layer = tTopo->tibLayer(hit.det()->geographicalId()) - 1; unsigned int string = !tTopo->tibIsInternalString(hit.det()->geographicalId()); return factors[layer][string] * pred.angle(curvature, r); }
Definition at line 37 of file MatchedHitRZCorrectionFromBending.h.
Referenced by operator()().
Definition at line 37 of file MatchedHitRZCorrectionFromBending.h.
Referenced by MatchedHitRZCorrectionFromBending(), and operator()().