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);
T getParameter(std::string const &) const
TrackVertexArbitrator(const edm::ParameterSet ¶ms)
#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) override
std::vector< Vertex > VertexCollection
collection of Vertex objects
edm::EDGetTokenT< reco::BeamSpot > token_beamSpot
edm::EDGetTokenT< reco::VertexCollection > token_primaryVertex
edm::EDGetTokenT< reco::VertexCollection > token_secondaryVertex
edm::EDGetTokenT< reco::TrackCollection > token_tracks
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
TrackVertexArbitration * theArbitrator
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.