|
|
Go to the documentation of this file.
33 assocMap_ = std::make_unique<reco::RecoEcalCandidateIsolationMap>(candHandle);
46 std::unique_ptr<reco::RecoEcalCandidateIsolationMap>
assocMap_;
61 : rCylinder_(
config.getParameter<double>(
"rCylinder")),
62 hOverECone_(
config.getParameter<double>(
"hOverECone")),
63 recoEcalCandidateToken_(
67 ssCalc_(consumesCollector()) {
78 produces<reco::RecoEcalCandidateIsolationMap>(
"rVar");
79 produces<reco::RecoEcalCandidateIsolationMap>(
"hForHOverE");
81 produces<reco::RecoEcalCandidateIsolationMap>(
var.name());
92 desc.add<
double>(
"rCylinder", 2.8);
93 desc.add<
double>(
"hOverECone", 0.15);
94 descriptions.
add((
"hltEgammaHLTHGCalIDVarProducer"),
desc);
104 auto rVarMap = std::make_unique<reco::RecoEcalCandidateIsolationMap>(recoEcalCandHandle);
105 auto hForHoverEMap = std::make_unique<reco::RecoEcalCandidateIsolationMap>(recoEcalCandHandle);
107 pcaMap.initMap(recoEcalCandHandle);
110 for (
size_t candNr = 0; candNr < recoEcalCandHandle->size(); candNr++) {
117 hForHoverEMap->insert(candRef, hForHoverE);
120 pcaMap.insert(candRef, pcaWidths);
126 iEvent.put(pcaMap.releaseMap(), pcaMap.name());
HGCalShowerShapeHelper ssCalc_
std::vector< RecoEcalCandidate > RecoEcalCandidateCollection
collectin of RecoEcalCandidate objects
double HGCalShowerShapeHelper::ShowerWidths::* var_
void produce(edm::Event &, const edm::EventSetup &) override
EgammaHLTHGCalIDVarProducer(const edm::ParameterSet &)
void initPerEvent(const edm::EventSetup &iSetup, const std::vector< reco::PFRecHit > &recHits)
std::unique_ptr< reco::RecoEcalCandidateIsolationMap > assocMap_
const std::string & name() const
void initPerObject(const std::vector< std::pair< DetId, float > > &hitsAndFracs, double minHitE=0, double minHitET=0, int minLayer=1, int maxLayer=-1, DetId::Detector subDet=DetId::HGCalEE)
std::vector< PFRecHit > PFRecHitCollection
collection of PFRecHit objects
PCAAssocMap(double HGCalShowerShapeHelper::ShowerWidths::*var, const std::string &name)
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const edm::EDGetTokenT< reco::RecoEcalCandidateCollection > recoEcalCandidateToken_
void initMap(const edm::Handle< reco::RecoEcalCandidateCollection > &candHandle)
std::vector< CaloCluster > CaloClusterCollection
collection of CaloCluster objects
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDGetTokenT< reco::PFRecHitCollection > hgcalRecHitToken_
const edm::EDGetTokenT< reco::CaloClusterCollection > layerClusterToken_
~EgammaHLTHGCalIDVarProducer() override
std::unique_ptr< reco::RecoEcalCandidateIsolationMap > releaseMap()
const double getRvar(double cylinderR, double energyNorm, bool useFractions=true, bool useCellSize=true)
const ShowerWidths getPCAWidths(double cylinderR, bool useFractions=false)
void insert(reco::RecoEcalCandidateRef &ref, const HGCalShowerShapeHelper::ShowerWidths &showerWidths)
std::vector< PCAAssocMap > pcaAssocMaps_