#include <LhoodMMEvent.h>
|
| | LhoodMMEvent (int nlep, const std::vector< FakeBkgTools::Efficiency > &realEff, const std::vector< FakeBkgTools::Efficiency > &fakeEff, const std::vector< bool > &isTight, const std::vector< int > &charge, double weight, double aux=0., double aux2=0.) |
| | LhoodMMEvent (int nlep, const std::vector< FakeBkgTools::Efficiency > &realEff, const std::vector< FakeBkgTools::Efficiency > &fakeEff, const std::vector< bool > &isTight, const std::vector< int > &charge, float weight, float aux=0., float aux2=0.) |
| | LhoodMMEvent (const LhoodMMEvent &mmevt) |
| unsigned | nlep () const |
| float | realEff (unsigned ilep, CP::BaseFakeBkgTool *tool=nullptr) const |
| float | fakeEff (unsigned ilep, CP::BaseFakeBkgTool *tool=nullptr) const |
| const FakeBkgTools::Efficiency & | realEffObj (unsigned ilep) const |
| const FakeBkgTools::Efficiency & | fakeEffObj (unsigned ilep) const |
| bool | isTight (unsigned ilep) const |
| int | charge (unsigned ilep) const |
| float | weight () const |
| double | aux () const |
| double | aux2 () const |
Definition at line 11 of file LhoodMMEvent.h.
◆ LhoodMMEvent() [1/3]
| LhoodMMEvent::LhoodMMEvent |
( |
int | nlep, |
|
|
const std::vector< FakeBkgTools::Efficiency > & | realEff, |
|
|
const std::vector< FakeBkgTools::Efficiency > & | fakeEff, |
|
|
const std::vector< bool > & | isTight, |
|
|
const std::vector< int > & | charge, |
|
|
double | weight, |
|
|
double | aux = 0., |
|
|
double | aux2 = 0. ) |
Definition at line 35 of file LhoodMMEvent.cxx.
35 {
36
38}
void Init(int nlep, const std::vector< FakeBkgTools::Efficiency > &realEff, const std::vector< FakeBkgTools::Efficiency > &fakeEff, const std::vector< bool > &isTight, const std::vector< int > &charge, float weight, double aux, double aux2)
float fakeEff(unsigned ilep, CP::BaseFakeBkgTool *tool=nullptr) const
int charge(unsigned ilep) const
float realEff(unsigned ilep, CP::BaseFakeBkgTool *tool=nullptr) const
bool isTight(unsigned ilep) const
◆ LhoodMMEvent() [2/3]
| LhoodMMEvent::LhoodMMEvent |
( |
int | nlep, |
|
|
const std::vector< FakeBkgTools::Efficiency > & | realEff, |
|
|
const std::vector< FakeBkgTools::Efficiency > & | fakeEff, |
|
|
const std::vector< bool > & | isTight, |
|
|
const std::vector< int > & | charge, |
|
|
float | weight, |
|
|
float | aux = 0., |
|
|
float | aux2 = 0. ) |
◆ LhoodMMEvent() [3/3]
Definition at line 49 of file LhoodMMEvent.cxx.
49 {
50
53}
std::vector< FakeBkgTools::Efficiency > m_realEff
std::vector< bool > m_isTight
std::vector< int > m_charge
std::vector< FakeBkgTools::Efficiency > m_fakeEff
◆ aux()
| double LhoodMMEvent::aux |
( |
| ) |
const |
|
inline |
◆ aux2()
| double LhoodMMEvent::aux2 |
( |
| ) |
const |
|
inline |
◆ charge()
| int LhoodMMEvent::charge |
( |
unsigned | ilep | ) |
const |
Definition at line 110 of file LhoodMMEvent.cxx.
110 {
112
113 throw std::out_of_range(
" LhoodMMEvent::charge: invalid lepton index " + std::to_string(ilep) +
"; must be less than " + std::to_string(
m_nlep));
114 }
115
116
117 if (
unsigned(ilep) >
m_charge.size() ) {
118 return 0;
119 } else {
121 }
122}
◆ fakeEff()
Definition at line 68 of file LhoodMMEvent.cxx.
68 {
70 if (tool == nullptr) {
72 } else {
74 }
75 } else {
76
77 throw std::out_of_range(
" LhoodMMEvent::fakeEff: invalid lepton index " + std::to_string(ilep) +
"; must be less than " + std::to_string(
m_nlep));
78 }
79
80}
◆ fakeEffObj()
| const Efficiency & LhoodMMEvent::fakeEffObj |
( |
unsigned | ilep | ) |
const |
Definition at line 91 of file LhoodMMEvent.cxx.
91 {
94 } else {
95
96 throw std::out_of_range(
" LhoodMMEvent::fakeEff: invalid lepton index " + std::to_string(ilep) +
"; must be less than " + std::to_string(
m_nlep));
97 }
98
99}
◆ Init()
| void LhoodMMEvent::Init |
( |
int | nlep, |
|
|
const std::vector< FakeBkgTools::Efficiency > & | realEff, |
|
|
const std::vector< FakeBkgTools::Efficiency > & | fakeEff, |
|
|
const std::vector< bool > & | isTight, |
|
|
const std::vector< int > & | charge, |
|
|
float | weight, |
|
|
double | aux, |
|
|
double | aux2 ) |
|
private |
Definition at line 15 of file LhoodMMEvent.cxx.
15 {
16
20
22 throw std::invalid_argument(
"LhoodMMEvent::Init: Expected " + std::to_string(
m_nlep) +
" real efficiency values, but only " + std::to_string(
m_realEff.size()) +
" provided in efficiency vector");
23 }
25 throw std::invalid_argument(
"ERROR in LhoodMMEvent::Init: Expected " + std::to_string(
m_nlep) +
" fake efficiency values, but " + std::to_string(
m_fakeEff.size()) +
" provided in efficiency vector");
26 }
29
33}
◆ isTight()
| bool LhoodMMEvent::isTight |
( |
unsigned | ilep | ) |
const |
Definition at line 101 of file LhoodMMEvent.cxx.
101 {
104 } else {
105 throw std::out_of_range(
" LhoodMMEvent::isTight: invalid lepton index " + std::to_string(ilep) +
"; must be less than " + std::to_string(
m_nlep));
106 }
107
108}
◆ nlep()
| unsigned LhoodMMEvent::nlep |
( |
| ) |
const |
|
inline |
◆ realEff()
Definition at line 55 of file LhoodMMEvent.cxx.
55 {
57 if (tool == nullptr) {
59 } else {
61 }
62 } else {
63 throw std::out_of_range(
" LhoodMMEvent::realEff: invalid lepton index " + std::to_string(ilep) +
"; must be less than " + std::to_string(
m_nlep));
64 }
65
66}
◆ realEffObj()
| const Efficiency & LhoodMMEvent::realEffObj |
( |
unsigned | ilep | ) |
const |
Definition at line 82 of file LhoodMMEvent.cxx.
82 {
85 } else {
86 throw std::out_of_range(
" LhoodMMEvent::realEff: invalid lepton index " + std::to_string(ilep) +
"; must be less than " + std::to_string(
m_nlep));
87 }
88
89}
◆ weight()
| float LhoodMMEvent::weight |
( |
| ) |
const |
|
inline |
◆ m_aux
| double LhoodMMEvent::m_aux |
|
private |
◆ m_aux2
| double LhoodMMEvent::m_aux2 |
|
private |
◆ m_charge
| std::vector<int> LhoodMMEvent::m_charge |
|
private |
◆ m_fakeEff
◆ m_isTight
| std::vector<bool> LhoodMMEvent::m_isTight |
|
private |
◆ m_nlep
| unsigned LhoodMMEvent::m_nlep |
|
private |
◆ m_realEff
◆ m_weight
| float LhoodMMEvent::m_weight |
|
private |
The documentation for this class was generated from the following files: