|
|
#include <CosmicClusterProducer.h>
Definition at line 26 of file CosmicClusterProducer.h.
◆ CosmicClusterProducer()
Definition at line 39 of file CosmicClusterProducer.cc.
42 if (verbosityString ==
"DEBUG")
44 else if (verbosityString ==
"WARNING")
46 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_, 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.
151 std::unique_ptr<CaloSubdetectorTopology> topology_p;
156 topology_p = std::make_unique<EcalBarrelTopology>(*geoHandle);
159 topology_p = std::make_unique<EcalEndcapTopology>(*geoHandle);
168 island_p->
makeClusters(hitCollection_p, uhitCollection_p, geometry_p, topology_p.get(), geometryES_p, ecalPart);
171 std::vector<reco::ClusterShape> ClusVec;
173 for (
int erg = 0; erg <
int(
clusters.size()); ++erg) {
175 ClusVec.push_back(TestShape);
179 auto clustersshapes_p = std::make_unique<reco::ClusterShapeCollection>();
180 clustersshapes_p->assign(ClusVec.begin(), ClusVec.end());
188 auto clusters_p = std::make_unique<reco::BasicClusterCollection>();
198 auto shapeAssocs_p = std::make_unique<reco::BasicClusterShapeAssociationCollection>(bccHandle, clusHandle);
200 for (
unsigned int i = 0;
i < clusHandle->size();
i++) {
204 evt.
put(
std::move(shapeAssocs_p), clusterShapeAssociation);
References CosmicClusterAlgo::barrel, barrelClusterCollection_, ClusterShapeAlgo::Calculate(), bsc_activity_cfg::clusters, clustershapecollectionEB_, clustershapecollectionEE_, DetId::Ecal, EcalBarrel, EcalEndcap, EcalPreshower, endcapClusterCollection_, edm::EventSetup::get(), get, edm::Event::getByToken(), 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 |
◆ 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 >())
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.
T getParameter(std::string const &) const
reco::ClusterShape Calculate(const reco::BasicCluster &passedCluster, const EcalRecHitCollection *hits, const CaloSubdetectorGeometry *geometry, const CaloSubdetectorTopology *topology)
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)