g4tools  5.4.0
Public Member Functions | Protected Attributes | List of all members
tools::sg::h1d2plot_cp Class Reference
Inheritance diagram for tools::sg::h1d2plot_cp:
Inheritance graph
[legend]
Collaboration diagram for tools::sg::h1d2plot_cp:
Collaboration graph
[legend]

Public Member Functions

virtual void * cast (const std::string &a_class) const
 
virtual plottablecopy () const
 
 h1d2plot_cp (const histo::h1d &a_data)
 
virtual ~h1d2plot_cp ()
 
 h1d2plot_cp (const h1d2plot_cp &a_from)
 
h1d2plot_cpoperator= (const h1d2plot_cp &a_from)
 
const histo::h1ddata () const
 
histo::h1ddata ()
 
- Public Member Functions inherited from tools::sg::h1d2plot
virtual bool is_valid () const
 
virtual const std::string & name () const
 
virtual void set_name (const std::string &a_s)
 
virtual const std::string & title () const
 
virtual const std::string & legend () const
 
virtual void set_legend (const std::string &a_s)
 
virtual void infos (const std::string &a_opts, std::string &a_sinfos) const
 
virtual void bins_Sw_range (float &a_mn, float &a_mx, bool a_with_entries) const
 
virtual unsigned int bins () const
 
virtual float axis_min () const
 
virtual float axis_max () const
 
virtual float bin_lower_edge (int aI) const
 
virtual float bin_upper_edge (int aI) const
 
virtual bool has_entries_per_bin () const
 
virtual unsigned int bin_entries (int aI) const
 
virtual float bin_Sw (int aI) const
 
virtual float bin_error (int aI) const
 
virtual bool is_profile () const
 
 h1d2plot (const histo::h1d &a_data)
 
virtual ~h1d2plot ()
 
 h1d2plot (const h1d2plot &a_from)
 
h1d2plotoperator= (const h1d2plot &a_from)
 
const histo::h1ddata () const
 
- Public Member Functions inherited from tools::sg::bins1D
virtual ~bins1D ()
 
- Public Member Functions inherited from tools::sg::plottable
virtual ~plottable ()
 

Protected Attributes

histo::h1d m_cp
 
- Protected Attributes inherited from tools::sg::h1d2plot
const histo::h1dm_data
 
std::string m_name
 
std::string m_legend
 

Detailed Description

Definition at line 13 of file h2plot_cp.

Constructor & Destructor Documentation

◆ h1d2plot_cp() [1/2]

tools::sg::h1d2plot_cp::h1d2plot_cp ( const histo::h1d a_data)
inline

Definition at line 24 of file h2plot_cp.

25  :h1d2plot(m_cp) //give ref of m_cp to h1d2plot.
26  ,m_cp(a_data) //do a local copy.
27  //WARNING : the upper is ok as long as h1d2plot constructor does nothing
28  // else than keeping the ref to m_cp. Else it would do
29  // something on an empty histo (and not on a copy of the
30  // passed a_data).
31  {
32 #ifdef TOOLS_MEM
33  mem::increment(s_class().c_str());
34 #endif
35  }

◆ ~h1d2plot_cp()

virtual tools::sg::h1d2plot_cp::~h1d2plot_cp ( )
inlinevirtual

Definition at line 36 of file h2plot_cp.

36  {
37 #ifdef TOOLS_MEM
38  mem::decrement(s_class().c_str());
39 #endif
40  }

◆ h1d2plot_cp() [2/2]

tools::sg::h1d2plot_cp::h1d2plot_cp ( const h1d2plot_cp a_from)
inline

Definition at line 42 of file h2plot_cp.

43  :plottable(a_from)
44  ,bins1D(a_from)
45  ,h1d2plot(m_cp)
46  ,m_cp(a_from.m_cp)
47  {
48 #ifdef TOOLS_MEM
49  mem::increment(s_class().c_str());
50 #endif
51  }

Member Function Documentation

◆ cast()

virtual void* tools::sg::h1d2plot_cp::cast ( const std::string &  a_class) const
inlinevirtual

Reimplemented from tools::sg::h1d2plot.

Definition at line 17 of file h2plot_cp.

17  {
18  if(void* p = cmp_cast<h1d2plot_cp>(this,a_class)) {return p;}
19  return h1d2plot::cast(a_class);
20  }

◆ copy()

virtual plottable* tools::sg::h1d2plot_cp::copy ( ) const
inlinevirtual

Reimplemented from tools::sg::h1d2plot.

Definition at line 22 of file h2plot_cp.

22 {return new h1d2plot_cp(*this);}

◆ data() [1/2]

histo::h1d& tools::sg::h1d2plot_cp::data ( )
inline

Definition at line 59 of file h2plot_cp.

59 {return m_cp;}

◆ data() [2/2]

const histo::h1d& tools::sg::h1d2plot_cp::data ( ) const
inline

Definition at line 58 of file h2plot_cp.

58 {return m_cp;}

◆ operator=()

h1d2plot_cp& tools::sg::h1d2plot_cp::operator= ( const h1d2plot_cp a_from)
inline

Definition at line 52 of file h2plot_cp.

52  {
53  h1d2plot::operator=(a_from);
54  m_cp = a_from.m_cp;
55  return *this;
56  }

Member Data Documentation

◆ m_cp

histo::h1d tools::sg::h1d2plot_cp::m_cp
protected

Definition at line 61 of file h2plot_cp.


The documentation for this class was generated from the following file:
tools::sg::h1d2plot::h1d2plot
h1d2plot(const histo::h1d &a_data)
Definition: h2plot:167
tools::sg::h1d2plot::operator=
h1d2plot & operator=(const h1d2plot &a_from)
Definition: h2plot:188
tools::sg::h1d2plot_cp::m_cp
histo::h1d m_cp
Definition: h2plot_cp:61
tools::sg::h1d2plot_cp::h1d2plot_cp
h1d2plot_cp(const histo::h1d &a_data)
Definition: h2plot_cp:24
tools::sg::h1d2plot::cast
virtual void * cast(const std::string &a_class) const
Definition: h2plot:31