48 intRadiusBarrel_{
config.getParameter<
double>(
"intRadiusBarrel")},
49 intRadiusEndcap_{
config.getParameter<
double>(
"intRadiusEndcap")},
50 stripBarrel_{
config.getParameter<
double>(
"stripBarrel")},
51 stripEndcap_{
config.getParameter<
double>(
"stripEndcap")},
52 extRadius_{
config.getParameter<
double>(
"extRadius")},
53 maxVtxDist_{
config.getParameter<
double>(
"maxVtxDist")},
54 drb_{
config.getParameter<
double>(
"maxVtxDistXY")}
57 produces<edm::ValueMap<double>>();
65 auto isoMap = std::make_unique<edm::ValueMap<double>>();
67 std::vector<double> retV(electronHandle->size(), 0);
80 for (
unsigned int i = 0;
i < electronHandle->size(); ++
i) {
81 double isoValue = myTkIsolation.
getPtTracks(&(electronHandle->at(
i)));
86 filler.insert(electronHandle, retV.begin(), retV.end());
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
#define DEFINE_FWK_MODULE(type)
const double stripEndcap_
const double intRadiusEndcap_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Handle< PROD > getHandle(EDGetTokenT< PROD > token) const
ptMin_(conf.getParameter< double >("ptMin"))
const edm::EDGetTokenT< reco::TrackCollection > trackProducer_
const edm::EDGetTokenT< reco::BeamSpot > beamspotProducer_
bool get(ProductID const &oid, Handle< PROD > &result) const
T getParameter(std::string const &) const
const double stripBarrel_
double getPtTracks(const reco::GsfElectron *) const
tuple config
parse the configuration file
const edm::EDGetTokenT< reco::GsfElectronCollection > electronProducer_
EgammaElectronTkIsolationProducer(const edm::ParameterSet &)
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
const double intRadiusBarrel_