64 minEleEt_ =
iConfig.getParameter<
double>(
"minEleEt");
65 minPhoEt_ =
iConfig.getParameter<
double>(
"minPhoEt");
67 interestingDetIdCollection_ =
iConfig.getParameter<
std::string>(
"interestingDetIdCollection");
70 produces<DetIdCollection>(interestingDetIdCollection_);
79 desc.
add<
double>(
"minSCEt", 20);
80 desc.
add<
double>(
"minEleEt", 20);
81 desc.
add<
double>(
"minPhoEt", 20);
84 descriptions.
add((
"interestingGedEgammaIsoHCALDetId"), desc);
98 std::vector<DetId> indexToStore;
99 indexToStore.reserve(100);
101 if (eles.isValid() &&
recHits.isValid()) {
102 for (
auto& ele : *eles) {
103 float scEt = ele.superCluster()->energy() *
std::sin(ele.superCluster()->position().theta());
109 if (phos.isValid() &&
recHits.isValid()) {
110 for (
auto& pho : *phos) {
111 float scEt = pho.superCluster()->energy() *
std::sin(pho.superCluster()->position().theta());
119 float scEt = sc.energy() *
std::sin(sc.position().theta());
127 std::sort(indexToStore.begin(), indexToStore.end());
128 std::unique(indexToStore.begin(), indexToStore.end());
130 auto detIdCollection = std::make_unique<DetIdCollection>(indexToStore);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
#define DEFINE_FWK_MODULE(type)
Sin< T >::type sin(const T &t)
void setup(const edm::EventSetup &iSetup)
void produce(edm::Event &, const edm::EventSetup &) override
void beginRun(edm::Run const &, const edm::EventSetup &) final
Handle< PROD > getHandle(EDGetTokenT< PROD > token) const
std::string interestingDetIdCollection_
const edm::EDGetTokenT< reco::GsfElectronCollection > elesToken_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static edm::ParameterSetDescription makePSetDescription()
T getParameter(std::string const &) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void addDetIds(const reco::SuperCluster &superClus, const HBHERecHitCollection &recHits, CollType &detIdsToStore) const
EgammaIsoHcalDetIdCollectionProducer(const edm::ParameterSet &)
const edm::EDGetTokenT< reco::SuperClusterCollection > superClustersToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDGetTokenT< reco::PhotonCollection > phosToken_
EGHcalRecHitSelector hcalHitSelector_
const edm::EDGetTokenT< HBHERecHitCollection > recHitsToken_