CMS 3D CMS Logo

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

#include <HitEtaCheck.h>

Inheritance diagram for HitEtaCheck:
HitRZCompatibility

Public Member Functions

HitEtaCheckclone () const override
 
 HitEtaCheck (bool inbarrel, const HitRZConstraint::Point &point, float cotLeftLine, float cotRightLine)
 
bool operator() (const float &r, const float &z) const override
 
Range range (const float &rORz) const override
 
- Public Member Functions inherited from HitRZCompatibility
Algo algo () const
 
 HitRZCompatibility (Algo a)
 
virtual ~HitRZCompatibility ()
 

Static Public Attributes

static constexpr Algo me = etaAlgo
 

Private Attributes

bool isBarrel
 
HitRZConstraint theRZ
 

Additional Inherited Members

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

Detailed Description

Fast Implementation of HitRZCompatibility. The RZConstraint is defined by two lines and their crossing point. The r-z compatibility is tested by comparistion of cotangent given by r-z and lines crossing point with cotangents of two lines.

Definition at line 15 of file HitEtaCheck.h.

Constructor & Destructor Documentation

◆ HitEtaCheck()

HitEtaCheck::HitEtaCheck ( bool  inbarrel,
const HitRZConstraint::Point point,
float  cotLeftLine,
float  cotRightLine 
)
inline

Definition at line 19 of file HitEtaCheck.h.

20  : HitRZCompatibility(me), isBarrel(inbarrel), theRZ(HitRZConstraint(point, cotLeftLine, point, cotRightLine)) {}

Referenced by clone().

Member Function Documentation

◆ clone()

HitEtaCheck* HitEtaCheck::clone ( void  ) const
inlineoverridevirtual

Implements HitRZCompatibility.

Definition at line 32 of file HitEtaCheck.h.

32 { return new HitEtaCheck(*this); }

References HitEtaCheck().

◆ operator()()

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

Implements HitRZCompatibility.

Definition at line 22 of file HitEtaCheck.h.

22  {
23  const auto& lineLeft = theRZ.lineLeft();
24  const auto& lineRight = theRZ.lineRight();
25  float cotHit = (lineLeft.origin().z() - z) / (lineLeft.origin().r() - r);
26  return lineRight.cotLine() < cotHit && cotHit < lineLeft.cotLine();
27  }

References SimpleLineRZ::cotLine(), HitRZConstraint::lineLeft(), HitRZConstraint::lineRight(), alignCSCRings::r, theRZ, and z.

◆ range()

Range HitEtaCheck::range ( const float &  rORz) const
inlineoverridevirtual

Implements HitRZCompatibility.

Definition at line 29 of file HitEtaCheck.h.

29  {
30  return (isBarrel) ? HitZCheck(theRZ).range(rORz) : HitRCheck(theRZ).range(rORz);
31  }

References isBarrel, HitRCheck::range(), HitZCheck::range(), and theRZ.

Member Data Documentation

◆ isBarrel

bool HitEtaCheck::isBarrel
private

Definition at line 35 of file HitEtaCheck.h.

Referenced by range().

◆ me

constexpr Algo HitEtaCheck::me = etaAlgo
staticconstexpr

Definition at line 17 of file HitEtaCheck.h.

◆ theRZ

HitRZConstraint HitEtaCheck::theRZ
private

Definition at line 36 of file HitEtaCheck.h.

Referenced by operator()(), and range().

HitEtaCheck::theRZ
HitRZConstraint theRZ
Definition: HitEtaCheck.h:36
HitEtaCheck::me
static constexpr Algo me
Definition: HitEtaCheck.h:17
SimpleLineRZ::cotLine
float cotLine() const
Definition: PixelRecoLineRZ.h:74
HitZCheck
Definition: HitZCheck.h:10
HitEtaCheck::HitEtaCheck
HitEtaCheck(bool inbarrel, const HitRZConstraint::Point &point, float cotLeftLine, float cotRightLine)
Definition: HitEtaCheck.h:19
DDAxes::z
HitRZConstraint
Definition: HitRZConstraint.h:8
HitZCheck::range
Range range(const float &radius) const override
Definition: HitZCheck.h:33
HitRZConstraint::lineLeft
const Line & lineLeft() const
Definition: HitRZConstraint.h:18
HitEtaCheck::isBarrel
bool isBarrel
Definition: HitEtaCheck.h:35
alignCSCRings.r
r
Definition: alignCSCRings.py:93
HitRCheck
Definition: HitRCheck.h:10
HitRZCompatibility::HitRZCompatibility
HitRZCompatibility(Algo a)
Definition: HitRZCompatibility.h:16
HitRCheck::range
Range range(const float &z) const override
Definition: HitRCheck.h:33
point
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
HitRZConstraint::lineRight
const Line & lineRight() const
Definition: HitRZConstraint.h:19