|
|
Definition at line 36 of file CosmicClusterProducer.cc.
◆ CosmicClusterProducer()
Definition at line 87 of file CosmicClusterProducer.cc.
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,
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 178 of file CosmicClusterProducer.cc.
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);
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)