ATLAS Offline Software
TFCS1DFunctionInt32Histogram.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_TFCS1DFunctionInt32Histogram_h
6 #define ISF_FASTCALOSIMEVENT_TFCS1DFunctionInt32Histogram_h
7 
9 
11 #include <vector>
12 
13 class TH2;
14 
16 public:
17  TFCS1DFunctionInt32Histogram(const TH1 *hist = nullptr) {
18  if (hist)
20  };
22 
23  void Initialize(const TH1 *hist);
24 
26 
28  static const HistoContent_t s_MaxValue;
29 
32  virtual double rnd_to_fct(double rnd) const;
33 
34  virtual bool operator==(const TFCS1DFunction &ref) const;
35 
36  const std::vector<float> &get_HistoBordersx() const {
37  return m_HistoBorders;
38  };
39  std::vector<float> &get_HistoBordersx() { return m_HistoBorders; };
40  const std::vector<HistoContent_t> &get_HistoContents() const {
41  return m_HistoContents;
42  };
43  std::vector<HistoContent_t> &get_HistoContents() { return m_HistoContents; };
44 
45  static void unit_test ATLAS_NOT_THREAD_SAFE(TH1 *hist = nullptr);
46 
47 protected:
48  std::vector<float> m_HistoBorders;
49  std::vector<HistoContent_t> m_HistoContents;
50 
51 private:
52  ClassDef(TFCS1DFunctionInt32Histogram, 1) // TFCS1DFunctionInt32Histogram
53 };
54 
55 #endif
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
plotmaker.hist
hist
Definition: plotmaker.py:148
TFCS1DFunction::rnd_to_fct
virtual void rnd_to_fct(float value[], const float rnd[]) const
Function gets array of random numbers rnd[] in the range [0,1) as arguments and returns function valu...
Definition: TFCS1DFunction.cxx:17
TFCS1DFunctionInt32Histogram::HistoContent_t
uint32_t HistoContent_t
Definition: TFCS1DFunctionInt32Histogram.h:27
TFCS1DFunctionInt32Histogram::get_HistoContents
std::vector< HistoContent_t > & get_HistoContents()
Definition: TFCS1DFunctionInt32Histogram.h:43
TFCS1DFunctionInt32Histogram::rnd_to_fct
virtual double rnd_to_fct(double rnd) const
Function gets random number rnd in the range [0,1) as argument and returns function value according t...
Definition: TFCS1DFunctionInt32Histogram.cxx:66
TFCS1DFunctionInt32Histogram::get_HistoBordersx
std::vector< float > & get_HistoBordersx()
Definition: TFCS1DFunctionInt32Histogram.h:39
TFCS1DFunctionInt32Histogram::~TFCS1DFunctionInt32Histogram
~TFCS1DFunctionInt32Histogram()
Definition: TFCS1DFunctionInt32Histogram.h:21
TFCS1DFunctionInt32Histogram::m_HistoBorders
std::vector< float > m_HistoBorders
Definition: TFCS1DFunctionInt32Histogram.h:48
TFCS1DFunctionInt32Histogram
Definition: TFCS1DFunctionInt32Histogram.h:15
TFCS1DFunctionInt32Histogram::operator==
virtual bool operator==(const TFCS1DFunction &ref) const
The == operator compares the content of instances.
Definition: TFCS1DFunctionInt32Histogram.cxx:94
TFCS1DFunctionInt32Histogram::s_MaxValue
static const HistoContent_t s_MaxValue
Definition: TFCS1DFunctionInt32Histogram.h:28
TFCS1DFunctionInt32Histogram::ATLAS_NOT_THREAD_SAFE
static void unit_test ATLAS_NOT_THREAD_SAFE(TH1 *hist=nullptr)
TFCS1DFunctionInt32Histogram::get_HistoContents
const std::vector< HistoContent_t > & get_HistoContents() const
Definition: TFCS1DFunctionInt32Histogram.h:40
ref
const boost::regex ref(r_ef)
TFCS1DFunction.h
TFCS1DFunctionInt32Histogram::m_HistoContents
std::vector< HistoContent_t > m_HistoContents
Definition: TFCS1DFunctionInt32Histogram.h:49
TFCS1DFunction
Definition: TFCS1DFunction.h:17
checker_macros.h
Define macros for attributes used to control the static checker.
TFCS1DFunctionInt32Histogram::get_HistoBordersx
const std::vector< float > & get_HistoBordersx() const
Definition: TFCS1DFunctionInt32Histogram.h:36
TFCS1DFunctionInt32Histogram::Initialize
void Initialize(const TH1 *hist)
Definition: TFCS1DFunctionInt32Histogram.cxx:22
TFCS1DFunctionInt32Histogram::TFCS1DFunctionInt32Histogram
TFCS1DFunctionInt32Histogram(const TH1 *hist=nullptr)
Definition: TFCS1DFunctionInt32Histogram.h:17