52 intRadiusBarrel_(
config.getParameter<
double>(
"intRadiusBarrel")),
53 intRadiusEndcap_(
config.getParameter<
double>(
"intRadiusEndcap")),
54 stripBarrel_(
config.getParameter<
double>(
"stripBarrel")),
55 stripEndcap_(
config.getParameter<
double>(
"stripEndcap")),
56 extRadius_(
config.getParameter<
double>(
"extRadius")),
57 maxVtxDist_(
config.getParameter<
double>(
"maxVtxDist")),
58 drb_(
config.getParameter<
double>(
"maxVtxDistXY"))
62 produces<edm::ValueMap<int>>();
73 auto isoMap = std::make_unique<edm::ValueMap<int>>();
75 std::vector<int> retV(photonHandle->size(), 0);
88 for (
unsigned int i = 0;
i < photonHandle->size(); ++
i) {
89 int isoValue = myTkIsolation.
getIso(&(photonHandle->at(
i))).first;
94 filler.insert(photonHandle, retV.begin(), retV.end());
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
#define DEFINE_FWK_MODULE(type)
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Handle< PROD > getHandle(EDGetTokenT< PROD > token) const
ptMin_(conf.getParameter< double >("ptMin"))
const edm::EDGetTokenT< reco::BeamSpot > beamspotProducer_
const double intRadiusBarrel_
EgammaPhotonTkNumIsolationProducer(const edm::ParameterSet &)
bool get(ProductID const &oid, Handle< PROD > &result) const
void produce(edm::StreamID sid, edm::Event &, const edm::EventSetup &) const override
std::pair< int, float > getIso(const reco::Candidate *) const
const double stripBarrel_
const edm::EDGetTokenT< reco::TrackCollection > trackProducer_
T getParameter(std::string const &) const
tuple config
parse the configuration file
const double intRadiusEndcap_
const double stripEndcap_
const edm::EDGetTokenT< edm::View< reco::Candidate > > photonProducer_