155 edm::LogError(
"ProductNotFound")<<
"could not get a handle on the EcalRecHitCollection!" << std::endl;
165 std::unique_ptr<const CaloSubdetectorTopology>
topology;
177 topology = std::make_unique<EcalBarrelTopology>(*geoHandle);
180 topology = std::make_unique<EcalEndcapTopology>(*geoHandle);
183 topology = std::make_unique<EcalPreshowerTopology>();
184 }
else throw(std::runtime_error(
"\n\nHybrid Cluster Producer encountered invalied ecalhitcollection type.\n\n"));
200 std::vector<RectangularEtaPhiRegion>
regions;
203 for( l1extra::L1EmParticleCollection::const_iterator emItr = emIsolColl->begin(); emItr != emIsolColl->end() ;++emItr ){
208 int etaIndex = emItr->gctEmCand()->etaIndex() ;
209 int phiIndex = emItr->gctEmCand()->phiIndex() ;
219 if(((
float)(etaLow)>-1.479 && (
float)(etaLow)<1.479) ||
220 ((
float)(etaHigh)>-1.479 && (
float)(etaHigh)<1.479)) isbarl=1;
228 if (etaHigh>1.479) etaHigh=1.479;
229 if (etaLow<-1.479) etaLow=-1.479;
238 for( l1extra::L1EmParticleCollection::const_iterator emItr = emNonIsolColl->begin(); emItr != emNonIsolColl->end() ;++emItr ){
245 int etaIndex = emItr->gctEmCand()->etaIndex() ;
246 int phiIndex = emItr->gctEmCand()->phiIndex() ;
256 if(((
float)(etaLow)>-1.479 && (
float)(etaLow)<1.479) ||
257 ((
float)(etaHigh)>-1.479 && (
float)(etaHigh)<1.479)) isbarl=1;
265 if (etaHigh>1.479) etaHigh=1.479;
266 if (etaLow<-1.479) etaLow=-1.479;
279 auto basicclusters_p = std::make_unique<reco::BasicClusterCollection>();
280 basicclusters_p->assign(basicClusters.begin(), basicClusters.end());
289 for (
unsigned int i = 0;
i < clusterCollection.size();
i++){
295 auto superclusters_p = std::make_unique<reco::SuperClusterCollection>();
296 superclusters_p->assign(superClusters.begin(), superClusters.end());
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
HybridClusterAlgo *const hybrid_p
const double regionEtaMargin_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
double etaBinHighEdge(unsigned int etaIndex, bool central=true) const
CaloTopology const * topology(0)
double etaBinLowEdge(unsigned int etaIndex, bool central=true) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void push_back(Ptr< T > const &iPtr)
const edm::EDGetTokenT< l1extra::L1EmParticleCollection > l1TagIsolated_
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
reco::SuperClusterCollection makeSuperClusters(const reco::CaloClusterPtrVector &)
const std::string basicclusterCollection_
const edm::InputTag hitcollection_
T const * product() const
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
const std::string superclusterCollection_
const edm::EDGetTokenT< l1extra::L1EmParticleCollection > l1TagNonIsolated_
double emJetPhiBinLowEdge(unsigned int phiIndex) const
void makeClusters(const EcalRecHitCollection *, const CaloSubdetectorGeometry *geometry, reco::BasicClusterCollection &basicClusters, const EcalSeverityLevelAlgo *sevLv, bool regional=false, const std::vector< RectangularEtaPhiRegion > ®ions=std::vector< RectangularEtaPhiRegion >())
T const * product() const
const edm::EDGetTokenT< EcalRecHitCollection > hittoken_
const double l1LowerThrIgnoreIsolation_
const double regionPhiMargin_
double emJetPhiBinHighEdge(unsigned int phiIndex) const