#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_ |
Static Private Attributes | |
static const int | lastLayerEE = 28 |
Definition at line 27 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 22 of file ClusterTools.cc.
|
inline |
Definition at line 31 of file ClusterTools.h.
float ClusterTools::getClusterHadronFraction | ( | const reco::CaloCluster & | clus | ) | const |
Definition at line 44 of file ClusterTools.cc.
References bhrh_, eerh_, Exception, f, fhrh_, edm::SortedCollection< T, SORT >::find(), DetId::Forward, dedxEstimators_cff::fraction, DetId::Hcal, HcalEndcap, HGCEE, HGCHEF, hfClusterShapes_cfi::hits, reco::CaloCluster::hitsAndFractions(), and groupFilesInBlocks::temp.
void ClusterTools::getEvent | ( | const edm::Event & | ev | ) |
Definition at line 29 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 40 of file ClusterTools.cc.
References hgcal::RecHitTools::getEventSetup(), and rhtools_.
int ClusterTools::getLayer | ( | const DetId | detid | ) | const |
Definition at line 110 of file ClusterTools.cc.
References hgcal::RecHitTools::getLayerWithOffset(), and rhtools_.
Referenced by getWidths().
double ClusterTools::getMultiClusterEnergy | ( | const reco::HGCalMultiCluster & | clu | ) | const |
Definition at line 114 of file ClusterTools.cc.
References reco::HGCalMultiCluster::clusters().
Referenced by getMultiClusterPosition().
math::XYZPoint ClusterTools::getMultiClusterPosition | ( | const reco::HGCalMultiCluster & | clu | ) | const |
Definition at line 83 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 122 of file ClusterTools.cc.
References eerh_, CaloRecHit::energy(), reco::CaloCluster::energy(), PV3DBase< T, PVType, FrameType >::eta(), edm::SortedCollection< T, SORT >::find(), plotBeamSpotDB::first, DetId::Forward, getLayer(), hgcal::RecHitTools::getPosition(), HGCEE, reco::CaloCluster::hitsAndFractions(), lastLayerEE, cmsBatch::log, hpstanc_transforms::max, PV3DBase< T, PVType, FrameType >::phi(), reco::CaloCluster::position(), position, rhtools_, edm::second(), mathSSE::sqrt(), and mps_merge::weight.
|
inlineprivate |
Definition at line 48 of file ClusterTools.h.
References begin, reco::HGCalMultiCluster::clusters(), end, training_settings::idx, reco::HGCalMultiCluster::size(), and findQualityFiles::v.
|
private |
Definition at line 58 of file ClusterTools.h.
Referenced by getClusterHadronFraction(), and getEvent().
|
private |
Definition at line 57 of file ClusterTools.h.
Referenced by getEvent().
|
private |
Definition at line 58 of file ClusterTools.h.
Referenced by getClusterHadronFraction(), getEvent(), and getWidths().
|
private |
Definition at line 57 of file ClusterTools.h.
Referenced by getEvent().
|
private |
Definition at line 58 of file ClusterTools.h.
Referenced by getClusterHadronFraction(), and getEvent().
|
private |
Definition at line 57 of file ClusterTools.h.
Referenced by getEvent().
|
staticprivate |
Definition at line 59 of file ClusterTools.h.
Referenced by getWidths().
|
private |
Definition at line 56 of file ClusterTools.h.
Referenced by getEvent(), getEventSetup(), getLayer(), and getWidths().