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;
unsigned long long cacheIdentifier() const
edm::EDGetTokenT< EcalRecHitCollection > inputTagEERecHits_
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_
reco::VertexCollection const * vertices
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
edm::ESHandle< CaloTopology > calotopo
void update(const edm::EventSetup &)
bool get(ProductID const &oid, Handle< PROD > &result) const
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
T getParameter(std::string const &) const
T const * product() const
EcalRecHitCollection const * rechitsEE
const CaloGeometryRecord * geom_record
const CaloClusterPtr & seed() const
seed BasicCluster
void set(const reco::SuperCluster &, std::vector< float > &) const