CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Attributes | Private Attributes
HitZCheck Class Referencefinal

#include <HitZCheck.h>

Inheritance diagram for HitZCheck:
HitRZCompatibility

Public Types

typedef TkTrackingRegionsMargin< float > Margin
 
- Public Types inherited from HitRZCompatibility
enum  Algo { zAlgo = 0, rAlgo = 1, etaAlgo = 2 }
 
typedef PixelRecoRange< float > Range
 

Public Member Functions

HitZCheckclone () const override
 
 HitZCheck ()
 
 HitZCheck (const HitRZConstraint &rz, Margin margin=Margin(0, 0))
 
bool operator() (const float &r, const float &z) const override
 
Range range (const float &radius) const override
 
void setTolerance (const Margin &tolerance)
 
- Public Member Functions inherited from HitRZCompatibility
Algo algo () const
 
 HitRZCompatibility (Algo a)
 
virtual ~HitRZCompatibility ()
 

Static Public Attributes

static constexpr Algo me = zAlgo
 

Private Attributes

HitRZConstraint theRZ
 
Margin theTolerance
 

Additional Inherited Members

- Public Attributes inherited from HitRZCompatibility
Algo m_algo
 

Detailed Description

provides allowed range of Z coordinate from HitRZConstraint at a given radius R

Definition at line 10 of file HitZCheck.h.

Member Typedef Documentation

◆ Margin

Definition at line 14 of file HitZCheck.h.

Constructor & Destructor Documentation

◆ HitZCheck() [1/2]

HitZCheck::HitZCheck ( )
inline

Definition at line 16 of file HitZCheck.h.

Referenced by clone().

◆ HitZCheck() [2/2]

HitZCheck::HitZCheck ( const HitRZConstraint rz,
Margin  margin = Margin(0, 0) 
)
inline

Definition at line 17 of file HitZCheck.h.

Member Function Documentation

◆ clone()

HitZCheck* HitZCheck::clone ( void  ) const
inlineoverridevirtual

Implements HitRZCompatibility.

Definition at line 24 of file HitZCheck.h.

24 { return new HitZCheck(*this); }

References HitZCheck().

◆ operator()()

bool HitZCheck::operator() ( const float &  r,
const float &  z 
) const
inlineoverridevirtual

Implements HitRZCompatibility.

Definition at line 20 of file HitZCheck.h.

20 { return range(r).inside(z); }

References PixelRecoRange< T >::inside(), alignCSCRings::r, range(), and z.

◆ range()

HitZCheck::Range HitZCheck::range ( const float &  radius) const
inlineoverridevirtual

◆ setTolerance()

void HitZCheck::setTolerance ( const Margin tolerance)
inline

Definition at line 26 of file HitZCheck.h.

References theTolerance, and tolerance.

Referenced by RectangularEtaPhiTrackingRegion::estimator().

Member Data Documentation

◆ me

constexpr Algo HitZCheck::me = zAlgo
staticconstexpr

Definition at line 12 of file HitZCheck.h.

◆ theRZ

HitRZConstraint HitZCheck::theRZ
private

Definition at line 29 of file HitZCheck.h.

Referenced by range().

◆ theTolerance

Margin HitZCheck::theTolerance
private

Definition at line 30 of file HitZCheck.h.

Referenced by range(), and setTolerance().

HitZCheck::theTolerance
Margin theTolerance
Definition: HitZCheck.h:30
TkTrackingRegionsMargin::left
const T & left() const
Definition: TkTrackingRegionsMargin.h:18
DDAxes::z
HitZCheck::range
Range range(const float &radius) const override
Definition: HitZCheck.h:33
HitRZConstraint::lineLeft
const Line & lineLeft() const
Definition: HitRZConstraint.h:18
HitRZCompatibility::Range
PixelRecoRange< float > Range
Definition: HitRZCompatibility.h:14
tolerance
const double tolerance
Definition: HGCalGeomParameters.cc:26
TkTrackingRegionsMargin::right
const T & right() const
Definition: TkTrackingRegionsMargin.h:19
SimpleLineRZ::zAtR
float zAtR(float r) const
Definition: PixelRecoLineRZ.h:77
alignCSCRings.r
r
Definition: alignCSCRings.py:93
HitRZCompatibility::HitRZCompatibility
HitRZCompatibility(Algo a)
Definition: HitRZCompatibility.h:16
CosmicsPD_Skims.radius
radius
Definition: CosmicsPD_Skims.py:135
HitZCheck::HitZCheck
HitZCheck()
Definition: HitZCheck.h:16
PixelRecoRange::inside
bool inside(const T &value) const
Definition: PixelRecoRange.h:36
HitRZConstraint::lineRight
const Line & lineRight() const
Definition: HitRZConstraint.h:19
HitZCheck::me
static constexpr Algo me
Definition: HitZCheck.h:12
HitZCheck::theRZ
HitRZConstraint theRZ
Definition: HitZCheck.h:29
margin
Double_t margin
Definition: trackSplitPlot.h:45