52 : srcPart_(iConfig.getParameter<edm::InputTag>(
"srcMuon"))
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::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);
#define DEFINE_FWK_MODULE(type)
const Point & position() const
position
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
MuonFromPVSelector(const edm::ParameterSet &iConfig)
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
tuple goodMuons
Good Muons.
virtual ~MuonFromPVSelector()