#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 20 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 31 of file ClusterTools.h.
float ClusterTools::getClusterHadronFraction | ( | const reco::CaloCluster & | clus | ) | const |
Definition at line 45 of file ClusterTools.cc.
References bhrh_, eerh_, randomXiThetaGunProducer_cfi::energy, Exception, f, fhrh_, edm::SortedCollection< T, SORT >::find(), DetId::Forward, dedxEstimators_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 30 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 41 of file ClusterTools.cc.
References hgcal::RecHitTools::getEventSetup(), and rhtools_.
int ClusterTools::getLayer | ( | const DetId | detid | ) | const |
Definition at line 121 of file ClusterTools.cc.
References hgcal::RecHitTools::getLayerWithOffset(), and rhtools_.
Referenced by getWidths().
double ClusterTools::getMultiClusterEnergy | ( | const reco::HGCalMultiCluster & | clu | ) | const |
Definition at line 125 of file ClusterTools.cc.
References reco::HGCalMultiCluster::clusters().
Referenced by getMultiClusterPosition().
math::XYZPoint ClusterTools::getMultiClusterPosition | ( | const reco::HGCalMultiCluster & | clu | ) | const |
Definition at line 94 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 133 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(), DetId::HGCalEE, HGCEE, reco::CaloCluster::hitsAndFractions(), lastLayerEE, cmsBatch::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 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().