ATLAS Offline Software
Loading...
Searching...
No Matches
LhoodMMEvent.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef LhoodMMEvent_h
6#define LhoodMMEvent_h
7
8#include <vector>
10
12
13 public :
14
15 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.);
16 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.);
17
18 LhoodMMEvent(const LhoodMMEvent& mmevt);
19 unsigned nlep() const {return m_nlep;}
20 float realEff(unsigned ilep, CP::BaseFakeBkgTool* tool = nullptr) const;
21 float fakeEff(unsigned ilep, CP::BaseFakeBkgTool* tool = nullptr) const;
22 const FakeBkgTools::Efficiency& realEffObj(unsigned ilep) const;
23 const FakeBkgTools::Efficiency& fakeEffObj(unsigned ilep) const;
24
25 bool isTight(unsigned ilep) const;
26 int charge(unsigned ilep) const;
27
28 float weight() const {return m_weight;}
29
30 double aux() const {return m_aux;}
31
32 double aux2() const {return m_aux2;}
33
34 private :
35
36 unsigned m_nlep;
37
38 std::vector<FakeBkgTools::Efficiency> m_realEff, m_fakeEff;
39 std::vector<int> m_charge;
40 std::vector<bool> m_isTight;
41
42 float m_weight;
43 double m_aux, m_aux2;
44
45 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);
46
47};
48
49#endif
double aux() const
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)
double aux2() const
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
unsigned nlep() const
unsigned m_nlep
float weight() const
std::vector< int > m_charge
std::vector< FakeBkgTools::Efficiency > m_fakeEff
a structure to hold an efficiency together with a variable number of uncertainties
#define private