CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CAHitTripletGenerator::QuantityDependsPt Class Reference

Public Member Functions

QuantityDependsPtEval evaluator (const edm::EventSetup &es) const
 
 QuantityDependsPt (const edm::ParameterSet &pset)
 

Private Attributes

const bool enabled_
 
const float pt1_
 
const float pt2_
 
const float value1_
 
const float value2_
 

Detailed Description

Definition at line 85 of file CAHitTripletGenerator.h.

Constructor & Destructor Documentation

◆ QuantityDependsPt()

CAHitTripletGenerator::QuantityDependsPt::QuantityDependsPt ( const edm::ParameterSet pset)
inlineexplicit

Definition at line 87 of file CAHitTripletGenerator.h.

88  : value1_(pset.getParameter<double>("value1")),
89  value2_(pset.getParameter<double>("value2")),
90  pt1_(pset.getParameter<double>("pt1")),
91  pt2_(pset.getParameter<double>("pt2")),
92  enabled_(pset.getParameter<bool>("enabled")) {
93  if (enabled_ && pt1_ >= pt2_)
94  throw cms::Exception("Configuration") << "CAHitTripletGenerator::QuantityDependsPt: pt1 (" << pt1_
95  << ") needs to be smaller than pt2 (" << pt2_ << ")";
96  if (pt1_ <= 0)
97  throw cms::Exception("Configuration")
98  << "CAHitTripletGenerator::QuantityDependsPt: pt1 needs to be > 0; is " << pt1_;
99  if (pt2_ <= 0)
100  throw cms::Exception("Configuration")
101  << "CAHitTripletGenerator::QuantityDependsPt: pt2 needs to be > 0; is " << pt2_;
102  }

References enabled_, Exception, pt1_, and pt2_.

Member Function Documentation

◆ evaluator()

QuantityDependsPtEval CAHitTripletGenerator::QuantityDependsPt::evaluator ( const edm::EventSetup es) const
inline

Definition at line 104 of file CAHitTripletGenerator.h.

104  {
105  if (enabled_) {
106  return QuantityDependsPtEval(value1_,
107  value2_,
110  }
111  return QuantityDependsPtEval(value2_, value2_, 0.f, 0.f);
112  }

References PixelRecoUtilities::curvature(), enabled_, f, pt1_, pt2_, value1_, and value2_.

Referenced by CAHitTripletGenerator::hitNtuplets().

Member Data Documentation

◆ enabled_

const bool CAHitTripletGenerator::QuantityDependsPt::enabled_
private

Definition at line 119 of file CAHitTripletGenerator.h.

Referenced by evaluator(), and QuantityDependsPt().

◆ pt1_

const float CAHitTripletGenerator::QuantityDependsPt::pt1_
private

Definition at line 117 of file CAHitTripletGenerator.h.

Referenced by evaluator(), and QuantityDependsPt().

◆ pt2_

const float CAHitTripletGenerator::QuantityDependsPt::pt2_
private

Definition at line 118 of file CAHitTripletGenerator.h.

Referenced by evaluator(), and QuantityDependsPt().

◆ value1_

const float CAHitTripletGenerator::QuantityDependsPt::value1_
private

Definition at line 115 of file CAHitTripletGenerator.h.

Referenced by evaluator().

◆ value2_

const float CAHitTripletGenerator::QuantityDependsPt::value2_
private

Definition at line 116 of file CAHitTripletGenerator.h.

Referenced by evaluator().

CAHitTripletGenerator::QuantityDependsPt::enabled_
const bool enabled_
Definition: CAHitTripletGenerator.h:119
CAHitTripletGenerator::QuantityDependsPt::pt2_
const float pt2_
Definition: CAHitTripletGenerator.h:118
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
PixelRecoUtilities::curvature
T curvature(T InversePt, const edm::EventSetup &iSetup)
Definition: PixelRecoUtilities.h:42
CAHitTripletGenerator::QuantityDependsPt::value1_
const float value1_
Definition: CAHitTripletGenerator.h:115
CAHitTripletGenerator::QuantityDependsPt::pt1_
const float pt1_
Definition: CAHitTripletGenerator.h:117
Exception
Definition: hltDiff.cc:246
CAHitTripletGenerator::QuantityDependsPt::value2_
const float value2_
Definition: CAHitTripletGenerator.h:116
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27