46 namespace edm { using ::std::advance; }
82 photons_(iConfig.getParameter<edm::InputTag>(
"photons")),
83 barrelBCLabel_(iConfig.getParameter<edm::InputTag>(
"barrelBasicCluster")),
84 endcapBCLabel_(iConfig.getParameter<edm::InputTag>(
"endcapBasicCluster")),
85 hfLabel_(iConfig.getParameter<edm::InputTag>(
"hfreco")),
86 hoLabel_(iConfig.getParameter<edm::InputTag>(
"horeco")),
87 hbheLabel_(iConfig.getParameter<edm::InputTag>(
"hbhereco")),
88 trackLabel_(iConfig.getParameter<edm::InputTag>(
"track")),
89 label_(iConfig.existsAs<std::string>(
"label") ? iConfig.getParameter<std::string>(
"label") :
""),
90 x_(iConfig.getParameter<double>(
"x")),
91 y_(iConfig.getParameter<double>(
"y")),
92 var_(iConfig.getParameter<std::string>(
"iso") ==
"Cx" ? calcCx :
93 iConfig.getParameter<std::string>(
"iso") ==
"Rx" ? calcRx :
94 iConfig.getParameter<std::string>(
"iso") ==
"Txy" ? calcTxy :
95 iConfig.getParameter<std::string>(
"iso") ==
"dRxy" ? calcDRxy : calcErr ),
96 mode_( iConfig.getParameter<std::string>(
"mode") ==
"BackgroundSubtracted" ? 1 : 0)
98 produces<edm::ValueMap<float> >();
117 vector<float> floats(recoPhotons->size(), -100);
124 for (
size_t i = 0;
i < recoPhotons->size(); ++
i) {
127 floats[
i] = RxC.
getCRx((*recoPhotons)[
i].superCluster(),
x_,0);
129 floats[
i] = RxC.
getRx((*recoPhotons)[
i].superCluster(),
x_,0);
133 floats[
i] = CxC.getCCx((*recoPhotons)[
i].superCluster(),
x_,0);
135 floats[
i] = CxC.getCx((*recoPhotons)[
i].superCluster(),
x_,0);
156 floatfiller.insert(recoPhotons, floats.begin(), floats.end());
#define DEFINE_FWK_MODULE(type)
double getRx(const reco::SuperClusterRef clus, double i, double threshold, double innerR=0.0)
HiEgammaIsolationProducer(const edm::ParameterSet &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
~HiEgammaIsolationProducer()
edm::InputTag trackLabel_
double getDRxy(const reco::Photon cluster, double x, double y)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
double getTxy(const reco::Photon p, double x, double y)
virtual void produce(edm::Event &, const edm::EventSetup &)
double getCRx(const reco::SuperClusterRef clus, double i, double threshold, double innerR=0.0)
edm::InputTag endcapBCLabel_
edm::InputTag barrelBCLabel_