52 : max_dxy_ ( iConfig.getParameter<double>(
"max_dxy" ) )
53 , max_dz_ ( iConfig.getParameter<double>(
"max_dz" ) )
54 , v_recoVertexToken_( consumes< std::vector<
reco::Vertex> >( iConfig.getParameter<edm::InputTag>(
"srcVertex" ) ) )
55 , v_recoTrackToken_ ( consumes< std::vector<
reco::Track> >( iConfig.getParameter<edm::InputTag>(
"srcTrack" ) ) )
57 produces<std::vector<reco::Track> >();
71 std::auto_ptr<std::vector<reco::Track> >
goodTracks(
new std::vector<reco::Track >);
79 if( (VertexHandle->size() == 0) || (TrackHandle->size() == 0) )
81 iEvent.
put(goodTracks);
87 std::vector<reco::Track>::const_iterator TrackIt ;
89 for (TrackIt = TrackHandle->begin(); TrackIt != TrackHandle->end(); ++TrackIt) {
92 goodTracks -> push_back(*TrackIt) ;
96 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()
return(e1-e2)*(e1-e2)+dp *dp