CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CAHitQuadrupletGenerator::QuantityDependsPtEval Class Reference

Public Member Functions

 QuantityDependsPtEval (float v1, float v2, float c1, float c2)
 
float value (float curvature) const
 

Private Attributes

const float curvature1_
 
const float curvature2_
 
const float value1_
 
const float value2_
 

Detailed Description

Definition at line 59 of file CAHitQuadrupletGenerator.h.

Constructor & Destructor Documentation

◆ QuantityDependsPtEval()

CAHitQuadrupletGenerator::QuantityDependsPtEval::QuantityDependsPtEval ( float  v1,
float  v2,
float  c1,
float  c2 
)
inline

Definition at line 61 of file CAHitQuadrupletGenerator.h.

62  : value1_(v1), value2_(v2), curvature1_(c1), curvature2_(c2) {}

Member Function Documentation

◆ value()

float CAHitQuadrupletGenerator::QuantityDependsPtEval::value ( float  curvature) const
inline

Definition at line 64 of file CAHitQuadrupletGenerator.h.

64  {
65  if (value1_ == value2_) // not enabled
66  return value1_;
67 
68  if (curvature1_ < curvature)
69  return value1_;
72  return value2_;
73  }

References PixelRecoUtilities::curvature(), curvature1_, curvature2_, value1_, and value2_.

Referenced by CAHitQuadrupletGenerator::hitNtuplets().

Member Data Documentation

◆ curvature1_

const float CAHitQuadrupletGenerator::QuantityDependsPtEval::curvature1_
private

Definition at line 78 of file CAHitQuadrupletGenerator.h.

Referenced by value().

◆ curvature2_

const float CAHitQuadrupletGenerator::QuantityDependsPtEval::curvature2_
private

Definition at line 79 of file CAHitQuadrupletGenerator.h.

Referenced by value().

◆ value1_

const float CAHitQuadrupletGenerator::QuantityDependsPtEval::value1_
private

Definition at line 76 of file CAHitQuadrupletGenerator.h.

Referenced by value().

◆ value2_

const float CAHitQuadrupletGenerator::QuantityDependsPtEval::value2_
private

Definition at line 77 of file CAHitQuadrupletGenerator.h.

Referenced by value().

CAHitQuadrupletGenerator::QuantityDependsPtEval::value1_
const float value1_
Definition: CAHitQuadrupletGenerator.h:76
PixelRecoUtilities::curvature
T curvature(T InversePt, const edm::EventSetup &iSetup)
Definition: PixelRecoUtilities.h:42
CAHitQuadrupletGenerator::QuantityDependsPtEval::curvature1_
const float curvature1_
Definition: CAHitQuadrupletGenerator.h:78
CAHitQuadrupletGenerator::QuantityDependsPtEval::curvature2_
const float curvature2_
Definition: CAHitQuadrupletGenerator.h:79
alignmentValidation.c1
c1
do drawing
Definition: alignmentValidation.py:1025
CAHitQuadrupletGenerator::QuantityDependsPtEval::value2_
const float value2_
Definition: CAHitQuadrupletGenerator.h:77