51 : max_dxy_ ( iConfig.getParameter<double>(
"max_dxy" ) )
52 , max_dz_ ( iConfig.getParameter<double>(
"max_dz" ) )
53 , v_recoVertexToken_( consumes< std::vector<
reco::Vertex> >( iConfig.getParameter<edm::
InputTag>(
"srcVertex" ) ) )
54 , v_recoTrackToken_ ( consumes< std::vector<
reco::Track> >( iConfig.getParameter<edm::
InputTag>(
"srcTrack" ) ) )
56 produces<std::vector<reco::Track> >();
70 std::auto_ptr<std::vector<reco::Track> >
goodTracks(
new std::vector<reco::Track >);
78 if( (VertexHandle->size() == 0) || (TrackHandle->size() == 0) )
80 iEvent.
put(goodTracks);
86 std::vector<reco::Track>::const_iterator TrackIt ;
88 for (TrackIt = TrackHandle->begin(); TrackIt != TrackHandle->end(); ++TrackIt) {
91 goodTracks -> push_back(*TrackIt) ;
95 iEvent.
put(goodTracks);
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< std::vector< reco::Vertex > > v_recoVertexToken_
const Point & position() const
position
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
edm::EDGetTokenT< std::vector< reco::Track > > v_recoTrackToken_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
TrackFromPVSelector(const edm::ParameterSet &iConfig)
virtual ~TrackFromPVSelector()