1 #ifndef TemplatedVertexArbitrator_h
2 #define TemplatedVertexArbitrator_h
48 template <
class InputContainer,
class VTX>
68 template <
class InputContainer,
class VTX>
79 template <
class InputContainer,
class VTX>
91 std::auto_ptr<Product> recoVertices(
new Product);
96 event.getByToken(token_tracks, tracks);
103 event.getByToken(token_beamSpot,beamSpot);
106 for(
typename InputContainer::const_iterator track = tracks->begin();
107 track != tracks->end(); ++track) {
108 selectedTracks.push_back(
tthelpers::buildTT(tracks,trackBuilder,track - tracks->begin()));
113 Product theRecoVertices = theArbitrator->trackVertexArbitrator(beamSpot, pv, selectedTracks,
116 for(
unsigned int ivtx=0; ivtx < theRecoVertices.size(); ivtx++){
117 recoVertices->push_back(theRecoVertices[ivtx]);
121 event.put(recoVertices);
edm::EDGetTokenT< reco::BeamSpot > token_beamSpot
T getParameter(std::string const &) const
std::vector< VTX > Product
edm::EDGetTokenT< Product > token_secondaryVertex
virtual void produce(edm::Event &event, const edm::EventSetup &es) override
edm::EDGetTokenT< InputContainer > token_tracks
TemplatedVertexArbitrator(const edm::ParameterSet ¶ms)
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< VTX > * theArbitrator
edm::EDGetTokenT< reco::VertexCollection > token_primaryVertex
bool trackFilter(const reco::TrackRef &track) const
reco::TransientTrack buildTT(edm::Handle< reco::TrackCollection > &tracks, edm::ESHandle< TransientTrackBuilder > &trackbuilder, unsigned int k)