CMS 3D CMS Logo

ThirdHitRZPredictionBase.cc
Go to the documentation of this file.
8 
9 ThirdHitRZPredictionBase::ThirdHitRZPredictionBase() : theBarrel(false), theForward(false), theTolerance(0., 0.) {}
10 
12  : theBarrel(false), theForward(false), theTolerance(tolerance, tolerance) {
13  if (layer)
15 }
16 
18  if (layer->location() == GeomDetEnumerators::barrel) {
19  theBarrel = true;
20  theForward = false;
21  const BarrelDetLayer& bl = reinterpret_cast<const BarrelDetLayer&>(*layer);
22  float halfThickness = bl.surface().bounds().thickness() / 2;
23  float radius = bl.specificSurface().radius();
24  theDetRange = Range(radius - halfThickness, radius + halfThickness);
25  float maxZ = bl.surface().bounds().length() / 2;
27  } else if (layer->location() == GeomDetEnumerators::endcap) {
28  theBarrel = false;
29  theForward = true;
30  const ForwardDetLayer& fl = reinterpret_cast<const ForwardDetLayer&>(*layer);
31  float halfThickness = fl.surface().bounds().thickness() / 2;
32  float zLayer = fl.position().z();
33  theDetRange = Range(zLayer - halfThickness, zLayer + halfThickness);
34  const SimpleDiskBounds& diskRadialBounds = static_cast<const SimpleDiskBounds&>(fl.surface().bounds());
35  theDetSize = Range(diskRadialBounds.innerRadius(), diskRadialBounds.outerRadius());
36  } else {
37  theBarrel = theForward = false;
38  }
39 }
funct::false
false
Definition: Factorize.h:29
SimpleDiskBounds::outerRadius
float outerRadius() const
Definition: SimpleDiskBounds.h:35
DetLayer
Definition: DetLayer.h:21
ThirdHitRZPredictionBase::initLayer
void initLayer(const DetLayer *layer)
Definition: ThirdHitRZPredictionBase.cc:17
BarrelDetLayer::surface
const BoundSurface & surface() const final
GeometricSearchDet interface.
Definition: BarrelDetLayer.h:29
ForwardDetLayer::surface
const BoundSurface & surface() const final
The surface of the GeometricSearchDet.
Definition: ForwardDetLayer.h:29
GeometricSearchDet::position
virtual const Surface::PositionType & position() const
Returns position of the surface.
Definition: GeometricSearchDet.h:31
ThirdHitRZPredictionBase::Range
PixelRecoRange< float > Range
Definition: ThirdHitRZPredictionBase.h:20
SimpleDiskBounds::innerRadius
float innerRadius() const
Extension of the Bounds interface.
Definition: SimpleDiskBounds.h:34
Bounds::length
virtual float length() const =0
CosmicsPD_Skims.maxZ
maxZ
Definition: CosmicsPD_Skims.py:136
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
GeomDetEnumerators::barrel
Definition: GeomDetEnumerators.h:9
SimpleDiskBounds
Definition: SimpleDiskBounds.h:11
ThirdHitRZPredictionBase.h
ThirdHitRZPredictionBase::theDetRange
Range theDetRange
Definition: ThirdHitRZPredictionBase.h:34
Surface::bounds
const Bounds & bounds() const
Definition: Surface.h:87
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
Bounds::thickness
virtual float thickness() const =0
ThirdHitRZPredictionBase::theDetSize
Range theDetSize
Definition: ThirdHitRZPredictionBase.h:34
GeomDetEnumerators::endcap
Definition: GeomDetEnumerators.h:9
ThirdHitRZPredictionBase::theBarrel
bool theBarrel
Definition: ThirdHitRZPredictionBase.h:33
tolerance
const double tolerance
Definition: HGCalGeomParameters.cc:29
BarrelDetLayer.h
BarrelDetLayer
Definition: BarrelDetLayer.h:22
ThirdHitRZPredictionBase::ThirdHitRZPredictionBase
ThirdHitRZPredictionBase()
Definition: ThirdHitRZPredictionBase.cc:9
MultipleScatteringParametrisation.h
ThirdHitRZPredictionBase::theForward
bool theForward
Definition: ThirdHitRZPredictionBase.h:33
ForwardDetLayer
Definition: ForwardDetLayer.h:22
ForwardDetLayer.h
CosmicsPD_Skims.radius
radius
Definition: CosmicsPD_Skims.py:135
DetLayer.h
SimpleDiskBounds.h
BarrelDetLayer::specificSurface
virtual const BoundCylinder & specificSurface() const final
Extension of the interface.
Definition: BarrelDetLayer.h:39
GlobalPoint.h