90 if (verbosityString ==
"DEBUG")
92 else if (verbosityString ==
"WARNING")
94 else if (verbosityString ==
"INFO")
113 double barrelSeedThreshold = ps.
getParameter<
double>(
"BarrelSeedThr");
114 double barrelSingleThreshold = ps.
getParameter<
double>(
"BarrelSingleThr");
115 double barrelSecondThreshold = ps.
getParameter<
double>(
"BarrelSecondThr");
116 double barrelSupThreshold = ps.
getParameter<
double>(
"BarrelSupThr");
117 double endcapSeedThreshold = ps.
getParameter<
double>(
"EndcapSeedThr");
118 double endcapSingleThreshold = ps.
getParameter<
double>(
"EndcapSingleThr");
119 double endcapSecondThreshold = ps.
getParameter<
double>(
"EndcapSecondThr");
120 double endcapSupThreshold = ps.
getParameter<
double>(
"EndcapSupThr");
145 barrelSingleThreshold,
146 barrelSecondThreshold,
149 endcapSingleThreshold,
150 endcapSecondThreshold,
200 std::unique_ptr<CaloSubdetectorTopology> topology_p;
205 topology_p = std::make_unique<EcalBarrelTopology>(*geoHandle);
208 topology_p = std::make_unique<EcalEndcapTopology>(*geoHandle);
217 island_p->
makeClusters(hitCollection_p, uhitCollection_p, geometry_p, topology_p.get(), geometryES_p, ecalPart);
220 std::vector<reco::ClusterShape> ClusVec;
222 for (
int erg = 0; erg <
int(
clusters.size()); ++erg) {
224 ClusVec.push_back(TestShape);
228 auto clustersshapes_p = std::make_unique<reco::ClusterShapeCollection>();
229 clustersshapes_p->assign(ClusVec.begin(), ClusVec.end());
237 auto clusters_p = std::make_unique<reco::BasicClusterCollection>();
247 auto shapeAssocs_p = std::make_unique<reco::BasicClusterShapeAssociationCollection>(bccHandle, clusHandle);
249 for (
unsigned int i = 0;
i < clusHandle->size();
i++) {
253 evt.
put(
std::move(shapeAssocs_p), clusterShapeAssociation);
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::string clustershapecollectionEB_
std::vector< reco::BasicCluster > makeClusters(const EcalRecHitCollection *hits, const EcalUncalibratedRecHitCollection *uncalibhits, const CaloSubdetectorGeometry *geometry, const CaloSubdetectorTopology *topology_p, const CaloSubdetectorGeometry *geometryES_p, EcalPart ecalPart, bool regional=false, const std::vector< RectangularEtaPhiRegion > ®ions=std::vector< RectangularEtaPhiRegion >())
T const * product() const
void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es, const edm::EDGetTokenT< EcalRecHitCollection > &hitsToken, const edm::EDGetTokenT< EcalUncalibratedRecHitCollection > &uhitsToken, const std::string &clusterCollection, const std::string &clusterShapeAssociation, const CosmicClusterAlgo::EcalPart &ecalPart)
std::string endcapClusterCollection_
ClusterShapeAlgo shapeAlgo_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::string barrelClusterCollection_
CosmicClusterAlgo * island_p
PositionCalc posCalculator_
void produce(edm::Event &, const edm::EventSetup &) override
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometryToken_
reco::ClusterShape Calculate(const reco::BasicCluster &passedCluster, const EcalRecHitCollection *hits, const CaloSubdetectorGeometry *geometry, const CaloSubdetectorTopology *topology)
CosmicClusterProducer(const edm::ParameterSet &ps)
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< EcalRecHitCollection > eeHitsToken_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
CosmicClusterAlgo::VerbosityLevel verbosity
std::string endcapClusterShapeAssociation_
edm::EDGetTokenT< EcalRecHitCollection > ebHitsToken_
std::string clustershapecollectionEE_
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
edm::EDGetTokenT< EcalUncalibratedRecHitCollection > eeUHitsToken_
edm::EDGetTokenT< EcalUncalibratedRecHitCollection > ebUHitsToken_
bool counterExceeded() const
~CosmicClusterProducer() override
void outputValidationInfo(reco::CaloClusterPtrVector &clusterPtrVector)
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
std::string barrelClusterShapeAssociation_