25 emObjectProducer_ (consumes<
T1Collection>(config.getParameter<
edm::InputTag>(
"candidateProducer"))),
29 useHF_ (config.getParameter<
bool>(
"useHF")),
30 drMax_ (config.getParameter<double>(
"drMax")),
31 drVetoBarrel_ (config.getParameter<double>(
"drVetoBarrel")),
32 drVetoEndcap_ (config.getParameter<double>(
"drVetoEndcap")),
33 etaStripBarrel_ (config.getParameter<double>(
"etaStripBarrel")),
34 etaStripEndcap_ (config.getParameter<double>(
"etaStripEndcap")),
35 energyBarrel_ (config.getParameter<double>(
"energyBarrel")),
36 energyEndcap_ (config.getParameter<double>(
"energyEndcap")),
37 useEt_ (config.getParameter<
bool>(
"useEt")) {
39 produces <edm::ValueMap<float>>();
57 desc.
add<
double>(
"drMax", 0.3);
58 desc.
add<
double>(
"drVetoBarrel", 0.0);
59 desc.
add<
double>(
"drVetoEndcap", 0.0);
60 desc.
add<
double>(
"etaStripBarrel", 0.0);
61 desc.
add<
double>(
"etaStripEndcap", 0.0);
62 desc.
add<
double>(
"energyBarrel", 0.0);
63 desc.
add<
double>(
"energyEndcap", 0.0);
64 desc.
add<
bool>(
"useEt",
true);
74 auto isoMap = std::make_unique<edm::ValueMap<float>>();
76 std::vector<float> retV(emObjectHandle->size(),0);
78 std::vector<edm::Handle<reco::PFClusterCollection>> clusterHandles;
81 clusterHandles.push_back(clusterHandle);
86 clusterHandles.push_back(clusterHandle);
89 clusterHandles.push_back(clusterHandle);
94 for (
unsigned int iReco = 0; iReco < emObjectHandle->size(); iReco++) {
95 T1Ref candRef(emObjectHandle, iReco);
96 retV[iReco] = isoAlgo.
getSum(candRef, clusterHandles);
99 filler.insert(emObjectHandle,retV.begin(),retV.end());
ParameterDescriptionNode * ifValue(ParameterDescription< T > const &switchParameter, std::unique_ptr< ParameterDescriptionCases< T >> cases)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const double etaStripEndcap_
std::string defaultModuleLabel()
const double energyBarrel_
const double etaStripBarrel_
#define DEFINE_FWK_MODULE(type)
const edm::EDGetTokenT< reco::PFClusterCollection > pfClusterProducerHFEM_
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
void produce(edm::Event &, const edm::EventSetup &) override
EgammaHcalPFClusterIsolationProducer< reco::GsfElectron > ElectronHcalPFClusterIsolationProducer
ParameterDescriptionBase * add(U const &iLabel, T const &value)
double getSum(const T1Ref candRef, const std::vector< edm::Handle< reco::PFClusterCollection >> &clusterHandles)
const edm::EDGetTokenT< T1Collection > emObjectProducer_
~EgammaHcalPFClusterIsolationProducer() override
const double drVetoEndcap_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
EgammaHcalPFClusterIsolationProducer< reco::Photon > PhotonHcalPFClusterIsolationProducer
std::vector< T1 > T1Collection
const double energyEndcap_
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
const edm::EDGetTokenT< reco::PFClusterCollection > pfClusterProducerHFHAD_
EgammaHcalPFClusterIsolationProducer(const edm::ParameterSet &)
const double drVetoBarrel_
const edm::EDGetTokenT< reco::PFClusterCollection > pfClusterProducerHCAL_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)