66 produces<reco::GsfElectronCollection >();
78 event.getByToken(_source,eles);
80 event.getByToken(_ebRecHitsToken,_ebRecHits);
81 event.getByToken(_eeRecHitsToken,_eeRecHits);
83 for(
const auto& ele : *eles ) {
86 calculateShowerShape_full5x5(temp.
superCluster(),
true,full5x5_ss);
100 _geometry = caloGeom.
product();
101 _topology = caloTopo.
product();
109 int detector = seedXtalId.
subdetId() ;
114 recHits = _ebRecHits.product() ;
118 recHits = _eeRecHits.product() ;
133 showerShape.
hcalDepth1OverEcal = _hcalHelperPflow->hcalESumDepth1(*theClus)/theClus->energy() ;
134 showerShape.
hcalDepth2OverEcal = _hcalHelperPflow->hcalESumDepth2(*theClus)/theClus->energy() ;
141 showerShape.
hcalDepth1OverEcal = _hcalHelper->hcalESumDepth1(*theClus)/theClus->energy() ;
142 showerShape.
hcalDepth2OverEcal = _hcalHelper->hcalESumDepth2(*theClus)/theClus->energy() ;
T getParameter(std::string const &) const
const std::vector< std::pair< DetId, float > > & hitsAndFractions() const
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
virtual SuperClusterRef superCluster() const
reference to a SuperCluster
std::vector< CaloTowerDetId > hcalTowersBehindClusters
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
virtual void produce(edm::Event &, const edm::EventSetup &)
void calculateShowerShape_full5x5(const reco::SuperClusterRef &theClus, bool pflow, reco::GsfElectron::ShowerShape &showerShape)
T const * product() const
float hcalDepth2OverEcalBc
float hcalDepth1OverEcalBc
edm::EDGetTokenT< CaloTowerCollection > hcalTowers
GsfElectronFull5x5Filler(const edm::ParameterSet &)
void full5x5_setShowerShape(const ShowerShape &s)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
virtual ~GsfElectronFull5x5Filler()