24 , egEcalIsoEtMin_ (conf_.getParameter<double>(
"egEcalIsoEtMin"))
25 , egEcalIsoConeSize_ (conf_.getParameter<double>(
"egEcalIsoConeSize"))
26 , algoType_ (conf_.getParameter<
int>(
"SCAlgoType"))
31 produces < reco::RecoEcalCandidateIsolationMap >();
45 desc.
add<
double>(
"egEcalIsoEtMin", 0.);
46 desc.
add<
double>(
"egEcalIsoConeSize", 0.3);
47 desc.
add<
int>(
"SCAlgoType", 1);
48 descriptions.
add(
"hltEgammaHLTEcalIsolationProducersRegional", desc);
74 std::vector<const reco::BasicCluster*> clusterCollection;
75 for (reco::BasicClusterCollection::const_iterator ibc = clusterBarrelCollection->begin();
76 ibc < clusterBarrelCollection->end(); ibc++ ){clusterCollection.push_back(&(*ibc));}
77 for (reco::BasicClusterCollection::const_iterator iec = clusterEndcapCollection->begin();
78 iec < clusterEndcapCollection->end(); iec++ ){clusterCollection.push_back(&(*iec));}
80 for (reco::SuperClusterCollection::const_iterator ibsc = scBarrelCollection->begin();
81 ibsc < scBarrelCollection->end(); ibsc++ ){scCollection.push_back(&(*ibsc));}
82 for (reco::SuperClusterCollection::const_iterator iesc = scEndcapCollection->begin();
83 iesc < scEndcapCollection->end(); iesc++ ){scCollection.push_back(&(*iesc));}
89 for (reco::RecoEcalCandidateCollection::const_iterator iRecoEcalCand= recoecalcandHandle->begin(); iRecoEcalCand!=recoecalcandHandle->end(); iRecoEcalCand++) {
96 float isol =
test_->
isolPtSum(tempiRecoEcalCand,scCollection, clusterCollection);
98 isoMap.
insert(recoecalcandref, isol);
102 iEvent.
put(std::make_unique<reco::RecoEcalCandidateIsolationMap>(isoMap));
EgammaHLTEcalIsolation const *const test_
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
const edm::EDGetTokenT< reco::BasicClusterCollection > bcBarrelProducer_
EgammaHLTEcalIsolationProducersRegional(const edm::ParameterSet &)
~EgammaHLTEcalIsolationProducersRegional() override
const edm::EDGetTokenT< reco::SuperClusterCollection > scIslandEndcapProducer_
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
void produce(edm::StreamID sid, edm::Event &, const edm::EventSetup &) const override
const edm::EDGetTokenT< reco::RecoEcalCandidateCollection > recoEcalCandidateProducer_
const edm::EDGetTokenT< reco::SuperClusterCollection > scIslandBarrelProducer_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
const edm::EDGetTokenT< reco::BasicClusterCollection > bcEndcapProducer_
float isolPtSum(const reco::RecoCandidate *recocandidate, const std::vector< const reco::SuperCluster * > &sclusters, const std::vector< const reco::BasicCluster * > &bclusters) const
T const * product() const
void insert(const key_type &k, const data_type &v)
insert an association
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
std::vector< RecoEcalCandidate > RecoEcalCandidateCollection
collectin of RecoEcalCandidate objects