55 const std::vector<std::string> flagnames =
56 ps.
getParameter<std::vector<std::string> >(
"RecHitFlagToBeExcluded");
58 const std::vector<int> flagsexcl=
59 StringToEnumValue<EcalRecHit::Flags>(flagnames);
61 const std::vector<std::string> severitynames =
62 ps.
getParameter<std::vector<std::string> >(
"RecHitSeverityToBeExcluded");
64 const std::vector<int> severitiesexcl=
65 StringToEnumValue<EcalSeverityLevel::SeverityLevel>(severitynames);
88 hybrid_p->setDynamicPhiRoad(bremRecoveryPset);
110 edm::LogError(
"MissingProduct") <<
"could not get a handle on the EcalRecHitCollection!";
121 std::unique_ptr<const CaloSubdetectorTopology>
topology;
127 topology = std::make_unique<EcalBarrelTopology>(geoHandle);
132 std::vector<RectangularEtaPhiRegion>());
134 LogTrace(
"EcalClusters") <<
"Finished clustering - BasicClusterCollection returned to producer..." ;
137 auto basicclusters_p = std::make_unique<reco::BasicClusterCollection>();
138 basicclusters_p->assign(basicClusters.begin(), basicClusters.end());
142 LogTrace(
"EcalClusters") <<
"Basic Clusters now put into event." ;
149 edm::LogError(
"Missing Product") <<
"could not get a handle on the BasicClusterCollection!" ;
155 LogTrace(
"EcalClusters")<<
"Got the BasicClusterCollection" << std::endl;
158 for (
unsigned int i = 0;
i < clusterCollection.size();
i++){
163 LogTrace(
"EcalClusters") <<
"Found: " << superClusters.size() <<
" superclusters." ;
165 auto superclusters_p = std::make_unique<reco::SuperClusterCollection>();
166 superclusters_p->assign(superClusters.begin(), superClusters.end());
169 LogTrace(
"EcalClusters") <<
"Hybrid Clusters (Basic/Super) added to the Event! :-)" ;
T getParameter(std::string const &) const
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
HybridClusterProducer(const edm::ParameterSet &ps)
std::string superclusterCollection_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
CaloTopology const * topology(0)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void push_back(Ptr< T > const &iPtr)
edm::EDGetTokenT< EcalRecHitCollection > hitsToken_
std::string basicclusterCollection_
void produce(edm::Event &, const edm::EventSetup &) override
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
reco::SuperClusterCollection makeSuperClusters(const reco::CaloClusterPtrVector &)
PositionCalc posCalculator_
T const * product() const
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
HybridClusterAlgo * hybrid_p
void makeClusters(const EcalRecHitCollection *, const CaloSubdetectorGeometry *geometry, reco::BasicClusterCollection &basicClusters, const EcalSeverityLevelAlgo *sevLv, bool regional=false, const std::vector< RectangularEtaPhiRegion > ®ions=std::vector< RectangularEtaPhiRegion >())
~HybridClusterProducer() override
T const * product() const