#include <EcalClusterSeverityLevelAlgo.h>
|
static DetId | closestProblematic (const reco::CaloCluster &, const EcalRecHitCollection &, const CaloTopology *topology, const EcalSeverityLevelAlgo &) |
|
static std::pair< int, int > | etaphiDistanceClosestProblematic (const reco::CaloCluster &, const EcalRecHitCollection &, const CaloTopology *topology, const EcalSeverityLevelAlgo &) |
|
static float | fractionAroundClosestProblematic (const reco::CaloCluster &, const EcalRecHitCollection &, const CaloTopology *topology, const EcalSeverityLevelAlgo &) |
|
static float | goodFraction (const reco::CaloCluster &, const EcalRecHitCollection &, const EcalSeverityLevelAlgo &) |
|
◆ closestProblematic()
Definition at line 74 of file EcalClusterSeverityLevelAlgo.cc.
References EBDetId::distanceEta(), EBDetId::distancePhi(), DetId::Ecal, EcalBarrel, SiStripPI::getMaximum(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, EcalSeverityLevel::kGood, alignCSCRings::r, FastTrackerRecHitMaskProducer_cfi::recHits, fileCollector::seed, EcalSeverityLevelAlgo::severityLevel(), mathSSE::sqrt(), and HLT_2024v11_cff::topology.
Referenced by etaphiDistanceClosestProblematic(), and fractionAroundClosestProblematic().
81 edm::LogError(
"EcalClusterSeverityLevelAlgo") <<
"The cluster seed is not in the BARREL";
88 std::vector<DetId> neighbours =
topology->getWindow(
seed, 51, 11);
90 for (std::vector<DetId>::const_iterator
it = neighbours.begin();
it != neighbours.end(); ++
it) {
102 double r =
sqrt(deta * deta + dphi * dphi);
std::vector< EcalRecHit >::const_iterator const_iterator
Log< level::Error, false > LogError
double getMaximum(TObjArray *array)
EcalSeverityLevel::SeverityLevel severityLevel(const DetId &id) const
Evaluate status from id use channelStatus from DB.
static int distanceEta(const EBDetId &a, const EBDetId &b)
static int distancePhi(const EBDetId &a, const EBDetId &b)
◆ etaphiDistanceClosestProblematic()
Definition at line 112 of file EcalClusterSeverityLevelAlgo.cc.
References closestProblematic(), EBDetId::distanceEta(), EBDetId::distancePhi(), DetId::Ecal, EcalBarrel, SiStripPI::getMaximum(), DetId::null(), FastTrackerRecHitMaskProducer_cfi::recHits, fileCollector::seed, and HLT_2024v11_cff::topology.
118 edm::LogError(
"EcalClusterSeverityLevelAlgo") <<
"The cluster seed is not in the BARREL";
120 return std::pair<int, int>(-1, -1);
125 if (!closestProb.
null())
129 return std::pair<int, int>(-1, -1);
Log< level::Error, false > LogError
double getMaximum(TObjArray *array)
constexpr bool null() const
is this a null id ?
static int distanceEta(const EBDetId &a, const EBDetId &b)
static int distancePhi(const EBDetId &a, const EBDetId &b)
static DetId closestProblematic(const reco::CaloCluster &, const EcalRecHitCollection &, const CaloTopology *topology, const EcalSeverityLevelAlgo &)
◆ fractionAroundClosestProblematic()
Definition at line 36 of file EcalClusterSeverityLevelAlgo.cc.
References closestProblematic(), reco::CaloCluster::energy(), HLT_2024v11_cff::fraction, reco::CaloCluster::hitsAndFractions(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, DetId::null(), FastTrackerRecHitMaskProducer_cfi::recHits, and HLT_2024v11_cff::topology.
42 if (closestProb.
null())
45 std::vector<DetId> neighbours =
topology->getWindow(closestProb, 3, 3);
46 std::vector<DetId>::const_iterator itn;
48 std::vector<std::pair<DetId, float> > hitsAndFracs = cluster.
hitsAndFractions();
49 std::vector<std::pair<DetId, float> >::const_iterator
it;
53 for (itn = neighbours.begin(); itn != neighbours.end(); ++itn) {
55 for (
it = hitsAndFracs.begin();
it != hitsAndFracs.end(); ++
it) {
56 DetId id = (*it).first;
63 <<
"The cluster DetId " <<
id.rawId() <<
" is not in the recHit collection!!";
const std::vector< std::pair< DetId, float > > & hitsAndFractions() const
std::vector< EcalRecHit >::const_iterator const_iterator
Log< level::Error, false > LogError
constexpr bool null() const
is this a null id ?
double energy() const
cluster energy
static DetId closestProblematic(const reco::CaloCluster &, const EcalRecHitCollection &, const CaloTopology *topology, const EcalSeverityLevelAlgo &)
◆ goodFraction()
Definition at line 10 of file EcalClusterSeverityLevelAlgo.cc.
References reco::CaloCluster::energy(), HLT_2024v11_cff::fraction, reco::CaloCluster::hitsAndFractions(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, EcalSeverityLevel::kBad, EcalSeverityLevel::kProblematic, EcalSeverityLevel::kRecovered, FastTrackerRecHitMaskProducer_cfi::recHits, and EcalSeverityLevelAlgo::severityLevel().
14 std::vector<std::pair<DetId, float> > hitsAndFracs = cluster.
hitsAndFractions();
15 std::vector<std::pair<DetId, float> >::const_iterator
it;
16 for (
it = hitsAndFracs.begin();
it != hitsAndFracs.end(); ++
it) {
17 DetId id = (*it).first;
21 <<
"The cluster DetId " <<
id.rawId() <<
" is not in the recHit collection!!";
const std::vector< std::pair< DetId, float > > & hitsAndFractions() const
std::vector< EcalRecHit >::const_iterator const_iterator
Log< level::Error, false > LogError
EcalSeverityLevel::SeverityLevel severityLevel(const DetId &id) const
Evaluate status from id use channelStatus from DB.
double energy() const
cluster energy