28 if (sc.
seed()->hitsAndFractions().at(0).first.subdetId() !=
EcalBarrel &&
29 sc.
seed()->hitsAndFractions().at(0).first.subdetId() !=
EcalEndcap) {
30 throw cms::Exception(
"PFECALSuperClusterProducer::calculateRegressedEnergy")
31 <<
"Supercluster seed is either EB nor EE!" << std::endl;
edm::EDGetTokenT< EcalRecHitCollection > inputTagEERecHits_
T getParameter(std::string const &) const
void setTokens(const edm::ParameterSet &, edm::ConsumesCollector &&)
EcalRecHitCollection const * rechitsEB
void fill(const reco::SuperCluster &superClus, const EcalRecHitCollection *ebRecHits, const EcalRecHitCollection *eeRecHits, const CaloGeometry *geom, const CaloTopology *topology, const reco::VertexCollection *vertices)
edm::EDGetTokenT< EcalRecHitCollection > inputTagEBRecHits_
unsigned long long cacheIdentifier() const
reco::VertexCollection const * vertices
T const * product() const
edm::ESHandle< CaloTopology > calotopo
void update(const edm::EventSetup &)
edm::EDGetTokenT< reco::VertexCollection > inputTagVertices_
void fillVec(std::vector< float > &inputVec) const
void setEvent(const edm::Event &)
const CaloTopologyRecord * topo_record
edm::ESHandle< CaloGeometry > calogeom
const CaloClusterPtr & seed() const
seed BasicCluster
EcalRecHitCollection const * rechitsEE
const CaloGeometryRecord * geom_record
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
void set(const reco::SuperCluster &, std::vector< float > &) const