CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MatchedHitRZCorrectionFromBending.cc
Go to the documentation of this file.
9 
10 // Note: only the TIB layers seem to cause a significant effect,
11 // so only z correction is implemented
12 
15  : rFixup(0), zFixup(0)
16 {
17  if (detId.subdetId() == SiStripDetId::TIB &&
18  tTopo->tibIsDoubleSide(detId))
20 }
21 
24  : rFixup(0), zFixup(0)
25 {
26  if (layer->subDetector() == GeomDetEnumerators::TIB) {
27  const GeometricSearchDet *tibLayer = layer;
28 
29  if (tTopo->tibIsDoubleSide(tibLayer->basicComponents()[0]->geographicalId()))
31  }
32 }
33 
36  double curvature, double r,
37  const TrackingRecHit &hit,
38  const TrackerTopology *tTopo)
39 {
40  // the factors for [ TIB1=0, TIB2=1 ] [ inner string=0, outer string=1 ]
41  static const double factors[2][2] = { { -2.4, 2.4 }, { 2.4, -2.4 } };
42 
43 
44  unsigned int layer = tTopo->tibLayer(hit.det()->geographicalId()) - 1;
45  unsigned int string = !tTopo->tibIsInternalString(hit.det()->geographicalId());
46  return factors[layer][string] * pred.angle(curvature, r);
47 }
bool tibIsDoubleSide(const DetId &id) const
unsigned int tibLayer(const DetId &id) const
float angle(float curvature, float radius) const
virtual SubDetector subDetector() const =0
The type of detector (PixelBarrel, PixelEndcap, TIB, TOB, TID, TEC, CSC, DT, RPCBarrel, RPCEndcap)
T curvature(T InversePt, const edm::EventSetup &iSetup)
const GeomDet * det() const
DetId geographicalId() const
The label of this GeomDet.
Definition: GeomDet.h:77
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
Definition: DetId.h:37
Definition: DetId.h:18
static double tibMatchedHitZFixup(const ThirdHitPredictionFromCircle &pred, double curvature, double rOrZ, const TrackingRecHit &hit, const TrackerTopology *tTopo)
virtual const std::vector< const GeomDet * > & basicComponents() const =0
bool tibIsInternalString(const DetId &id) const