65 double track_pt_min = PVcomparerPSet.getParameter<
double>(
"track_pt_min");
66 double track_pt_max = PVcomparerPSet.getParameter<
double>(
"track_pt_max");
67 double track_chi2_max = PVcomparerPSet.getParameter<
double>(
"track_chi2_max");
68 double track_prob_min = PVcomparerPSet.getParameter<
double>(
"track_prob_min");
72 produces<reco::VertexCollection>();
81 auto vtxs_trim = std::make_unique<reco::VertexCollection>();
101 for (reco::VertexCollection::const_iterator
vtx = vtxs->begin(), evtx = vtxs->end();
vtx != evtx; ++
vtx) {
102 if (vtxs_trim->size() >=
maxVtx_)
108 vtxs_trim->push_back(*
vtx);
120 desc.add<
unsigned int>(
"maxVtx", 100)->setComment(
"max output collection size (number of accepted vertices)");
121 desc.add<
double>(
"fractionSumPt2", 0.3)->setComment(
"threshold on sumPt2 fraction of the leading vertex");
122 desc.add<
double>(
"minSumPt2", 0.)->setComment(
"min sumPt2");
124 PVcomparerPSet.
add<
double>(
"track_pt_min", 1.0)->
setComment(
"min track p_T");
125 PVcomparerPSet.
add<
double>(
"track_pt_max", 10.0)->
setComment(
"max track p_T");
126 PVcomparerPSet.
add<
double>(
"track_chi2_max", 99999.)->
setComment(
"max track chi2");
127 PVcomparerPSet.
add<
double>(
"track_prob_min", -1.)->
setComment(
"min track prob");
129 ->setComment(
"from RecoPixelVertexing/PixelVertexFinding/python/PVClusterComparer_cfi.py");
130 descriptions.
add(
"hltPixelVertexCollectionTrimmer",
desc);