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_recoMuonToken_ ( consumes< std::vector<
reco::Muon> >( iConfig.getParameter<edm::InputTag>(
"srcMuon" ) ) )
57 produces<std::vector<reco::Muon> >();
71 std::auto_ptr<std::vector<reco::Muon> >
goodMuons(
new std::vector<reco::Muon >);
79 if( (VertexHandle->size() == 0) || (MuonHandle->size() == 0) )
81 iEvent.
put(goodMuons);
88 std::vector<reco::Muon>::const_iterator MuonIt ;
90 for (MuonIt = MuonHandle->begin(); MuonIt != MuonHandle->end(); ++MuonIt) {
91 if ( MuonIt->innerTrack().isNonnull() &&
94 goodMuons -> push_back(*MuonIt) ;
98 iEvent.
put(goodMuons);
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
const Point & position() const
position
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< std::vector< reco::Vertex > > v_recoVertexToken_
MuonFromPVSelector(const edm::ParameterSet &iConfig)
return(e1-e2)*(e1-e2)+dp *dp
edm::EDGetTokenT< std::vector< reco::Muon > > v_recoMuonToken_
virtual ~MuonFromPVSelector()