ATLAS Offline Software
TFCS2DFunctionHistogram.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ISF_FASTCALOSIMEVENT_TFCS2DFunctionHistogram_h
6 #define ISF_FASTCALOSIMEVENT_TFCS2DFunctionHistogram_h
7 
9 
11 #include <vector>
12 
13 class TH2;
14 
16 public:
17  TFCS2DFunctionHistogram(TH2 *hist = nullptr) {
18  if (hist)
20  };
22 
23  void Initialize(TH2 *hist);
24 
26  virtual void rnd_to_fct(float &valuex, float &valuey, float rnd0,
27  float rnd1) const;
28 
29  const std::vector<float> &get_HistoBordersx() const {
30  return m_HistoBorders;
31  };
32  std::vector<float> &get_HistoBordersx() { return m_HistoBorders; };
33  const std::vector<float> &get_HistoBordersy() const {
34  return m_HistoBordersy;
35  };
36  std::vector<float> &get_HistoBordersy() { return m_HistoBordersy; };
37  const std::vector<float> &get_HistoContents() const {
38  return m_HistoContents;
39  };
40  std::vector<float> &get_HistoContents() { return m_HistoContents; };
41 
42  static void unit_test ATLAS_NOT_THREAD_SAFE(TH2 *hist = nullptr);
43 
44 protected:
45  std::vector<float> m_HistoBorders;
46  std::vector<float> m_HistoBordersy;
47  std::vector<float> m_HistoContents;
48 
49 private:
50  ClassDef(TFCS2DFunctionHistogram, 1) // TFCS2DFunctionHistogram
51 };
52 
53 #endif
plotmaker.hist
hist
Definition: plotmaker.py:148
TFCS2DFunctionHistogram::get_HistoContents
std::vector< float > & get_HistoContents()
Definition: TFCS2DFunctionHistogram.h:40
TFCS2DFunction.h
TFCS2DFunctionHistogram::get_HistoContents
const std::vector< float > & get_HistoContents() const
Definition: TFCS2DFunctionHistogram.h:37
TFCS2DFunctionHistogram::m_HistoContents
std::vector< float > m_HistoContents
Definition: TFCS2DFunctionHistogram.h:47
TFCS2DFunctionHistogram
Definition: TFCS2DFunctionHistogram.h:15
TFCS2DFunctionHistogram::Initialize
void Initialize(TH2 *hist)
Definition: TFCS2DFunctionHistogram.cxx:18
TFCS2DFunctionHistogram::get_HistoBordersy
const std::vector< float > & get_HistoBordersy() const
Definition: TFCS2DFunctionHistogram.h:33
TFCS2DFunction::rnd_to_fct
virtual void rnd_to_fct(float &valuex, float &valuey, float rnd0, float rnd1) const =0
TFCS2DFunctionHistogram::get_HistoBordersy
std::vector< float > & get_HistoBordersy()
Definition: TFCS2DFunctionHistogram.h:36
TFCS2DFunctionHistogram::TFCS2DFunctionHistogram
TFCS2DFunctionHistogram(TH2 *hist=nullptr)
Definition: TFCS2DFunctionHistogram.h:17
TFCS2DFunctionHistogram::ATLAS_NOT_THREAD_SAFE
static void unit_test ATLAS_NOT_THREAD_SAFE(TH2 *hist=nullptr)
TFCS2DFunctionHistogram::rnd_to_fct
virtual void rnd_to_fct(float &valuex, float &valuey, float rnd0, float rnd1) const
Definition: TFCS2DFunctionHistogram.cxx:69
TFCS2DFunction
Definition: TFCS2DFunction.h:15
TFCS2DFunctionHistogram::get_HistoBordersx
std::vector< float > & get_HistoBordersx()
Definition: TFCS2DFunctionHistogram.h:32
TFCS2DFunctionHistogram::~TFCS2DFunctionHistogram
~TFCS2DFunctionHistogram()
Definition: TFCS2DFunctionHistogram.h:21
TFCS2DFunctionHistogram::m_HistoBorders
std::vector< float > m_HistoBorders
Definition: TFCS2DFunctionHistogram.h:45
TFCS2DFunctionHistogram::get_HistoBordersx
const std::vector< float > & get_HistoBordersx() const
Definition: TFCS2DFunctionHistogram.h:29
checker_macros.h
Define macros for attributes used to control the static checker.
TFCS2DFunctionHistogram::m_HistoBordersy
std::vector< float > m_HistoBordersy
Definition: TFCS2DFunctionHistogram.h:46