#include <JetCaloQualityUtils.h>
|
| static int | compute_nLeading (std::vector< double > &cell_energies, const float &e, const float &frac) |
Definition at line 28 of file JetCaloQualityUtils.h.
◆ compute_nLeading()
| int jet::JetCaloQualityUtils::compute_nLeading |
( |
std::vector< double > & | cell_energies, |
|
|
const float & | e, |
|
|
const float & | frac ) |
|
staticprivate |
Definition at line 37 of file JetCaloQualityUtils.cxx.
38 {
39 std::sort(cell_energies.rbegin(),cell_energies.rend());
42 for(
unsigned int i=0;
i<cell_energies.size();
i++)
43 {
44 sum += cell_energies[
i];
46 if(sum>frac*e) break;
47 }
49 }
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.
◆ emFraction()
| double jet::JetCaloQualityUtils::emFraction |
( |
const std::vector< float > & | ePerSampling | ) |
|
|
static |
Definition at line 56 of file JetCaloQualityUtils.cxx.
56 {
57 double e_EM = 0;
58 for(
int i=0;
i<9;
i++) e_EM += e_sampling[ ::em_calosample[i] ];
59
60 double e_HAD = 0;
61 for(
int i=0;
i<15;
i++) e_HAD += e_sampling[ ::had_calosample[i] ];
62 if( (e_EM==0) || ((e_EM+e_HAD)==0) ) return 0.;
63 return (e_EM / (e_EM+e_HAD));
64 }
◆ fracSamplingMax()
| double jet::JetCaloQualityUtils::fracSamplingMax |
( |
const Jet * | jet, |
|
|
int & | SamplingMax ) |
|
static |
Definition at line 107 of file JetCaloQualityUtils.cxx.
108 {
109 const std::vector<float> & einsampling =
eperSamplAcc(*jet);
110
112 double sumE_samplings=0.;
113 for (
unsigned int i(0);
i < einsampling.size(); ++
i )
114 {
115 double e = einsampling[
i];
118 {
121 }
122 }
123
124 if(sumE_samplings!=0)
127
129 }
static double fracSamplingMax(const Jet *jet, int &SamplingMax)
static const xAOD::JetAttributeAccessor::AccessorWrapper< std::vector< float > > & eperSamplAcc
◆ hecF()
| double jet::JetCaloQualityUtils::hecF |
( |
const Jet * | jet | ) |
|
|
static |
Definition at line 67 of file JetCaloQualityUtils.cxx.
68 {
69
70 const std::vector<float> & einsampling =
eperSamplAcc(*jet);
71
72 double e_hec =einsampling[CaloSampling::HEC0]
73 +einsampling[CaloSampling::HEC1]
74 +einsampling[CaloSampling::HEC2]
75 +einsampling[CaloSampling::HEC3];
76
78
79 if(e_jet!=0) return e_hec/e_jet;
80 else return -999;
81 }
◆ isUgly()
| bool jet::JetCaloQualityUtils::isUgly |
( |
const Jet * | jet, |
|
|
const bool | recalculateQuantities = false ) |
|
static |
Definition at line 144 of file JetCaloQualityUtils.cxx.
144 {
147
148 if (fcor>0.5) return true;
149 if (tileGap3f >0.5) return true;
150
151 return false;
152 }
static double tileGap3F(const Jet *jet)
◆ jetNegativeEnergy()
| double jet::JetCaloQualityUtils::jetNegativeEnergy |
( |
const Jet * | jet | ) |
|
|
static |
◆ jetOutOfTimeEnergyFractionClusters()
| double jet::JetCaloQualityUtils::jetOutOfTimeEnergyFractionClusters |
( |
const Jet * | , |
|
|
const double | , |
|
|
const bool | ) |
|
inlinestatic |
◆ presamplerFraction()
| double jet::JetCaloQualityUtils::presamplerFraction |
( |
const Jet * | jet | ) |
|
|
static |
Definition at line 83 of file JetCaloQualityUtils.cxx.
84 {
85 const std::vector<float>& einsampling =
eperSamplAcc(*jet);
86
87 double e_pres = einsampling[CaloSampling::PreSamplerB] + einsampling[CaloSampling::PreSamplerE];
88
90
91 if(e_jet!=0) return e_pres/e_jet;
92 else return -999;
93 }
◆ tileGap3F()
| double jet::JetCaloQualityUtils::tileGap3F |
( |
const Jet * | jet | ) |
|
|
static |
Definition at line 95 of file JetCaloQualityUtils.cxx.
96 {
97 const std::vector<float> & einsampling =
eperSamplAcc(*jet);
98
99 double e_tileGap3 =einsampling[CaloSampling::TileGap3];
101
102 if(e_jet!=0) return e_tileGap3/e_jet;
103 else return -999;
104 }
◆ JetCalcnLeadingCells
The documentation for this class was generated from the following files: