CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
CAHitQuadrupletGenerator::QuantityDependsPt Class Reference

Public Member Functions

QuantityDependsPtEval evaluator (const MagneticField &field) 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 90 of file CAHitQuadrupletGenerator.h.

Constructor & Destructor Documentation

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

Definition at line 92 of file CAHitQuadrupletGenerator.h.

References enabled_, Exception, pt1_, and pt2_.

93  : value1_(pset.getParameter<double>("value1")),
94  value2_(pset.getParameter<double>("value2")),
95  pt1_(pset.getParameter<double>("pt1")),
96  pt2_(pset.getParameter<double>("pt2")),
97  enabled_(pset.getParameter<bool>("enabled")) {
98  if (enabled_ && pt1_ >= pt2_)
99  throw cms::Exception("Configuration") << "PixelQuadrupletGenerator::QuantityDependsPt: pt1 (" << pt1_
100  << ") needs to be smaller than pt2 (" << pt2_ << ")";
101  if (pt1_ <= 0)
102  throw cms::Exception("Configuration")
103  << "PixelQuadrupletGenerator::QuantityDependsPt: pt1 needs to be > 0; is " << pt1_;
104  if (pt2_ <= 0)
105  throw cms::Exception("Configuration")
106  << "PixelQuadrupletGenerator::QuantityDependsPt: pt2 needs to be > 0; is " << pt2_;
107  }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303

Member Function Documentation

QuantityDependsPtEval CAHitQuadrupletGenerator::QuantityDependsPt::evaluator ( const MagneticField field) const
inline

Member Data Documentation

const bool CAHitQuadrupletGenerator::QuantityDependsPt::enabled_
private

Definition at line 124 of file CAHitQuadrupletGenerator.h.

Referenced by evaluator(), and QuantityDependsPt().

const float CAHitQuadrupletGenerator::QuantityDependsPt::pt1_
private

Definition at line 122 of file CAHitQuadrupletGenerator.h.

Referenced by evaluator(), and QuantityDependsPt().

const float CAHitQuadrupletGenerator::QuantityDependsPt::pt2_
private

Definition at line 123 of file CAHitQuadrupletGenerator.h.

Referenced by evaluator(), and QuantityDependsPt().

const float CAHitQuadrupletGenerator::QuantityDependsPt::value1_
private

Definition at line 120 of file CAHitQuadrupletGenerator.h.

Referenced by evaluator().

const float CAHitQuadrupletGenerator::QuantityDependsPt::value2_
private

Definition at line 121 of file CAHitQuadrupletGenerator.h.

Referenced by evaluator().