CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Attributes
ThirdHitRZPredictionBase Class Reference

#include <ThirdHitRZPredictionBase.h>

Inheritance diagram for ThirdHitRZPredictionBase:
ThirdHitRZPrediction< Propagator >

Public Types

typedef TkTrackingRegionsMargin< float > Margin
 
typedef PixelRecoRange< float > Range
 

Public Member Functions

const RangedetRange () const
 
const RangedetSize () const
 
void initLayer (const DetLayer *layer)
 
void initTolerance (float tolerance)
 
 ThirdHitRZPredictionBase ()
 
 ThirdHitRZPredictionBase (float tolerance, const DetLayer *layer=nullptr)
 

Protected Attributes

bool theBarrel
 
Range theDetRange
 
Range theDetSize
 
bool theForward
 
Margin theTolerance
 

Detailed Description

Definition at line 18 of file ThirdHitRZPredictionBase.h.

Member Typedef Documentation

◆ Margin

Definition at line 21 of file ThirdHitRZPredictionBase.h.

◆ Range

Definition at line 20 of file ThirdHitRZPredictionBase.h.

Constructor & Destructor Documentation

◆ ThirdHitRZPredictionBase() [1/2]

ThirdHitRZPredictionBase::ThirdHitRZPredictionBase ( )

Definition at line 9 of file ThirdHitRZPredictionBase.cc.

9 : theBarrel(false), theForward(false), theTolerance(0., 0.) {}

◆ ThirdHitRZPredictionBase() [2/2]

ThirdHitRZPredictionBase::ThirdHitRZPredictionBase ( float  tolerance,
const DetLayer layer = nullptr 
)

Definition at line 11 of file ThirdHitRZPredictionBase.cc.

13  if (layer)
14  initLayer(layer);
15 }

References initLayer().

Member Function Documentation

◆ detRange()

const Range& ThirdHitRZPredictionBase::detRange ( ) const
inline

Definition at line 26 of file ThirdHitRZPredictionBase.h.

26 { return theDetRange; }

References theDetRange.

◆ detSize()

const Range& ThirdHitRZPredictionBase::detSize ( ) const
inline

Definition at line 27 of file ThirdHitRZPredictionBase.h.

27 { return theDetSize; }

References theDetSize.

◆ initLayer()

void ThirdHitRZPredictionBase::initLayer ( const DetLayer layer)

Definition at line 17 of file ThirdHitRZPredictionBase.cc.

17  {
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 }

References GeomDetEnumerators::barrel, Surface::bounds(), GeomDetEnumerators::endcap, SimpleDiskBounds::innerRadius(), Bounds::length(), DetLayer::location(), CosmicsPD_Skims::maxZ, SimpleDiskBounds::outerRadius(), GeometricSearchDet::position(), CosmicsPD_Skims::radius, BarrelDetLayer::specificSurface(), BarrelDetLayer::surface(), ForwardDetLayer::surface(), theBarrel, theDetRange, theDetSize, theForward, Bounds::thickness(), and PV3DBase< T, PVType, FrameType >::z().

Referenced by PixelTripletHLTGenerator::hitTriplets(), and ThirdHitRZPredictionBase().

◆ initTolerance()

void ThirdHitRZPredictionBase::initTolerance ( float  tolerance)
inline

Definition at line 29 of file ThirdHitRZPredictionBase.h.

References theTolerance, and tolerance.

Referenced by PixelTripletHLTGenerator::hitTriplets().

Member Data Documentation

◆ theBarrel

bool ThirdHitRZPredictionBase::theBarrel
protected

◆ theDetRange

Range ThirdHitRZPredictionBase::theDetRange
protected

Definition at line 34 of file ThirdHitRZPredictionBase.h.

Referenced by detRange(), and initLayer().

◆ theDetSize

Range ThirdHitRZPredictionBase::theDetSize
protected

Definition at line 34 of file ThirdHitRZPredictionBase.h.

Referenced by detSize(), and initLayer().

◆ theForward

bool ThirdHitRZPredictionBase::theForward
protected

Definition at line 33 of file ThirdHitRZPredictionBase.h.

Referenced by initLayer().

◆ theTolerance

Margin ThirdHitRZPredictionBase::theTolerance
protected

Definition at line 35 of file ThirdHitRZPredictionBase.h.

Referenced by initTolerance().

SimpleDiskBounds::outerRadius
float outerRadius() const
Definition: SimpleDiskBounds.h:35
ThirdHitRZPredictionBase::initLayer
void initLayer(const DetLayer *layer)
Definition: ThirdHitRZPredictionBase.cc:17
ThirdHitRZPredictionBase::Margin
TkTrackingRegionsMargin< float > Margin
Definition: ThirdHitRZPredictionBase.h:21
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
DetLayer::location
virtual Location location() const =0
Which part of the detector (barrel, endcap)
ThirdHitRZPredictionBase::theDetRange
Range theDetRange
Definition: ThirdHitRZPredictionBase.h:34
Surface::bounds
const Bounds & bounds() const
Definition: Surface.h:87
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:27
BarrelDetLayer
Definition: BarrelDetLayer.h:22
ThirdHitRZPredictionBase::theForward
bool theForward
Definition: ThirdHitRZPredictionBase.h:33
ForwardDetLayer
Definition: ForwardDetLayer.h:22
ThirdHitRZPredictionBase::theTolerance
Margin theTolerance
Definition: ThirdHitRZPredictionBase.h:35
CosmicsPD_Skims.radius
radius
Definition: CosmicsPD_Skims.py:135
BarrelDetLayer::specificSurface
virtual const BoundCylinder & specificSurface() const final
Extension of the interface.
Definition: BarrelDetLayer.h:39