63 primaryVertexCollection(params.getParameter<edm::InputTag>(
"primaryVertices")),
64 secondaryVertexCollection(params.getParameter<edm::InputTag>(
"secondaryVertices")),
66 beamSpotCollection(params.getParameter<edm::InputTag>(
"beamSpot")),
67 dRCut(params.getParameter<double>(
"dRCut")),
68 distCut(params.getParameter<double>(
"distCut")),
69 sigCut(params.getParameter<double>(
"sigCut")),
70 dLenFraction(params.getParameter<double>(
"dLenFraction"))
72 produces<reco::VertexCollection>();
77 if (track->hitPattern().trackerLayersWithMeasurement() < 4)
79 if (track->pt() < 0.4 )
110 double sigmacut = 3.0;
127 for(std::vector<reco::Vertex>::const_iterator sv = secondaryVertices->begin();
128 sv != secondaryVertices->end(); ++sv) {
135 GlobalPoint ppv(pv.position().x(),pv.position().y(),pv.position().z());
136 GlobalPoint ssv(sv->position().x(),sv->position().y(),sv->position().z());
140 std::vector<reco::TransientTrack> selTracks;
142 for(TrackCollection::const_iterator
track =
tracks->begin();
150 float w = sv->trackWeight(ref);
157 if(isv.second.value() < ipv.second.value() && isv.second.value() <
distCut && isv.second.value() < dlen.
value()*
dLenFraction
162 selTracks.push_back(tt);
168 if(w > 0.5 && isv.second.value() < ipv.second.value() && dR <
dRCut) selTracks.push_back(tt);
178 if(selTracks.size() >= 2)
181 singleFitVertex = theAdaptiveFitter.
vertex(selTracks,ssv);
182 if(singleFitVertex.
isValid()) recoVertices->push_back(singleFitVertex);
185 event.put(recoVertices);
TrackVertexArbitrator(const edm::ParameterSet ¶ms)
void setBeamSpot(const reco::BeamSpot &beamSpot)
edm::InputTag trackCollection
#define DEFINE_FWK_MODULE(type)
virtual void produce(edm::Event &event, const edm::EventSetup &es)
edm::InputTag beamSpotCollection
double phi() const
azimuthal angle of momentum vector
std::vector< Vertex > VertexCollection
collection of Vertex objects
double eta() const
pseudorapidity of momentum vector
edm::InputTag primaryVertexCollection
virtual CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &) const
bool trackFilter(const reco::TrackRef &track) const
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::InputTag secondaryVertexCollection
double deltaR(double eta1, double eta2, double phi1, double phi2)
const Track & track() const