ATLAS Offline Software
Loading...
Searching...
No Matches
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
13class TH2;
14
16public:
17 TFCS2DFunctionHistogram(TH2 *hist = nullptr) {
18 if (hist)
19 Initialize(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
44protected:
45 std::vector<float> m_HistoBorders;
46 std::vector<float> m_HistoBordersy;
47 std::vector<float> m_HistoContents;
48
49private:
50 ClassDef(TFCS2DFunctionHistogram, 1) // TFCS2DFunctionHistogram
51};
52
53#endif
Define macros for attributes used to control the static checker.
const std::vector< float > & get_HistoBordersy() const
const std::vector< float > & get_HistoContents() const
virtual void rnd_to_fct(float &valuex, float &valuey, float rnd0, float rnd1) const
std::vector< float > m_HistoBorders
std::vector< float > & get_HistoContents()
static void unit_test ATLAS_NOT_THREAD_SAFE(TH2 *hist=nullptr)
std::vector< float > m_HistoBordersy
const std::vector< float > & get_HistoBordersx() const
std::vector< float > m_HistoContents
std::vector< float > & get_HistoBordersx()
std::vector< float > & get_HistoBordersy()
TFCS2DFunctionHistogram(TH2 *hist=nullptr)
virtual void rnd_to_fct(float &valuex, float &valuey, float rnd0, float rnd1) const =0