63 primaryVertexCollection (params.getParameter<edm::InputTag>(
"primaryVertices")),
64 secondaryVertexCollection (params.getParameter<edm::InputTag>(
"secondaryVertices")),
65 trackCollection (params.getParameter<edm::InputTag>(
"tracks")),
66 beamSpotCollection (params.getParameter<edm::InputTag>(
"beamSpot"))
68 produces<reco::VertexCollection>();
85 if(primaryVertices->size()!=0){
100 for(TrackCollection::const_iterator track = tracks->begin();
101 track != tracks->end(); ++track) {
102 TrackRef ref(tracks, track - tracks->begin());
112 for(
unsigned int ivtx=0; ivtx < theRecoVertices.size(); ivtx++){
113 recoVertices->push_back(theRecoVertices[ivtx]);
117 event.put(recoVertices);
TrackVertexArbitrator(const edm::ParameterSet ¶ms)
edm::InputTag trackCollection
#define DEFINE_FWK_MODULE(type)
reco::VertexCollection trackVertexArbitrator(edm::Handle< reco::BeamSpot > &beamSpot, const reco::Vertex &pv, edm::ESHandle< TransientTrackBuilder > &trackBuilder, const edm::RefVector< reco::TrackCollection > &selectedTracks, reco::VertexCollection &secondaryVertices)
virtual void produce(edm::Event &event, const edm::EventSetup &es)
edm::InputTag beamSpotCollection
std::vector< Vertex > VertexCollection
collection of Vertex objects
edm::InputTag primaryVertexCollection
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
TrackVertexArbitration * theArbitrator
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.