CMS 3D CMS Logo

Public Member Functions | Private Types | Static Private Member Functions | Private Attributes

MatchedHitRZCorrectionFromBending Class Reference

#include <MatchedHitRZCorrectionFromBending.h>

List of all members.

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

Detailed Description

Definition at line 11 of file MatchedHitRZCorrectionFromBending.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

MatchedHitRZCorrectionFromBending::MatchedHitRZCorrectionFromBending ( ) [inline]

Definition at line 13 of file MatchedHitRZCorrectionFromBending.h.

: rFixup(0), zFixup(0) {}
MatchedHitRZCorrectionFromBending::MatchedHitRZCorrectionFromBending ( DetId  detId,
const TrackerTopology tTopo 
)
MatchedHitRZCorrectionFromBending::MatchedHitRZCorrectionFromBending ( const DetLayer layer,
const TrackerTopology tTopo 
)

Member Function Documentation

void MatchedHitRZCorrectionFromBending::operator() ( const ThirdHitPredictionFromCircle pred,
double  curvature,
const TransientTrackingRecHit hit,
double &  r,
double &  z,
const TrackerTopology tTopo 
) const [inline]

Definition at line 17 of file MatchedHitRZCorrectionFromBending.h.

References rFixup, and zFixup.

    {
      if (!rFixup && !zFixup) return;
      if (rFixup) r += rFixup(pred, curvature, z, hit,tTopo);
      if (zFixup) z += zFixup(pred, curvature, r, hit,tTopo);
    }
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);
}

Member Data Documentation

Definition at line 37 of file MatchedHitRZCorrectionFromBending.h.

Referenced by operator()().