54 const std::vector<std::string> flagnames =
55 ps.
getParameter<std::vector<std::string> >(
"RecHitFlagToBeExcluded");
57 const std::vector<int> flagsexcl=
58 StringToEnumValue<EcalRecHit::Flags>(flagnames);
60 const std::vector<std::string> severitynames =
61 ps.
getParameter<std::vector<std::string> >(
"RecHitSeverityToBeExcluded");
63 const std::vector<int> severitiesexcl=
64 StringToEnumValue<EcalSeverityLevel::SeverityLevel>(severitynames);
87 hybrid_p->setDynamicPhiRoad(bremRecoveryPset);
109 edm::LogError(
"MissingProduct") <<
"could not get a handle on the EcalRecHitCollection!";
120 std::unique_ptr<const CaloSubdetectorTopology>
topology;
126 topology = std::make_unique<EcalBarrelTopology>(geoHandle);
131 std::vector<EcalEtaPhiRegion>());
133 LogTrace(
"EcalClusters") <<
"Finished clustering - BasicClusterCollection returned to producer..." ;
136 auto basicclusters_p = std::make_unique<reco::BasicClusterCollection>();
137 basicclusters_p->assign(basicClusters.begin(), basicClusters.end());
141 LogTrace(
"EcalClusters") <<
"Basic Clusters now put into event." ;
148 edm::LogError(
"Missing Product") <<
"could not get a handle on the BasicClusterCollection!" ;
154 LogTrace(
"EcalClusters")<<
"Got the BasicClusterCollection" << std::endl;
157 for (
unsigned int i = 0;
i < clusterCollection.size();
i++){
162 LogTrace(
"EcalClusters") <<
"Found: " << superClusters.size() <<
" superclusters." ;
164 auto superclusters_p = std::make_unique<reco::SuperClusterCollection>();
165 superclusters_p->assign(superClusters.begin(), superClusters.end());
168 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
~HybridClusterProducer() override
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 >())