1 #ifndef RECOPIXELVERTEXING_PIXELTRIPLETS_CAHITTRIPLETGENERATOR_H 2 #define RECOPIXELVERTEXING_PIXELTRIPLETS_CAHITTRIPLETGENERATOR_H 55 std::vector<OrderedHitSeeds>&
result,
62 std::vector<const HitDoublets *>& hitDoublets,
76 value1_(v1), value2_(v2), curvature1_(c1), curvature2_(c2) {
80 if (value1_ == value2_)
83 if (curvature1_ < curvature)
85 if (curvature2_ < curvature && curvature <= curvature1_)
86 return value2_ + (curvature - curvature2_) / (curvature1_ - curvature2_) * (value1_ - value2_);
106 value1_(pset.getParameter<double>(
"value1")),
107 value2_(pset.getParameter<double>(
"value2")),
108 pt1_(pset.getParameter<double>(
"pt1")),
109 pt2_(pset.getParameter<double>(
"pt2")),
110 enabled_(pset.getParameter<bool>(
"enabled")) {
111 if (enabled_ && pt1_ >= pt2_)
112 throw cms::Exception(
"Configuration") <<
"CAHitTripletGenerator::QuantityDependsPt: pt1 (" << pt1_ <<
") needs to be smaller than pt2 (" << pt2_ <<
")";
114 throw cms::Exception(
"Configuration") <<
"CAHitTripletGenerator::QuantityDependsPt: pt1 needs to be > 0; is " << pt1_;
116 throw cms::Exception(
"Configuration") <<
"CAHitTripletGenerator::QuantityDependsPt: pt2 needs to be > 0; is " << pt2_;
141 const float caThetaCut = 0.00125f;
142 const float caPhiCut = 1.f;
143 const float caHardPtCut = 0.f;
QuantityDependsPt(const edm::ParameterSet &pset)
const QuantityDependsPt maxChi2
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
static const char * fillDescriptionsLabel()
CAHitTripletGenerator(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC, bool needSeedingLayerSetsHits=true)
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
const bool useBendingCorrection
edm::EDGetTokenT< SeedingLayerSetsHits > theSeedingLayerToken
OrderedHitSeeds ResultType
QuantityDependsPtEval evaluator(const edm::EventSetup &es) const
T curvature(T InversePt, const edm::EventSetup &iSetup)
LayerHitMapCache LayerCacheType
float value(float curvature) const
QuantityDependsPtEval(float v1, float v2, float c1, float c2)
const float extraHitRPhitolerance
LayerCacheType theLayerCache
std::unique_ptr< SeedComparitor > theComparitor