5#define LhoodMMEvent_cxx
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");
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");
57 if (tool ==
nullptr) {
63 throw std::out_of_range(
" LhoodMMEvent::realEff: invalid lepton index " + std::to_string(ilep) +
"; must be less than " + std::to_string(
m_nlep));
70 if (tool ==
nullptr) {
77 throw std::out_of_range(
" LhoodMMEvent::fakeEff: invalid lepton index " + std::to_string(ilep) +
"; must be less than " + std::to_string(
m_nlep));
86 throw std::out_of_range(
" LhoodMMEvent::realEff: invalid lepton index " + std::to_string(ilep) +
"; must be less than " + std::to_string(
m_nlep));
96 throw std::out_of_range(
" LhoodMMEvent::fakeEff: invalid lepton index " + std::to_string(ilep) +
"; must be less than " + std::to_string(
m_nlep));
105 throw std::out_of_range(
" LhoodMMEvent::isTight: invalid lepton index " + std::to_string(ilep) +
"; must be less than " + std::to_string(
m_nlep));
113 throw std::out_of_range(
" LhoodMMEvent::charge: invalid lepton index " + std::to_string(ilep) +
"; must be less than " + std::to_string(
m_nlep));
117 if (
unsigned(ilep) >
m_charge.size() ) {
std::vector< FakeBkgTools::Efficiency > m_realEff
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
const FakeBkgTools::Efficiency & fakeEffObj(unsigned ilep) const
int charge(unsigned ilep) const
std::vector< bool > m_isTight
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.)
float realEff(unsigned ilep, CP::BaseFakeBkgTool *tool=nullptr) const
bool isTight(unsigned ilep) const
const FakeBkgTools::Efficiency & realEffObj(unsigned ilep) const
std::vector< int > m_charge
std::vector< FakeBkgTools::Efficiency > m_fakeEff