#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 HGCRecHitCollection * | eerh_ |
const edm::EDGetTokenT< HGCRecHitCollection > | eetok |
const HGCRecHitCollection * | fhrh_ |
const edm::EDGetTokenT< HGCRecHitCollection > | fhtok |
RecHitTools | rhtools_ |
Definition at line 26 of file ClusterTools.h.
ClusterTools::ClusterTools | ( | ) |
Definition at line 21 of file ClusterTools.cc.
ClusterTools::ClusterTools | ( | const edm::ParameterSet & | conf, |
edm::ConsumesCollector & | sumes | ||
) |
Definition at line 23 of file ClusterTools.cc.
|
inline |
Definition at line 30 of file ClusterTools.h.
float ClusterTools::getClusterHadronFraction | ( | const reco::CaloCluster & | clus | ) | const |
Definition at line 44 of file ClusterTools.cc.
References bhrh_, eerh_, HCALHighEnergyHPDFilter_cfi::energy, Exception, f, fhrh_, edm::SortedCollection< T, SORT >::find(), DetId::Forward, HLT_2018_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 28 of file ClusterTools.cc.
References bhrh_, bhtok, eerh_, eetok, ev, fhrh_, fhtok, and groupFilesInBlocks::temp.
void ClusterTools::getEventSetup | ( | const edm::EventSetup & | es | ) |
Definition at line 38 of file ClusterTools.cc.
References relativeConstraints::geom, edm::EventSetup::get(), get, rhtools_, and hgcal::RecHitTools::setGeometry().
int ClusterTools::getLayer | ( | const DetId | detid | ) | const |
Definition at line 117 of file ClusterTools.cc.
References hgcal::RecHitTools::getLayerWithOffset(), and rhtools_.
Referenced by getWidths().
double ClusterTools::getMultiClusterEnergy | ( | const reco::HGCalMultiCluster & | clu | ) | const |
Definition at line 119 of file ClusterTools.cc.
References reco::HGCalMultiCluster::clusters().
Referenced by getMultiClusterPosition().
math::XYZPoint ClusterTools::getMultiClusterPosition | ( | const reco::HGCalMultiCluster & | clu | ) | const |
Definition at line 88 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 127 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 51 of file ClusterTools.h.
References begin, end, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, training_settings::idx, and findQualityFiles::v.
|
private |
Definition at line 61 of file ClusterTools.h.
Referenced by getClusterHadronFraction(), and getEvent().
|
private |
Definition at line 60 of file ClusterTools.h.
Referenced by getEvent().
|
private |
Definition at line 61 of file ClusterTools.h.
Referenced by getClusterHadronFraction(), getEvent(), and getWidths().
|
private |
Definition at line 60 of file ClusterTools.h.
Referenced by getEvent().
|
private |
Definition at line 61 of file ClusterTools.h.
Referenced by getClusterHadronFraction(), and getEvent().
|
private |
Definition at line 60 of file ClusterTools.h.
Referenced by getEvent().
|
private |
Definition at line 59 of file ClusterTools.h.
Referenced by getEventSetup(), getLayer(), and getWidths().