#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 20 of file ClusterTools.cc.
ClusterTools::ClusterTools | ( | const edm::ParameterSet & | conf, |
edm::ConsumesCollector & | sumes | ||
) |
Definition at line 22 of file ClusterTools.cc.
|
inline |
Definition at line 30 of file ClusterTools.h.
float ClusterTools::getClusterHadronFraction | ( | const reco::CaloCluster & | clus | ) | const |
Definition at line 40 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 27 of file ClusterTools.cc.
References bhrh_, bhtok, eerh_, eetok, fhrh_, fhtok, edm::Event::getByToken(), hgcal::RecHitTools::getEvent(), edm::Handle< T >::product(), rhtools_, and groupFilesInBlocks::temp.
void ClusterTools::getEventSetup | ( | const edm::EventSetup & | es | ) |
Definition at line 38 of file ClusterTools.cc.
References hgcal::RecHitTools::getEventSetup(), and rhtools_.
int ClusterTools::getLayer | ( | const DetId | detid | ) | const |
Definition at line 113 of file ClusterTools.cc.
References hgcal::RecHitTools::getLayerWithOffset(), and rhtools_.
Referenced by getWidths().
double ClusterTools::getMultiClusterEnergy | ( | const reco::HGCalMultiCluster & | clu | ) | const |
Definition at line 115 of file ClusterTools.cc.
References reco::HGCalMultiCluster::clusters().
Referenced by getMultiClusterPosition().
math::XYZPoint ClusterTools::getMultiClusterPosition | ( | const reco::HGCalMultiCluster & | clu | ) | const |
Definition at line 84 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 123 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, reco::HGCalMultiCluster::clusters(), end, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, training_settings::idx, reco::HGCalMultiCluster::size(), 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 getEvent(), getEventSetup(), getLayer(), and getWidths().