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_recoMuonToken_ ( consumes< std::vector<
reco::
Muon> >( iConfig.getParameter<edm::
InputTag>(
"srcMuon" ) ) )
56 produces<std::vector<reco::Muon> >();
70 std::auto_ptr<std::vector<reco::Muon> >
goodMuons(
new std::vector<reco::Muon >);
78 if( (VertexHandle->size() == 0) || (MuonHandle->size() == 0) )
80 iEvent.
put(goodMuons);
87 std::vector<reco::Muon>::const_iterator MuonIt ;
89 for (MuonIt = MuonHandle->begin(); MuonIt != MuonHandle->end(); ++MuonIt) {
90 if ( MuonIt->innerTrack().isNonnull() &&
93 goodMuons -> push_back(*MuonIt) ;
97 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()