39 maxFraction(params.getParameter<double>(
"maxFraction")),
55 std::auto_ptr<Product> recoVertices(
new Product);
58 recoVertices->push_back(*sv);
60 for(
typename Product::iterator sv = recoVertices->begin();
61 sv != recoVertices->end(); ++sv) {
65 for(
typename Product::iterator sv2 = recoVertices->begin();
66 sv2 != recoVertices->end(); ++sv2) {
81 if(shared) { sv=recoVertices->erase(sv)-1; }
85 event.put(recoVertices);
reco::Vertex::Point convertPos(const GlobalPoint &p)
T getParameter(std::string const &) const
edm::EDGetTokenT< Product > token_secondaryVertex
TemplatedVertexMerger< reco::VertexCompositePtrCandidate > CandidateVertexMerger
#define DEFINE_FWK_MODULE(type)
reco::Vertex::Error convertError(const GlobalError &ge)
TemplatedVertexMerger(const edm::ParameterSet ¶ms)
std::vector< VTX > Product
double computeSharedTracks(const reco::Vertex &pv, const std::vector< reco::TrackRef > &svTracks, double minTrackWeight=0.5, float unused=0)
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
TemplatedVertexMerger< reco::Vertex > VertexMerger
bool trackFilter(const reco::TrackRef &track) const
virtual void produce(edm::Event &event, const edm::EventSetup &es) override