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.

Referenced by clone().

20  : HitRZCompatibility(me), isBarrel(inbarrel), theRZ(HitRZConstraint(point, cotLeftLine, point, cotRightLine)) {}
static constexpr Algo me
Definition: HitEtaCheck.h:17
bool isBarrel
Definition: HitEtaCheck.h:35
*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 theRZ
Definition: HitEtaCheck.h:36

Member Function Documentation

◆ clone()

HitEtaCheck* HitEtaCheck::clone ( void  ) const
inlineoverridevirtual

Implements HitRZCompatibility.

Definition at line 32 of file HitEtaCheck.h.

References HitEtaCheck().

32 { return new HitEtaCheck(*this); }
HitEtaCheck(bool inbarrel, const HitRZConstraint::Point &point, float cotLeftLine, float cotRightLine)
Definition: HitEtaCheck.h:19

◆ operator()()

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

Implements HitRZCompatibility.

Definition at line 22 of file HitEtaCheck.h.

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

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  }
const Line & lineLeft() const
float cotLine() const
const Line & lineRight() const
HitRZConstraint theRZ
Definition: HitEtaCheck.h:36

◆ range()

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

Implements HitRZCompatibility.

Definition at line 29 of file HitEtaCheck.h.

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

29  {
30  return (isBarrel) ? HitZCheck(theRZ).range(rORz) : HitRCheck(theRZ).range(rORz);
31  }
Range range(const float &radius) const override
Definition: HitZCheck.h:33
bool isBarrel
Definition: HitEtaCheck.h:35
Range range(const float &z) const override
Definition: HitRCheck.h:33
HitRZConstraint theRZ
Definition: HitEtaCheck.h:36

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
static

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().