32 maxFraction(params.getParameter<double>(
"maxFraction")),
33 minSignificance(params.getParameter<double>(
"minSignificance"))
36 produces<reco::VertexCollection>();
42 std::set<reco::TrackRef> pvTracks;
43 for(std::vector<reco::TrackBaseRef>::const_iterator
iter = pv.
tracks_begin();
50 for(std::vector<reco::TrackBaseRef>::const_iterator
iter = sv.
tracks_begin();
58 return (
double)count / (double)
total;
70 for(std::vector<reco::Vertex>::const_iterator sv = secondaryVertices->begin();
71 sv != secondaryVertices->end(); ++sv) {
72 recoVertices->push_back(*sv);
74 for(std::vector<reco::Vertex>::iterator sv = recoVertices->begin();
75 sv != recoVertices->end(); ++sv) {
78 for(std::vector<reco::Vertex>::iterator sv2 = recoVertices->begin();
79 sv2 != recoVertices->end(); ++sv2) {
93 if(shared) { sv=recoVertices->erase(sv)-1; }
97 event.put(recoVertices);
T getParameter(std::string const &) const
trackRef_iterator tracks_end() const
last iterator over tracks
VertexMerger(const edm::ParameterSet ¶ms)
#define DEFINE_FWK_MODULE(type)
std::vector< Vertex > VertexCollection
collection of Vertex objects
bool trackFilter(const reco::TrackRef &track) const
static double computeSharedTracks(const reco::Vertex &pv, const reco::Vertex &sv)
float trackWeight(const TREF &r) const
returns the weight with which a Track has contributed to the vertex-fit.
virtual void produce(edm::Event &event, const edm::EventSetup &es) override
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
edm::EDGetTokenT< reco::VertexCollection > token_secondaryVertex
trackRef_iterator tracks_begin() const
first iterator over tracks