33 produces < reco::RecoEcalCandidateIsolationMap >();
47 desc.
add<
double>(
"egEcalIsoEtMin", 0.);
48 desc.
add<
double>(
"egEcalIsoConeSize", 0.3);
49 desc.
add<
int>(
"SCAlgoType", 1);
50 descriptions.
add(
"hltEgammaHLTEcalIsolationProducersRegional", desc);
76 std::vector<const reco::BasicCluster*> clusterCollection;
77 for (reco::BasicClusterCollection::const_iterator ibc = clusterBarrelCollection->begin();
78 ibc < clusterBarrelCollection->end(); ibc++ ){clusterCollection.push_back(&(*ibc));}
79 for (reco::BasicClusterCollection::const_iterator iec = clusterEndcapCollection->begin();
80 iec < clusterEndcapCollection->end(); iec++ ){clusterCollection.push_back(&(*iec));}
81 std::vector<const reco::SuperCluster*> scCollection;
82 for (reco::SuperClusterCollection::const_iterator ibsc = scBarrelCollection->begin();
83 ibsc < scBarrelCollection->end(); ibsc++ ){scCollection.push_back(&(*ibsc));}
84 for (reco::SuperClusterCollection::const_iterator iesc = scEndcapCollection->begin();
85 iesc < scEndcapCollection->end(); iesc++ ){scCollection.push_back(&(*iesc));}
91 for (reco::RecoEcalCandidateCollection::const_iterator iRecoEcalCand= recoecalcandHandle->begin(); iRecoEcalCand!=recoecalcandHandle->end(); iRecoEcalCand++) {
98 float isol =
test_->
isolPtSum(tempiRecoEcalCand,scCollection, clusterCollection);
100 isoMap.
insert(recoecalcandref, isol);
104 iEvent.
put(std::make_unique<reco::RecoEcalCandidateIsolationMap>(isoMap));
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::RecoEcalCandidateCollection > recoEcalCandidateProducer_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
EgammaHLTEcalIsolationProducersRegional(const edm::ParameterSet &)
void produce(edm::Event &, const edm::EventSetup &) override
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
float isolPtSum(const reco::RecoCandidate *recocandidate, const std::vector< const reco::SuperCluster * > &sclusters, const std::vector< const reco::BasicCluster * > &bclusters)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::EDGetTokenT< reco::BasicClusterCollection > bcEndcapProducer_
T const * product() const
void insert(const key_type &k, const data_type &v)
insert an association
edm::EDGetTokenT< reco::SuperClusterCollection > scIslandBarrelProducer_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
EgammaHLTEcalIsolation * test_
edm::EDGetTokenT< reco::SuperClusterCollection > scIslandEndcapProducer_
edm::EDGetTokenT< reco::BasicClusterCollection > bcBarrelProducer_
double egEcalIsoConeSize_
~EgammaHLTEcalIsolationProducersRegional()