Go to the documentation of this file.
6 : eeRecHitInputTag_(iConfig.getParameter<
edm::
InputTag>(
"EERecHits")),
7 fhRecHitInputTag_(iConfig.getParameter<
edm::
InputTag>(
"FHRecHits")),
8 bhRecHitInputTag_(iConfig.getParameter<
edm::
InputTag>(
"BHRecHits")),
9 hitMapInputTag_(iConfig.getParameter<
edm::
InputTag>(
"hitMapTag")),
10 dEdXWeights_(iConfig.getParameter<
std::
vector<double>>(
"dEdXWeights")) {
37 if (thePhoton.
isEB()) {
39 std::cout <<
"The photon is in the barrel" << std::endl;
46 std::cout <<
" Stored the hits belonging to the photon superCluster seed " << std::endl;
50 std::cout <<
" Calling PCA initial computation" << std::endl;
63 if (theElectron.
isEB()) {
65 std::cout <<
"The electron is in the barrel" << std::endl;
72 std::cout <<
" Stored the hits belonging to the electronCluster " << std::endl;
76 std::cout <<
" Calling PCA initial computation" << std::endl;
void computeHGCAL(const reco::Photon &thePhoton, float radius)
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
void eventInit(const edm::Event &iEvent, const edm::EventSetup &iSetup)
HGCalIsoCalculator isoHelper_
void setRecHits(edm::Handle< HGCRecHitCollection > hitsEE, edm::Handle< HGCRecHitCollection > hitsFH, edm::Handle< HGCRecHitCollection > hitsBH)
fill - once per event
void setMinDeltaR(const float dr)
hgcal::RecHitTools recHitTools_
void setRecHitTools(const hgcal::RecHitTools *recHitTools)
void pcaInitialComputation()
T getUntrackedParameter(std::string const &, T const &) const
void setdEdXWeights(const std::vector< double > &dEdX)
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometry_
edm::InputTag hitMapInputTag_
edm::EDGetTokenT< std::unordered_map< DetId, const HGCRecHit * > > hitMap_
void setDeltaR(const float dr)
void setHitMap(const std::unordered_map< DetId, const HGCRecHit * > *hitMap)
to set once per event
void setNRings(const size_t nrings)
edm::EDGetTokenT< HGCRecHitCollection > recHitsFH_
edm::InputTag fhRecHitInputTag_
void storeRecHits(const reco::CaloCluster &theCluster)
std::vector< double > dEdXWeights_
edm::InputTag eeRecHitInputTag_
edm::EDGetTokenT< HGCRecHitCollection > recHitsEE_
edm::InputTag bhRecHitInputTag_
void computeShowerWidth(float radius, bool withHalo=true)
bool getData(T &iHolder) const
void computePCA(float radius, bool withHalo=true)
CaloClusterPtr electronCluster() const
void produceHGCalIso(const reco::CaloClusterPtr &seedCluster)
hgcal::EGammaPCAHelper pcaHelper_
void setRecHitTools(const hgcal::RecHitTools *recHitTools)
T getParameter(std::string const &) const
edm::EDGetTokenT< HGCRecHitCollection > recHitsBH_