|
|
#include <IslandClusterProducer.h>
Definition at line 29 of file IslandClusterProducer.h.
◆ IslandClusterProducer()
Definition at line 38 of file IslandClusterProducer.cc.
41 if (verbosityString ==
"DEBUG")
43 else if (verbosityString ==
"WARNING")
45 else if (verbosityString ==
"INFO")
62 double barrelSeedThreshold = ps.
getParameter<
double>(
"IslandBarrelSeedThr");
63 double endcapSeedThreshold = ps.
getParameter<
double>(
"IslandEndcapSeedThr");
77 const std::vector<std::string> seedflagnamesEB =
78 ps.
getParameter<std::vector<std::string>>(
"SeedRecHitFlagToBeExcludedEB");
79 const std::vector<int> seedflagsexclEB = StringToEnumValue<EcalRecHit::Flags>(seedflagnamesEB);
81 const std::vector<std::string> seedflagnamesEE =
82 ps.
getParameter<std::vector<std::string>>(
"SeedRecHitFlagToBeExcludedEE");
83 const std::vector<int> seedflagsexclEE = StringToEnumValue<EcalRecHit::Flags>(seedflagnamesEE);
85 const std::vector<std::string> flagnamesEB = ps.
getParameter<std::vector<std::string>>(
"RecHitFlagToBeExcludedEB");
86 const std::vector<int> flagsexclEB = StringToEnumValue<EcalRecHit::Flags>(flagnamesEB);
88 const std::vector<std::string> flagnamesEE = ps.
getParameter<std::vector<std::string>>(
"RecHitFlagToBeExcludedEE");
89 const std::vector<int> flagsexclEE = StringToEnumValue<EcalRecHit::Flags>(flagnamesEE);
References barrelClusterCollection_, barrelClusterShapeAssociation_, barrelRecHits_, caloGeometryToken_, clustershapecollectionEB_, clustershapecollectionEE_, endcapClusterCollection_, endcapClusterShapeAssociation_, endcapRecHits_, edm::ParameterSet::getParameter(), island_p, nEvt_, IslandClusterAlgo::pDEBUG, IslandClusterAlgo::pERROR, IslandClusterAlgo::pINFO, MonitorAlCaEcalPi0_cfi::posCalcParameters, posCalculator_, IslandClusterAlgo::pWARNING, shapeAlgo_, AlCaHLTBitMon_QueryRunRegistry::string, and verbosity.
◆ ~IslandClusterProducer()
IslandClusterProducer::~IslandClusterProducer |
( |
| ) |
|
|
override |
◆ clusterizeECALPart()
Definition at line 159 of file IslandClusterProducer.cc.
172 std::unique_ptr<CaloSubdetectorTopology> topology_p;
177 topology_p = std::make_unique<EcalBarrelTopology>(*geoHandle);
180 topology_p = std::make_unique<EcalEndcapTopology>(*geoHandle);
191 std::vector<reco::ClusterShape> ClusVec;
192 for (
int erg = 0; erg <
int(
clusters.size()); ++erg) {
194 ClusVec.push_back(TestShape);
198 auto clustersshapes_p = std::make_unique<reco::ClusterShapeCollection>();
199 clustersshapes_p->assign(ClusVec.begin(), ClusVec.end());
207 auto clusters_p = std::make_unique<reco::BasicClusterCollection>();
216 auto shapeAssocs_p = std::make_unique<reco::BasicClusterShapeAssociationCollection>(bccHandle, clusHandle);
217 for (
unsigned int i = 0;
i < clusHandle->size();
i++) {
221 evt.
put(
std::move(shapeAssocs_p), clusterShapeAssociation);
References IslandClusterAlgo::barrel, barrelClusterCollection_, ClusterShapeAlgo::Calculate(), caloGeometryToken_, bsc_activity_cfg::clusters, clustershapecollectionEB_, clustershapecollectionEE_, DetId::Ecal, EcalBarrel, EcalEndcap, EcalPreshower, endcapClusterCollection_, getCollection(), edm::EventSetup::getHandle(), CaloGeometry::getSubdetectorGeometry(), mps_fire::i, createfilelist::int, island_p, IslandClusterAlgo::makeClusters(), eostools::move(), edm::Event::put(), shapeAlgo_, AlCaHLTBitMon_QueryRunRegistry::string, and unpackBuffers-CaloStage2::token.
Referenced by produce().
◆ counterExceeded()
bool IslandClusterProducer::counterExceeded |
( |
| ) |
const |
|
inlineprivate |
◆ fillDescriptions()
Definition at line 114 of file IslandClusterProducer.cc.
119 desc.add<
std::string>(
"barrelClusterCollection",
"islandBarrelBasicClusters");
120 desc.add<
std::string>(
"endcapClusterCollection",
"islandEndcapBasicClusters");
121 desc.add<
double>(
"IslandBarrelSeedThr", 0.5);
122 desc.add<
double>(
"IslandEndcapSeedThr", 0.18);
133 desc.add<
std::string>(
"clustershapecollectionEE",
"islandEndcapShape");
134 desc.add<
std::string>(
"clustershapecollectionEB",
"islandBarrelShape");
135 desc.add<
std::string>(
"barrelShapeAssociation",
"islandBarrelShapeAssoc");
136 desc.add<
std::string>(
"endcapShapeAssociation",
"islandEndcapShapeAssoc");
137 desc.add<std::vector<std::string>>(
"SeedRecHitFlagToBeExcludedEB", {});
138 desc.add<std::vector<std::string>>(
"SeedRecHitFlagToBeExcludedEE", {});
139 desc.add<std::vector<std::string>>(
"RecHitFlagToBeExcludedEB", {});
140 desc.add<std::vector<std::string>>(
"RecHitFlagToBeExcludedEE", {});
141 descriptions.
add(
"IslandClusterProducer",
desc);
References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, MonitorAlCaEcalPi0_cfi::posCalcParameters, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ getCollection()
◆ outputValidationInfo()
◆ produce()
◆ barrelClusterCollection_
std::string IslandClusterProducer::barrelClusterCollection_ |
|
private |
◆ barrelClusterShapeAssociation_
std::string IslandClusterProducer::barrelClusterShapeAssociation_ |
|
private |
◆ barrelRecHits_
◆ caloGeometryToken_
◆ clustershapecollectionEB_
std::string IslandClusterProducer::clustershapecollectionEB_ |
|
private |
◆ clustershapecollectionEE_
std::string IslandClusterProducer::clustershapecollectionEE_ |
|
private |
◆ endcapClusterCollection_
std::string IslandClusterProducer::endcapClusterCollection_ |
|
private |
◆ endcapClusterShapeAssociation_
std::string IslandClusterProducer::endcapClusterShapeAssociation_ |
|
private |
◆ endcapRecHits_
◆ island_p
◆ nEvt_
int IslandClusterProducer::nEvt_ |
|
private |
◆ nMaxPrintout_
int IslandClusterProducer::nMaxPrintout_ |
|
private |
◆ posCalculator_
◆ shapeAlgo_
◆ verbosity
std::string barrelClusterCollection_
IslandClusterAlgo::VerbosityLevel verbosity
T const * product() const
PositionCalc posCalculator_
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
ClusterShapeAlgo shapeAlgo_
IslandClusterAlgo * island_p
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometryToken_
std::string clustershapecollectionEE_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::string endcapClusterCollection_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< BasicCluster > BasicClusterCollection
collection of BasicCluster objects
const EcalRecHitCollection * getCollection(edm::Event &evt, const edm::EDGetTokenT< EcalRecHitCollection > &token)
std::string endcapClusterShapeAssociation_
std::string clustershapecollectionEB_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
edm::EDGetTokenT< EcalRecHitCollection > endcapRecHits_
reco::ClusterShape Calculate(const reco::BasicCluster &passedCluster, const EcalRecHitCollection *hits, const CaloSubdetectorGeometry *geometry, const CaloSubdetectorTopology *topology)
edm::EDGetTokenT< EcalRecHitCollection > barrelRecHits_
std::vector< reco::BasicCluster > makeClusters(const EcalRecHitCollection *hits, 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 getParameter(std::string const &) const
std::string barrelClusterShapeAssociation_
void clusterizeECALPart(edm::Event &evt, const edm::EventSetup &es, const edm::EDGetTokenT< EcalRecHitCollection > &token, const std::string &clusterCollection, const std::string &clusterShapeAssociation, const IslandClusterAlgo::EcalPart &ecalPart)