#include <ClusterTools.h>
Public Member Functions | |
ClusterTools () | |
ClusterTools (const edm::ParameterSet &, edm::ConsumesCollector &) | |
float | getClusterHadronFraction (const reco::CaloCluster &) const |
void | getEvent (const edm::Event &) |
void | getEventSetup (const edm::EventSetup &) |
int | getLayer (const DetId) const |
double | getMultiClusterEnergy (const reco::HGCalMultiCluster &) const |
math::XYZPoint | getMultiClusterPosition (const reco::HGCalMultiCluster &) const |
bool | getWidths (const reco::CaloCluster &clus, double &sigmaetaeta, double &sigmaphiphi, double &sigmaetaetalog, double &sigmaphiphilog) const |
~ClusterTools () | |
Private Member Functions | |
std::vector< size_t > | sort_by_z (const reco::HGCalMultiCluster &v) const |
Private Attributes | |
const HGCRecHitCollection * | bhrh_ |
const edm::EDGetTokenT< HGCRecHitCollection > | bhtok |
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > | caloGeometryToken_ |
const HGCRecHitCollection * | eerh_ |
const edm::EDGetTokenT< HGCRecHitCollection > | eetok |
const HGCRecHitCollection * | fhrh_ |
const edm::EDGetTokenT< HGCRecHitCollection > | fhtok |
RecHitTools | rhtools_ |
Definition at line 28 of file ClusterTools.h.
ClusterTools::ClusterTools | ( | ) |
Definition at line 19 of file ClusterTools.cc.
ClusterTools::ClusterTools | ( | const edm::ParameterSet & | conf, |
edm::ConsumesCollector & | sumes | ||
) |
Definition at line 21 of file ClusterTools.cc.
References edm::ConsumesCollector::esConsumes().
|
inline |
Definition at line 32 of file ClusterTools.h.
float ClusterTools::getClusterHadronFraction | ( | const reco::CaloCluster & | clus | ) | const |
Definition at line 35 of file ClusterTools.cc.
References bhrh_, eerh_, hcalRecHitTable_cff::energy, Exception, f, fhrh_, edm::SortedCollection< T, SORT >::find(), DetId::Forward, HLT_2024v14_cff::fraction, DetId::Hcal, HcalEndcap, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCEE, HGCHEF, hfClusterShapes_cfi::hits, reco::CaloCluster::hitsAndFractions(), and groupFilesInBlocks::temp.
void ClusterTools::getEvent | ( | const edm::Event & | ev | ) |
Definition at line 27 of file ClusterTools.cc.
References bhrh_, bhtok, eerh_, eetok, makeMEIFBenchmarkPlots::ev, fhrh_, and fhtok.
void ClusterTools::getEventSetup | ( | const edm::EventSetup & | es | ) |
Definition at line 33 of file ClusterTools.cc.
References caloGeometryToken_, edm::EventSetup::getData(), rhtools_, and hgcal::RecHitTools::setGeometry().
int ClusterTools::getLayer | ( | const DetId | detid | ) | const |
Definition at line 108 of file ClusterTools.cc.
References hgcal::RecHitTools::getLayerWithOffset(), and rhtools_.
Referenced by getWidths().
double ClusterTools::getMultiClusterEnergy | ( | const reco::HGCalMultiCluster & | clu | ) | const |
Definition at line 110 of file ClusterTools.cc.
References reco::HGCalMultiCluster::clusters().
Referenced by getMultiClusterPosition().
math::XYZPoint ClusterTools::getMultiClusterPosition | ( | const reco::HGCalMultiCluster & | clu | ) | const |
Definition at line 79 of file ClusterTools.cc.
References reco::HGCalMultiCluster::clusters(), getMultiClusterEnergy(), and mps_merge::weight.
bool ClusterTools::getWidths | ( | const reco::CaloCluster & | clus, |
double & | sigmaetaeta, | ||
double & | sigmaphiphi, | ||
double & | sigmaetaetalog, | ||
double & | sigmaphiphilog | ||
) | const |
Definition at line 118 of file ClusterTools.cc.
References eerh_, CaloRecHit::energy(), reco::CaloCluster::energy(), PV3DBase< T, PVType, FrameType >::eta(), edm::SortedCollection< T, SORT >::find(), dqmdumpme::first, DetId::Forward, getLayer(), hgcal::RecHitTools::getPosition(), DetId::HGCalEE, HGCEE, reco::CaloCluster::hitsAndFractions(), hgcal::RecHitTools::lastLayerEE(), dqm-mbProfile::log, SiStripPI::max, PV3DBase< T, PVType, FrameType >::phi(), reco::CaloCluster::position(), position, rhtools_, edm::second(), mathSSE::sqrt(), and mps_merge::weight.
|
inlineprivate |
Definition at line 53 of file ClusterTools.h.
References testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, heavyIonCSV_trainingSettings::idx, jetUpdater_cfi::sort, and findQualityFiles::v.
|
private |
Definition at line 65 of file ClusterTools.h.
Referenced by getClusterHadronFraction(), and getEvent().
|
private |
Definition at line 62 of file ClusterTools.h.
Referenced by getEvent().
|
private |
Definition at line 63 of file ClusterTools.h.
Referenced by getEventSetup().
|
private |
Definition at line 65 of file ClusterTools.h.
Referenced by getClusterHadronFraction(), getEvent(), and getWidths().
|
private |
Definition at line 62 of file ClusterTools.h.
Referenced by getEvent().
|
private |
Definition at line 65 of file ClusterTools.h.
Referenced by getClusterHadronFraction(), and getEvent().
|
private |
Definition at line 62 of file ClusterTools.h.
Referenced by getEvent().
|
private |
Definition at line 61 of file ClusterTools.h.
Referenced by getEventSetup(), getLayer(), and getWidths().