CMS 3D CMS Logo

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

Constructor & Destructor Documentation

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

Definition at line 78 of file PixelQuadrupletGenerator.h.

References Exception.

78  :
79  value1_(pset.getParameter<double>("value1")),
80  value2_(pset.getParameter<double>("value2")),
81  pt1_(pset.getParameter<double>("pt1")),
82  pt2_(pset.getParameter<double>("pt2")),
83  enabled_(pset.getParameter<bool>("enabled"))
84  {
85  if(enabled_ && pt1_ >= pt2_)
86  throw cms::Exception("Configuration") << "PixelQuadrupletGenerator::QuantityDependsPt: pt1 (" << pt1_ << ") needs to be smaller than pt2 (" << pt2_ << ")";
87  if(pt1_ <= 0)
88  throw cms::Exception("Configuration") << "PixelQuadrupletGenerator::QuantityDependsPt: pt1 needs to be > 0; is " << pt1_;
89  if(pt2_ <= 0)
90  throw cms::Exception("Configuration") << "PixelQuadrupletGenerator::QuantityDependsPt: pt2 needs to be > 0; is " << pt2_;
91  }
T getParameter(std::string const &) const

Member Function Documentation

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

Member Data Documentation

const bool PixelQuadrupletGenerator::QuantityDependsPt::enabled_
private

Definition at line 107 of file PixelQuadrupletGenerator.h.

const float PixelQuadrupletGenerator::QuantityDependsPt::pt1_
private

Definition at line 105 of file PixelQuadrupletGenerator.h.

const float PixelQuadrupletGenerator::QuantityDependsPt::pt2_
private

Definition at line 106 of file PixelQuadrupletGenerator.h.

const float PixelQuadrupletGenerator::QuantityDependsPt::value1_
private

Definition at line 103 of file PixelQuadrupletGenerator.h.

const float PixelQuadrupletGenerator::QuantityDependsPt::value2_
private

Definition at line 104 of file PixelQuadrupletGenerator.h.