1 #ifndef RECOPIXELVERTEXING_PIXELTRIPLETS_CAHITQUADRUPLETGENERATOR_H 2 #define RECOPIXELVERTEXING_PIXELTRIPLETS_CAHITQUADRUPLETGENERATOR_H 58 std::vector<OrderedHitSeeds>&
result,
65 std::vector<const HitDoublets *>& hitDoublets,
79 value1_(v1), value2_(v2), curvature1_(c1), curvature2_(c2) {
83 if (value1_ == value2_)
86 if (curvature1_ < curvature)
88 if (curvature2_ < curvature && curvature <= curvature1_)
89 return value2_ + (curvature - curvature2_) / (curvature1_ - curvature2_) * (value1_ - value2_);
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_ <<
")";
117 throw cms::Exception(
"Configuration") <<
"PixelQuadrupletGenerator::QuantityDependsPt: pt1 needs to be > 0; is " << pt1_;
119 throw cms::Exception(
"Configuration") <<
"PixelQuadrupletGenerator::QuantityDependsPt: pt2 needs to be > 0; is " << pt2_;
146 const float caThetaCut = 0.00125f;
147 const float caPhiCut = 0.1f;
148 const float caHardPtCut = 0.f;
149 const bool caOnlyOneLastHitPerLayerFilter =
false;
static const char * fillDescriptionsLabel()
float value(float curvature) const
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
const bool useBendingCorrection
LayerCacheType theLayerCache
CAHitQuadrupletGenerator(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC, bool needSeedingLayerSetsHits=true)
std::unique_ptr< SeedComparitor > theComparitor
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
T curvature(T InversePt, const edm::EventSetup &iSetup)
LayerHitMapCache LayerCacheType
const float extraHitRPhitolerance
const bool fitFastCircleChi2Cut
const QuantityDependsPt maxChi2
QuantityDependsPtEval(float v1, float v2, float c1, float c2)
OrderedHitSeeds ResultType
QuantityDependsPtEval evaluator(const edm::EventSetup &es) const
edm::EDGetTokenT< SeedingLayerSetsHits > theSeedingLayerToken
QuantityDependsPt(const edm::ParameterSet &pset)