#include <ClusterTools.h>
Public Member Functions | |
ClusterTools (const edm::ParameterSet &, edm::ConsumesCollector &) | |
float | getClusterHadronFraction (const reco::CaloCluster &) const |
void | getEvent (const edm::Event &) |
void | getEventSetup (const edm::EventSetup &) |
double | getMultiClusterEnergy (const reco::HGCalMultiCluster &) const |
math::XYZPoint | getMultiClusterPosition (const reco::HGCalMultiCluster &, double vz=0.) const |
~ClusterTools () | |
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 | ( | const edm::ParameterSet & | conf, |
edm::ConsumesCollector & | sumes | ||
) |
Definition at line 18 of file ClusterTools.cc.
|
inline |
Definition at line 29 of file ClusterTools.h.
float ClusterTools::getClusterHadronFraction | ( | const reco::CaloCluster & | clus | ) | const |
Definition at line 40 of file ClusterTools.cc.
References bhrh_, eerh_, relval_parameters_module::energy, Exception, f, fhrh_, edm::SortedCollection< T, SORT >::find(), DetId::Forward, HLT_FULL_cff::fraction, DetId::Hcal, HcalEndcap, HGCEE, HGCHEF, reco::CaloCluster::hitsAndFractions(), and groupFilesInBlocks::temp.
void ClusterTools::getEvent | ( | const edm::Event & | ev | ) |
Definition at line 25 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 36 of file ClusterTools.cc.
References hgcal::RecHitTools::getEventSetup(), and rhtools_.
double ClusterTools::getMultiClusterEnergy | ( | const reco::HGCalMultiCluster & | clu | ) | const |
Definition at line 105 of file ClusterTools.cc.
References reco::HGCalMultiCluster::clusters().
math::XYZPoint ClusterTools::getMultiClusterPosition | ( | const reco::HGCalMultiCluster & | clu, |
double | vz = 0. |
||
) | const |
Definition at line 79 of file ClusterTools.cc.
References assert(), reco::HGCalMultiCluster::clusters(), f, mathSSE::sqrt(), groupFilesInBlocks::temp, histoStyle::weight, and x().
|
private |
Definition at line 44 of file ClusterTools.h.
Referenced by getClusterHadronFraction(), and getEvent().
|
private |
Definition at line 43 of file ClusterTools.h.
Referenced by getEvent().
|
private |
Definition at line 44 of file ClusterTools.h.
Referenced by getClusterHadronFraction(), and getEvent().
|
private |
Definition at line 43 of file ClusterTools.h.
Referenced by getEvent().
|
private |
Definition at line 44 of file ClusterTools.h.
Referenced by getClusterHadronFraction(), and getEvent().
|
private |
Definition at line 43 of file ClusterTools.h.
Referenced by getEvent().
|
private |
Definition at line 42 of file ClusterTools.h.
Referenced by getEvent(), and getEventSetup().