65 produces<reco::GsfElectronCollection >();
74 auto out = std::make_unique<reco::GsfElectronCollection>();
77 event.getByToken(_source,eles);
79 event.getByToken(_ebRecHitsToken,_ebRecHits);
80 event.getByToken(_eeRecHitsToken,_eeRecHits);
82 for(
const auto& ele : *eles ) {
85 calculateShowerShape_full5x5(temp.
superCluster(),
true,full5x5_ss);
100 _topology = caloTopo.
product();
113 recHits = _ebRecHits.product() ;
117 recHits = _eeRecHits.product() ;
132 showerShape.
hcalDepth1OverEcal = _hcalHelperPflow->hcalESumDepth1(*theClus)/theClus->energy() ;
133 showerShape.
hcalDepth2OverEcal = _hcalHelperPflow->hcalESumDepth2(*theClus)/theClus->energy() ;
140 showerShape.
hcalDepth1OverEcal = _hcalHelper->hcalESumDepth1(*theClus)/theClus->energy() ;
141 showerShape.
hcalDepth2OverEcal = _hcalHelper->hcalESumDepth2(*theClus)/theClus->energy() ;
T getParameter(std::string const &) const
constexpr bool isNotFinite(T x)
def setup(process, global_tag, zero_tesla=False)
const std::vector< std::pair< DetId, float > > & hitsAndFractions() const
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
std::vector< CaloTowerDetId > hcalTowersBehindClusters
~GsfElectronFull5x5Filler() override
void calculateShowerShape_full5x5(const reco::SuperClusterRef &theClus, bool pflow, reco::GsfElectron::ShowerShape &showerShape)
float hcalDepth2OverEcalBc
float hcalDepth1OverEcalBc
void produce(edm::Event &, const edm::EventSetup &) override
SuperClusterRef superCluster() const override
reference to a SuperCluster
edm::EDGetTokenT< CaloTowerCollection > hcalTowers
GsfElectronFull5x5Filler(const edm::ParameterSet &)
void full5x5_setShowerShape(const ShowerShape &s)
T const * product() const