34 secondaryVertexCollection(params.getParameter<edm::InputTag>(
"secondaryVertices")),
35 maxFraction(params.getParameter<double>(
"maxFraction")),
36 minSignificance(params.getParameter<double>(
"minSignificance"))
38 produces<reco::VertexCollection>();
44 std::set<reco::TrackRef> pvTracks;
45 for(std::vector<reco::TrackBaseRef>::const_iterator iter = pv.
tracks_begin();
52 for(std::vector<reco::TrackBaseRef>::const_iterator iter = sv.
tracks_begin();
60 return (
double)count / (double)
total;
72 for(std::vector<reco::Vertex>::const_iterator sv = secondaryVertices->begin();
73 sv != secondaryVertices->end(); ++sv) {
74 recoVertices->push_back(*sv);
76 for(std::vector<reco::Vertex>::iterator sv = recoVertices->begin();
77 sv != recoVertices->end(); ++sv) {
80 for(std::vector<reco::Vertex>::iterator sv2 = recoVertices->begin();
81 sv2 != recoVertices->end(); ++sv2) {
95 if(shared) { sv=recoVertices->erase(sv)-1; }
99 event.put(recoVertices);
trackRef_iterator tracks_end() const
last iterator over tracks
VertexMerger(const edm::ParameterSet ¶ms)
edm::InputTag secondaryVertexCollection
#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)
virtual void produce(edm::Event &event, const edm::EventSetup &es)
float trackWeight(const TrackBaseRef &r) const
returns the weight with which a Track has contributed to the vertex-fit.
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
trackRef_iterator tracks_begin() const
first iterator over tracks