52 : srcPart_(iConfig.getParameter<edm::InputTag>(
"srcTrack"))
53 , srcPV_ (iConfig.getParameter<edm::InputTag>(
"srcVertex"))
54 , max_dxy_(iConfig.getParameter<double>(
"max_dxy"))
55 , max_dz_ (iConfig.getParameter<double>(
"max_dz"))
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);
#define DEFINE_FWK_MODULE(type)
const Point & position() const
position
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
TrackFromPVSelector(const edm::ParameterSet &iConfig)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual ~TrackFromPVSelector()