ATLAS Offline Software
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 
11 class LhoodMMEvent {
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
CP::BaseFakeBkgTool
Definition: BaseFakeBkgTool.h:42
LhoodMMEvent::Init
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)
Definition: LhoodMMEvent.cxx:15
FakeBkgTools::Efficiency
a structure to hold an efficiency together with a variable number of uncertainties
Definition: FakeBkgInternals.h:40
LhoodMMEvent::aux
double aux() const
Definition: LhoodMMEvent.h:30
LhoodMMEvent::isTight
bool isTight(unsigned ilep) const
Definition: LhoodMMEvent.cxx:101
LhoodMMEvent::aux2
double aux2() const
Definition: LhoodMMEvent.h:32
LhoodMMEvent::realEff
float realEff(unsigned ilep, CP::BaseFakeBkgTool *tool=nullptr) const
Definition: LhoodMMEvent.cxx:55
LhoodMMEvent::m_weight
float m_weight
Definition: LhoodMMEvent.h:42
LhoodMMEvent::realEffObj
const FakeBkgTools::Efficiency & realEffObj(unsigned ilep) const
Definition: LhoodMMEvent.cxx:82
LhoodMMEvent::m_fakeEff
std::vector< FakeBkgTools::Efficiency > m_fakeEff
Definition: LhoodMMEvent.h:38
BaseFakeBkgTool.h
LhoodMMEvent::charge
int charge(unsigned ilep) const
Definition: LhoodMMEvent.cxx:110
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
LhoodMMEvent
Definition: LhoodMMEvent.h:11
AtlCoolConsole.tool
tool
Definition: AtlCoolConsole.py:453
LhoodMMEvent::m_nlep
unsigned m_nlep
Definition: LhoodMMEvent.h:36
LhoodMMEvent::m_aux2
double m_aux2
Definition: LhoodMMEvent.h:43
LhoodMMEvent::m_realEff
std::vector< FakeBkgTools::Efficiency > m_realEff
Definition: LhoodMMEvent.h:38
LhoodMMEvent::m_charge
std::vector< int > m_charge
Definition: LhoodMMEvent.h:39
LhoodMMEvent::fakeEff
float fakeEff(unsigned ilep, CP::BaseFakeBkgTool *tool=nullptr) const
Definition: LhoodMMEvent.cxx:68
LhoodMMEvent::m_aux
double m_aux
Definition: LhoodMMEvent.h:43
LhoodMMEvent::weight
float weight() const
Definition: LhoodMMEvent.h:28
LhoodMMEvent::nlep
unsigned nlep() const
Definition: LhoodMMEvent.h:19
LhoodMMEvent::fakeEffObj
const FakeBkgTools::Efficiency & fakeEffObj(unsigned ilep) const
Definition: LhoodMMEvent.cxx:91
LhoodMMEvent::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: LhoodMMEvent.cxx:35
LhoodMMEvent::m_isTight
std::vector< bool > m_isTight
Definition: LhoodMMEvent.h:40