ATLAS Offline Software
TFCS1DFunctionInt16Histogram.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_TFCS1DFunctionInt16Histogram_h
6 #define ISF_FASTCALOSIMEVENT_TFCS1DFunctionInt16Histogram_h
7 
9 
11 #include <vector>
12 
13 class TH2;
14 
16 public:
17  TFCS1DFunctionInt16Histogram(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  const std::vector<float> &get_HistoBordersx() const {
35  return m_HistoBorders;
36  };
37  std::vector<float> &get_HistoBordersx() { return m_HistoBorders; };
38  const std::vector<HistoContent_t> &get_HistoContents() const {
39  return m_HistoContents;
40  };
41  std::vector<HistoContent_t> &get_HistoContents() { return m_HistoContents; };
42 
43  static void unit_test ATLAS_NOT_THREAD_SAFE(TH1 *hist = nullptr);
44 
45 protected:
46  std::vector<float> m_HistoBorders;
47  std::vector<HistoContent_t> m_HistoContents;
48 
49 private:
50  ClassDef(TFCS1DFunctionInt16Histogram, 1) // TFCS1DFunctionInt16Histogram
51 };
52 
53 #endif
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
TFCS1DFunctionInt16Histogram::Initialize
void Initialize(const TH1 *hist)
Definition: TFCS1DFunctionInt16Histogram.cxx:21
TFCS1DFunctionInt16Histogram::m_HistoContents
std::vector< HistoContent_t > m_HistoContents
Definition: TFCS1DFunctionInt16Histogram.h:47
TFCS1DFunctionInt16Histogram::get_HistoBordersx
std::vector< float > & get_HistoBordersx()
Definition: TFCS1DFunctionInt16Histogram.h:37
TFCS1DFunctionInt16Histogram::m_HistoBorders
std::vector< float > m_HistoBorders
Definition: TFCS1DFunctionInt16Histogram.h:46
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
TFCS1DFunctionInt16Histogram::get_HistoContents
const std::vector< HistoContent_t > & get_HistoContents() const
Definition: TFCS1DFunctionInt16Histogram.h:38
TFCS1DFunctionInt16Histogram::get_HistoBordersx
const std::vector< float > & get_HistoBordersx() const
Definition: TFCS1DFunctionInt16Histogram.h:34
TFCS1DFunctionInt16Histogram::s_MaxValue
static const HistoContent_t s_MaxValue
Definition: TFCS1DFunctionInt16Histogram.h:28
TFCS1DFunctionInt16Histogram
Definition: TFCS1DFunctionInt16Histogram.h:15
TFCS1DFunctionInt16Histogram::ATLAS_NOT_THREAD_SAFE
static void unit_test ATLAS_NOT_THREAD_SAFE(TH1 *hist=nullptr)
TFCS1DFunctionInt16Histogram::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: TFCS1DFunctionInt16Histogram.cxx:66
TFCS1DFunctionInt16Histogram::TFCS1DFunctionInt16Histogram
TFCS1DFunctionInt16Histogram(const TH1 *hist=nullptr)
Definition: TFCS1DFunctionInt16Histogram.h:17
TFCS1DFunctionInt16Histogram::get_HistoContents
std::vector< HistoContent_t > & get_HistoContents()
Definition: TFCS1DFunctionInt16Histogram.h:41
TFCS1DFunction.h
TFCS1DFunction
Definition: TFCS1DFunction.h:17
checker_macros.h
Define macros for attributes used to control the static checker.
TFCS1DFunctionInt16Histogram::HistoContent_t
uint16_t HistoContent_t
Definition: TFCS1DFunctionInt16Histogram.h:27
TFCS1DFunctionInt16Histogram::~TFCS1DFunctionInt16Histogram
~TFCS1DFunctionInt16Histogram()
Definition: TFCS1DFunctionInt16Histogram.h:21