58 : srcPart_(iConfig.getParameter<edm::InputTag>(
"srcElectron"))
59 , srcPV_ (iConfig.getParameter<edm::InputTag>(
"srcVertex"))
60 , max_dxy_(iConfig.getParameter<double>(
"max_dxy"))
61 , max_dz_ (iConfig.getParameter<double>(
"max_dz"))
63 produces<std::vector<reco::GsfElectron> >();
77 std::auto_ptr<std::vector<reco::GsfElectron> > goodGsfElectrons(
new std::vector<reco::GsfElectron >);
85 if( (VertexHandle->size() == 0) || (GsfElectronHandle->size() == 0) )
87 iEvent.
put(goodGsfElectrons);
93 std::vector<reco::GsfElectron>::const_iterator GsfElectronIt ;
96 for (GsfElectronIt = GsfElectronHandle->begin(); GsfElectronIt != GsfElectronHandle->end(); ++GsfElectronIt) {
102 goodGsfElectrons -> push_back(*GsfElectronIt) ;
106 iEvent.
put(goodGsfElectrons);
#define DEFINE_FWK_MODULE(type)
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
const Point & position() const
position
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
GsfElectronFromPVSelector(const edm::ParameterSet &iConfig)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual ~GsfElectronFromPVSelector()