10 : hcalHitSelector_(iConfig.getParameter<
edm::
ParameterSet>(
"hitSelection")) {
35 desc.
add<
double>(
"minSCEt", 20);
36 desc.
add<
double>(
"minEleEt", 20);
37 desc.
add<
double>(
"minPhoEt", 20);
40 descriptions.
add((
"interestingGedEgammaIsoHCALDetId"), desc);
61 std::vector<DetId> indexToStore;
62 indexToStore.reserve(100);
65 for (
auto& ele : *eles) {
66 float scEt = ele.superCluster()->energy() *
std::sin(ele.superCluster()->position().theta());
73 for (
auto& pho : *phos) {
74 float scEt = pho.superCluster()->energy() *
std::sin(pho.superCluster()->position().theta());
81 for (
auto&
sc : *superClusters) {
90 std::sort(indexToStore.begin(), indexToStore.end());
91 std::unique(indexToStore.begin(), indexToStore.end());
93 auto detIdCollection = std::make_unique<DetIdCollection>(indexToStore);
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Sin< T >::type sin(const T &t)
void setup(const edm::EventSetup &iSetup)
void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< reco::SuperClusterCollection > superClustersToken_
void beginRun(edm::Run const &, const edm::EventSetup &) final
std::string interestingDetIdCollection_
def unique(seq, keepstr=True)
edm::EDGetTokenT< HBHERecHitCollection > recHitsToken_
float energy() const
Energy. Note this is taken from the first SimTrack only.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static edm::ParameterSetDescription makePSetDescription()
float theta() const
Momentum polar angle. Note this is taken from the first SimTrack only.
edm::EDGetTokenT< reco::GsfElectronCollection > elesToken_
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 &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< reco::PhotonCollection > phosToken_
EGHcalRecHitSelector hcalHitSelector_