33 secondaryVertexCollection(params.getParameter<edm::InputTag>(
"secondaryVertices")),
34 maxFraction(params.getParameter<double>(
"maxFraction"))
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) {
83 if (fr >
maxFraction && dist.distance(*sv,*sv2).significance() < 2 && sv-sv2!=0
93 if(shared) { sv=recoVertices->erase(sv)-1; }
97 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