CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CAHitQuadrupletGenerator::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 105 of file CAHitQuadrupletGenerator.h.

Constructor & Destructor Documentation

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

Definition at line 108 of file CAHitQuadrupletGenerator.h.

References Exception.

108  :
109  value1_(pset.getParameter<double>("value1")),
110  value2_(pset.getParameter<double>("value2")),
111  pt1_(pset.getParameter<double>("pt1")),
112  pt2_(pset.getParameter<double>("pt2")),
113  enabled_(pset.getParameter<bool>("enabled")) {
114  if (enabled_ && pt1_ >= pt2_)
115  throw cms::Exception("Configuration") << "PixelQuadrupletGenerator::QuantityDependsPt: pt1 (" << pt1_ << ") needs to be smaller than pt2 (" << pt2_ << ")";
116  if (pt1_ <= 0)
117  throw cms::Exception("Configuration") << "PixelQuadrupletGenerator::QuantityDependsPt: pt1 needs to be > 0; is " << pt1_;
118  if (pt2_ <= 0)
119  throw cms::Exception("Configuration") << "PixelQuadrupletGenerator::QuantityDependsPt: pt2 needs to be > 0; is " << pt2_;
120  }
T getParameter(std::string const &) const

Member Function Documentation

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

Definition at line 122 of file CAHitQuadrupletGenerator.h.

References PixelRecoUtilities::curvature(), and f.

Referenced by CAHitQuadrupletGenerator::hitNtuplets(), and CAHitQuadrupletGenerator::hitQuadruplets().

122  {
123  if (enabled_) {
124  return QuantityDependsPtEval(value1_, value2_,
127  }
128  return QuantityDependsPtEval(value2_, value2_, 0.f, 0.f);
129  }
T curvature(T InversePt, const edm::EventSetup &iSetup)
double f[11][100]

Member Data Documentation

const bool CAHitQuadrupletGenerator::QuantityDependsPt::enabled_
private

Definition at line 136 of file CAHitQuadrupletGenerator.h.

const float CAHitQuadrupletGenerator::QuantityDependsPt::pt1_
private

Definition at line 134 of file CAHitQuadrupletGenerator.h.

const float CAHitQuadrupletGenerator::QuantityDependsPt::pt2_
private

Definition at line 135 of file CAHitQuadrupletGenerator.h.

const float CAHitQuadrupletGenerator::QuantityDependsPt::value1_
private

Definition at line 132 of file CAHitQuadrupletGenerator.h.

const float CAHitQuadrupletGenerator::QuantityDependsPt::value2_
private

Definition at line 133 of file CAHitQuadrupletGenerator.h.