34 bool operator()(
const Hit& h1,
const Hit& h2) {
return h1->globalPosition().perp2() < h2->globalPosition().perp2(); }
41 desc.add<
double>(
"originHalfLength", 1E9);
42 desc.add<
double>(
"originRadius", 1E9);
43 desc.add<
bool>(
"useProtoTrackKinematics",
false);
44 desc.add<
bool>(
"useEventsWithNoVertex",
true);
45 desc.add<
std::string>(
"TTRHBuilder",
"TTRHBuilderWithoutAngle4PixelTriplets");
46 desc.add<
bool>(
"usePV",
false);
47 desc.add<
bool>(
"includeFourthHit",
false);
52 psd0.add<
double>(
"SeedMomentumForBOFF", 5.0);
53 psd0.add<
double>(
"OriginTransverseErrorMultiplier", 1.0);
54 psd0.add<
double>(
"MinOneOverPtError", 1.0);
57 psd0.add<
bool>(
"forceKinematicWithRegionDirection",
false);
60 descriptions.
add(
"SeedGeneratorFromProtoTracksEDProducer",
desc);
68 usePV_(
cfg.getParameter<
bool>(
"usePV")),
69 includeFourthHit_(
cfg.getParameter<
bool>(
"includeFourthHit")),
71 theInputVertexCollectionTag(
73 seedCreator_(
cfg.getParameter<
edm::
ParameterSet>(
"SeedCreatorPSet"), consumesCollector()),
74 config_(consumesCollector()) {
75 produces<TrajectorySeedCollection>();
79 auto result = std::make_unique<TrajectorySeedCollection>();
92 for (TrackCollection::const_iterator it = protos.begin(); it != protos.end(); ++it) {
93 const Track& proto = (*it);
97 bool keepTrack =
false;
98 if ((!foundVertices) ||
vertices->empty()) {
104 double distR2 =
sqr(
vtx.x() - aPV.x()) +
sqr(
vtx.y() - aPV.y());
105 double distZ = fabs(
vtx.z() - aPV.z());
112 double distR2 =
sqr(
vtx.x() - aPV.x()) +
sqr(
vtx.y() - aPV.y());
113 double distZ = fabs(
vtx.z() - aPV.z());
125 if (seedFromProtoTrack.
isValid())
128 std::vector<Hit>
hits;
136 if (
hits.size() > 1) {
const SeedFromProtoTrack::Config config_
SeedGeneratorFromProtoTracksEDProducer(const edm::ParameterSet &cfg)
size_t recHitsSize() const
Get number of RecHits. (Warning, this includes invalid hits, which are not physical hits)...
SeedFromConsecutiveHitsCreator seedCreator_
std::vector< Track > TrackCollection
collection of Tracks
std::vector< Vertex > VertexCollection
collection of Vertex objects
TrajectorySeed trajectorySeed() const
const bool useProtoTrackKinematics
const edm::EDGetTokenT< reco::TrackCollection > theInputCollectionTag
bool operator()(const Hit &h1, const Hit &h2)
BaseTrackerRecHit const * ConstRecHitPointer
const bool includeFourthHit_
const double originRadius
const Point & vertex() const
reference point on the track. This method is DEPRECATED, please use referencePoint() instead ...
ParameterDescriptionBase * add(U const &iLabel, T const &value)
const edm::EDGetTokenT< reco::VertexCollection > theInputVertexCollectionTag
SeedingHitSet::ConstRecHitPointer Hit
const double originHalfLength
void produce(edm::Event &ev, const edm::EventSetup &es) override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
caConstants::TupleMultiplicity const CAHitNtupletGeneratorKernelsGPU::HitToTuple const cms::cuda::AtomicPairCounter GPUCACell const *__restrict__ uint32_t const *__restrict__ gpuPixelDoublets::CellNeighborsVector const gpuPixelDoublets::CellTracksVector const GPUCACell::OuterHitOfCell const int32_t nHits
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const Vector & momentum() const
track momentum vector
TrackingRecHitRef recHit(size_t i) const
Get i-th hit on the track.
const bool useEventsWithNoVertex