|
|
#include <CosmicClusterProducer.h>
Definition at line 29 of file CosmicClusterProducer.h.
◆ CosmicClusterProducer()
Definition at line 37 of file CosmicClusterProducer.cc.
40 if (verbosityString ==
"DEBUG")
42 else if (verbosityString ==
"WARNING")
44 else if (verbosityString ==
"INFO")
63 double barrelSeedThreshold = ps.
getParameter<
double>(
"BarrelSeedThr");
64 double barrelSingleThreshold = ps.
getParameter<
double>(
"BarrelSingleThr");
65 double barrelSecondThreshold = ps.
getParameter<
double>(
"BarrelSecondThr");
66 double barrelSupThreshold = ps.
getParameter<
double>(
"BarrelSupThr");
67 double endcapSeedThreshold = ps.
getParameter<
double>(
"EndcapSeedThr");
68 double endcapSingleThreshold = ps.
getParameter<
double>(
"EndcapSingleThr");
69 double endcapSecondThreshold = ps.
getParameter<
double>(
"EndcapSecondThr");
70 double endcapSupThreshold = ps.
getParameter<
double>(
"EndcapSupThr");
95 barrelSingleThreshold,
96 barrelSecondThreshold,
99 endcapSingleThreshold,
100 endcapSecondThreshold,
References barrelClusterCollection_, barrelClusterShapeAssociation_, caloGeometryToken_, clustershapecollectionEB_, clustershapecollectionEE_, ebHitsToken_, ebUHitsToken_, eeHitsToken_, eeUHitsToken_, endcapClusterCollection_, endcapClusterShapeAssociation_, edm::ParameterSet::getParameter(), island_p, nEvt_, CosmicClusterAlgo::pDEBUG, CosmicClusterAlgo::pERROR, CosmicClusterAlgo::pINFO, MonitorAlCaEcalPi0_cfi::posCalcParameters, posCalculator_, CosmicClusterAlgo::pWARNING, shapeAlgo_, AlCaHLTBitMon_QueryRunRegistry::string, and verbosity.
◆ ~CosmicClusterProducer()
CosmicClusterProducer::~CosmicClusterProducer |
( |
| ) |
|
|
override |
◆ clusterizeECALPart()
Definition at line 128 of file CosmicClusterProducer.cc.
150 std::unique_ptr<CaloSubdetectorTopology> topology_p;
155 topology_p = std::make_unique<EcalBarrelTopology>(*geoHandle);
158 topology_p = std::make_unique<EcalEndcapTopology>(*geoHandle);
167 island_p->
makeClusters(hitCollection_p, uhitCollection_p, geometry_p, topology_p.get(), geometryES_p, ecalPart);
170 std::vector<reco::ClusterShape> ClusVec;
172 for (
int erg = 0; erg <
int(
clusters.size()); ++erg) {
174 ClusVec.push_back(TestShape);
178 auto clustersshapes_p = std::make_unique<reco::ClusterShapeCollection>();
179 clustersshapes_p->assign(ClusVec.begin(), ClusVec.end());
187 auto clusters_p = std::make_unique<reco::BasicClusterCollection>();
197 auto shapeAssocs_p = std::make_unique<reco::BasicClusterShapeAssociationCollection>(bccHandle, clusHandle);
199 for (
unsigned int i = 0;
i < clusHandle->size();
i++) {
203 evt.
put(
std::move(shapeAssocs_p), clusterShapeAssociation);
References CosmicClusterAlgo::barrel, barrelClusterCollection_, ClusterShapeAlgo::Calculate(), caloGeometryToken_, bsc_activity_cfg::clusters, clustershapecollectionEB_, clustershapecollectionEE_, DetId::Ecal, EcalBarrel, EcalEndcap, EcalPreshower, endcapClusterCollection_, edm::Event::getByToken(), edm::EventSetup::getHandle(), CaloGeometry::getSubdetectorGeometry(), mps_fire::i, createfilelist::int, island_p, CosmicClusterAlgo::makeClusters(), eostools::move(), edm::Handle< T >::product(), edm::Event::put(), shapeAlgo_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by produce().
◆ counterExceeded()
bool CosmicClusterProducer::counterExceeded |
( |
| ) |
const |
|
inlineprivate |
◆ outputValidationInfo()
◆ produce()
◆ barrelClusterCollection_
std::string CosmicClusterProducer::barrelClusterCollection_ |
|
private |
◆ barrelClusterShapeAssociation_
std::string CosmicClusterProducer::barrelClusterShapeAssociation_ |
|
private |
◆ caloGeometryToken_
◆ clustershapecollectionEB_
std::string CosmicClusterProducer::clustershapecollectionEB_ |
|
private |
◆ clustershapecollectionEE_
std::string CosmicClusterProducer::clustershapecollectionEE_ |
|
private |
◆ ebHitsToken_
◆ ebUHitsToken_
◆ eeHitsToken_
◆ eeUHitsToken_
◆ endcapClusterCollection_
std::string CosmicClusterProducer::endcapClusterCollection_ |
|
private |
◆ endcapClusterShapeAssociation_
std::string CosmicClusterProducer::endcapClusterShapeAssociation_ |
|
private |
◆ island_p
◆ nEvt_
int CosmicClusterProducer::nEvt_ |
|
private |
◆ nMaxPrintout_
int CosmicClusterProducer::nMaxPrintout_ |
|
private |
◆ posCalculator_
◆ shapeAlgo_
◆ verbosity
std::string barrelClusterCollection_
T const * product() const
edm::EDGetTokenT< EcalUncalibratedRecHitCollection > ebUHitsToken_
CosmicClusterAlgo * island_p
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
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 >())
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometryToken_
std::string endcapClusterShapeAssociation_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
ClusterShapeAlgo shapeAlgo_
std::string barrelClusterShapeAssociation_
std::string endcapClusterCollection_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
reco::ClusterShape Calculate(const reco::BasicCluster &passedCluster, const EcalRecHitCollection *hits, const CaloSubdetectorGeometry *geometry, const CaloSubdetectorTopology *topology)
T getParameter(std::string const &) const
edm::EDGetTokenT< EcalRecHitCollection > ebHitsToken_
CosmicClusterAlgo::VerbosityLevel verbosity
std::string clustershapecollectionEB_
std::string clustershapecollectionEE_
edm::EDGetTokenT< EcalUncalibratedRecHitCollection > eeUHitsToken_
edm::EDGetTokenT< EcalRecHitCollection > eeHitsToken_
PositionCalc posCalculator_
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)