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);
84 bool dynamicPhiRoad = ps.
getParameter<
bool>(
"dynamicPhiRoad");
87 hybrid_p->setDynamicPhiRoad(bremRecoveryPset);
109 edm::LogError(
"MissingProduct") <<
"could not get a handle on the EcalRecHitCollection!";
120 std::auto_ptr<const CaloSubdetectorTopology>
topology;
126 topology.reset(
new EcalBarrelTopology(geoHandle));
131 std::vector<EcalEtaPhiRegion>());
133 LogTrace(
"EcalClusters") <<
"Finished clustering - BasicClusterCollection returned to producer..." ;
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." ;
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_
virtual void produce(edm::Event &, const edm::EventSetup &)
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_
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
reco::SuperClusterCollection makeSuperClusters(const reco::CaloClusterPtrVector &)
PositionCalc posCalculator_
T const * product() const
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
T const * product() const
ESHandle< TrackerGeometry > geometry
HybridClusterAlgo * hybrid_p
void makeClusters(const EcalRecHitCollection *, const CaloSubdetectorGeometry *geometry, reco::BasicClusterCollection &basicClusters, const EcalSeverityLevelAlgo *sevLv, bool regional=false, const std::vector< EcalEtaPhiRegion > ®ions=std::vector< EcalEtaPhiRegion >())