ATLAS Offline Software
IFakeBkgTool.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 IFAKE_BKG_TOOL_H
6 #define IFAKE_BKG_TOOL_H
7 
10 
11 #include <string>
12 
13 class TDirectory;
14 class TH1;
15 class TH2;
16 class TH3;
17 
18 namespace CP
19 {
20 
21 class IFakeBkgSystDescriptor;
22 
25 class IFakeBkgTool : virtual public CP::ISystematicsTool
26 {
27  public:
28 
32  static constexpr const char* defaultSelection() { return "0!T"; }
33 
37  static constexpr const char* defaultProcess() { return ">=1F[T]"; }
38 
41  virtual StatusCode addEvent(const xAOD::IParticleContainer& particles, float extraWeight = 1.f) = 0;
42 
46  virtual StatusCode getTotalYield(float& yield, float& statErrorUp, float& statErrorDown) = 0;
47 
51  virtual StatusCode register1DHistogram(TH1* h1, const float *val) = 0;
52 
56  virtual StatusCode register2DHistogram(TH2* h2, const float *xval, const float *yval) = 0;
57 
61  virtual StatusCode register3DHistogram(TH3* h3, const float *xval, const float *yval, const float *zval) = 0;
62 
63  virtual StatusCode saveProgress(TDirectory* dir) = 0;
64 
66  virtual const IFakeBkgSystDescriptor& getSystDescriptor() const = 0;
67 
68 };
69 
70 }
71 
72 #endif
python.CaloRecoConfig.f
f
Definition: CaloRecoConfig.py:127
CP::IFakeBkgSystDescriptor
Auxiliary interface equiping the tools derived from IFakeBkgTool with helper methods to identify what...
Definition: IFakeBkgSystDescriptor.h:18
CP::IFakeBkgTool::getTotalYield
virtual StatusCode getTotalYield(float &yield, float &statErrorUp, float &statErrorDown)=0
returns the accumulated fake lepton background yield (or compute it, in the case of the likelihood ma...
read_hist_ntuple.h1
h1
Definition: read_hist_ntuple.py:21
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
CP::IFakeBkgTool
Top-level interface for the tools providing an estimate of the fake lepton background All the tools,...
Definition: IFakeBkgTool.h:26
CP::IFakeBkgTool::saveProgress
virtual StatusCode saveProgress(TDirectory *dir)=0
ISystematicsTool.h
CP::IFakeBkgTool::register2DHistogram
virtual StatusCode register2DHistogram(TH2 *h2, const float *xval, const float *yval)=0
associates a 2D histogram to the tool, to obtain a binned estimate of the fake lepton background the ...
CP::IFakeBkgTool::getSystDescriptor
virtual const IFakeBkgSystDescriptor & getSystDescriptor() const =0
retrieves an interface to various helper methods to identify what the different SystematicVariations ...
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IParticleContainer.h
TH3
Definition: rootspy.cxx:440
plotting.yearwise_efficiency.yval
float yval
Definition: yearwise_efficiency.py:43
plotting.yearwise_efficiency.xval
float xval
Definition: yearwise_efficiency.py:42
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
TH2
Definition: rootspy.cxx:373
beamspotman.dir
string dir
Definition: beamspotman.py:623
CP::IFakeBkgTool::register3DHistogram
virtual StatusCode register3DHistogram(TH3 *h3, const float *xval, const float *yval, const float *zval)=0
associates a 3D histogram to the tool, to obtain a binned estimate of the fake lepton background
CP::IFakeBkgTool::defaultSelection
static constexpr const char * defaultSelection()
default value taken by the 'selection' argument of several methods or properties It indicates how the...
Definition: IFakeBkgTool.h:32
CP::ISystematicsTool
Interface for all CP tools supporting systematic variations.
Definition: ISystematicsTool.h:32
CP::IFakeBkgTool::addEvent
virtual StatusCode addEvent(const xAOD::IParticleContainer &particles, float extraWeight=1.f)=0
supply list of leptons / global variables, internal counters incremented Does not return anything; ev...
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
TH1
Definition: rootspy.cxx:268
LArG4FSStartPointFilter.particles
list particles
Definition: LArG4FSStartPointFilter.py:84
CP::IFakeBkgTool::defaultProcess
static constexpr const char * defaultProcess()
default value taken by the 'process' argument of several methods or properties It indicates what shou...
Definition: IFakeBkgTool.h:37
CP::IFakeBkgTool::register1DHistogram
virtual StatusCode register1DHistogram(TH1 *h1, const float *val)=0
associates a 1D histogram to the tool, to obtain a binned estimate of the fake lepton background the ...