1 #ifndef RECOPIXELVERTEXING_PIXELTRIPLETS_CAHITQUADRUPLETGENERATOR_H 2 #define RECOPIXELVERTEXING_PIXELTRIPLETS_CAHITQUADRUPLETGENERATOR_H 49 std::vector<OrderedHitSeeds>&
result,
62 value1_(v1), value2_(v2), curvature1_(c1), curvature2_(c2) {
66 if (value1_ == value2_)
69 if (curvature1_ < curvature)
71 if (curvature2_ < curvature && curvature <= curvature1_)
72 return value2_ + (curvature - curvature2_) / (curvature1_ - curvature2_) * (value1_ - value2_);
92 value1_(pset.getParameter<double>(
"value1")),
93 value2_(pset.getParameter<double>(
"value2")),
94 pt1_(pset.getParameter<double>(
"pt1")),
95 pt2_(pset.getParameter<double>(
"pt2")),
96 enabled_(pset.getParameter<
bool>(
"enabled")) {
97 if (enabled_ && pt1_ >= pt2_)
98 throw cms::Exception(
"Configuration") <<
"PixelQuadrupletGenerator::QuantityDependsPt: pt1 (" << pt1_ <<
") needs to be smaller than pt2 (" << pt2_ <<
")";
100 throw cms::Exception(
"Configuration") <<
"PixelQuadrupletGenerator::QuantityDependsPt: pt1 needs to be > 0; is " << pt1_;
102 throw cms::Exception(
"Configuration") <<
"PixelQuadrupletGenerator::QuantityDependsPt: pt2 needs to be > 0; is " << pt2_;
129 const float caThetaCut = 0.00125f;
130 const float caPhiCut = 0.1f;
131 const float caHardPtCut = 0.f;
static const char * fillDescriptionsLabel()
float value(float curvature) const
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
const bool useBendingCorrection
LayerCacheType theLayerCache
std::unique_ptr< SeedComparitor > theComparitor
T curvature(T InversePt, const edm::EventSetup &iSetup)
LayerHitMapCache LayerCacheType
const float extraHitRPhitolerance
const bool fitFastCircleChi2Cut
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
CAHitQuadrupletGenerator(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
const QuantityDependsPt maxChi2
QuantityDependsPtEval(float v1, float v2, float c1, float c2)
OrderedHitSeeds ResultType
QuantityDependsPtEval evaluator(const edm::EventSetup &es) const
QuantityDependsPt(const edm::ParameterSet &pset)