10 hcalHitSelector_(iConfig.getParameter<
edm::
ParameterSet>(
"hitSelection"))
42 desc.
add<
double>(
"minSCEt",20);
43 desc.
add<
double>(
"minEleEt",20);
44 desc.
add<
double>(
"minPhoEt",20);
47 descriptions.
add((
"interestingGedEgammaIsoHCALDetId"), desc);
73 std::vector<DetId> indexToStore;
74 indexToStore.reserve(100);
77 for(
auto& ele : *eles){
78 float scEt = ele.superCluster()->energy()*
std::sin(ele.superCluster()->position().theta());
85 for(
auto& pho : *phos){
86 float scEt = pho.superCluster()->energy()*
std::sin(pho.superCluster()->position().theta());
93 for(
auto&
sc : *superClusters){
102 std::sort(indexToStore.begin(),indexToStore.end());
103 std::unique(indexToStore.begin(),indexToStore.end());
105 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_