170 edm::LogError(
"ProductNotFound")<<
"could not get a handle on the EcalRecHitCollection!" << std::endl;
180 std::unique_ptr<const CaloSubdetectorTopology>
topology;
199 }
else throw(std::runtime_error(
"\n\nHybrid Cluster Producer encountered invalied ecalhitcollection type.\n\n"));
215 std::vector<EcalEtaPhiRegion> regions;
218 for( l1extra::L1EmParticleCollection::const_iterator emItr = emIsolColl->begin(); emItr != emIsolColl->end() ;++emItr ){
223 int etaIndex = emItr->gctEmCand()->etaIndex() ;
224 int phiIndex = emItr->gctEmCand()->phiIndex() ;
234 if(((
float)(etaLow)>-1.479 && (
float)(etaLow)<1.479) ||
235 ((
float)(etaHigh)>-1.479 && (
float)(etaHigh)<1.479)) isbarl=1;
243 if (etaHigh>1.479) etaHigh=1.479;
244 if (etaLow<-1.479) etaLow=-1.479;
246 if(isbarl) regions.push_back(
EcalEtaPhiRegion(etaLow,etaHigh,phiLow,phiHigh));
253 for( l1extra::L1EmParticleCollection::const_iterator emItr = emNonIsolColl->begin(); emItr != emNonIsolColl->end() ;++emItr ){
260 int etaIndex = emItr->gctEmCand()->etaIndex() ;
261 int phiIndex = emItr->gctEmCand()->phiIndex() ;
271 if(((
float)(etaLow)>-1.479 && (
float)(etaLow)<1.479) ||
272 ((
float)(etaHigh)>-1.479 && (
float)(etaHigh)<1.479)) isbarl=1;
280 if (etaHigh>1.479) etaHigh=1.479;
281 if (etaLow<-1.479) etaLow=-1.479;
283 if(isbarl) regions.push_back(
EcalEtaPhiRegion(etaLow,etaHigh,phiLow,phiHigh));
294 auto basicclusters_p = std::make_unique<reco::BasicClusterCollection>();
295 basicclusters_p->assign(basicClusters.begin(), basicClusters.end());
304 for (
unsigned int i = 0;
i < clusterCollection.size();
i++){
310 auto superclusters_p = std::make_unique<reco::SuperClusterCollection>();
311 superclusters_p->assign(superClusters.begin(), superClusters.end());
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::string basicclusterCollection_
edm::EDGetTokenT< l1extra::L1EmParticleCollection > l1TagIsolated_
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)
edm::InputTag hitcollection_
std::string superclusterCollection_
double l1LowerThrIgnoreIsolation_
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
reco::SuperClusterCollection makeSuperClusters(const reco::CaloClusterPtrVector &)
T const * product() const
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
edm::EDGetTokenT< l1extra::L1EmParticleCollection > l1TagNonIsolated_
double emJetPhiBinLowEdge(unsigned int phiIndex) const
HybridClusterAlgo * hybrid_p
T const * product() const
void makeClusters(const EcalRecHitCollection *, const CaloSubdetectorGeometry *geometry, reco::BasicClusterCollection &basicClusters, const EcalSeverityLevelAlgo *sevLv, bool regional=false, const std::vector< EcalEtaPhiRegion > ®ions=std::vector< EcalEtaPhiRegion >())
edm::EDGetTokenT< EcalRecHitCollection > hittoken_
double emJetPhiBinHighEdge(unsigned int phiIndex) const