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

Public Member Functions

virtual void * cast (const std::string &a_class) const
 
virtual plottablecopy () const
 
 p1d2plot_cp (const histo::p1d &a_data)
 
virtual ~p1d2plot_cp ()
 
 p1d2plot_cp (const p1d2plot_cp &a_from)
 
p1d2plot_cpoperator= (const p1d2plot_cp &a_from)
 
- Public Member Functions inherited from tools::sg::p1d2plot
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 unsigned int bins () const
 
virtual void bins_Sw_range (float &a_mn, float &a_mx, bool a_with_entries) 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
 
 p1d2plot (const histo::p1d &a_data)
 
virtual ~p1d2plot ()
 
 p1d2plot (const p1d2plot &a_from)
 
p1d2plotoperator= (const p1d2plot &a_from)
 
- Public Member Functions inherited from tools::sg::bins1D
virtual ~bins1D ()
 
- Public Member Functions inherited from tools::sg::plottable
virtual ~plottable ()
 

Protected Attributes

histo::p1d m_cp
 
- Protected Attributes inherited from tools::sg::p1d2plot
const histo::p1dm_data
 
std::string m_name
 
std::string m_legend
 

Detailed Description

Definition at line 106 of file h2plot_cp.

Constructor & Destructor Documentation

◆ p1d2plot_cp() [1/2]

tools::sg::p1d2plot_cp::p1d2plot_cp ( const histo::p1d a_data)
inline

Definition at line 117 of file h2plot_cp.

118  :p1d2plot(m_cp)
119  ,m_cp(a_data)
120  {
121 #ifdef TOOLS_MEM
122  mem::increment(s_class().c_str());
123 #endif
124  }

◆ ~p1d2plot_cp()

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

Definition at line 125 of file h2plot_cp.

125  {
126 #ifdef TOOLS_MEM
127  mem::decrement(s_class().c_str());
128 #endif
129  }

◆ p1d2plot_cp() [2/2]

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

Definition at line 131 of file h2plot_cp.

132  :plottable(a_from),bins1D(a_from),p1d2plot(m_cp)
133  ,m_cp(a_from.m_cp)
134  {
135 #ifdef TOOLS_MEM
136  mem::increment(s_class().c_str());
137 #endif
138  }

Member Function Documentation

◆ cast()

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

Reimplemented from tools::sg::p1d2plot.

Definition at line 110 of file h2plot_cp.

110  {
111  if(void* p = cmp_cast<p1d2plot_cp>(this,a_class)) {return p;}
112  return p1d2plot::cast(a_class);
113  }

◆ copy()

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

Reimplemented from tools::sg::p1d2plot.

Definition at line 115 of file h2plot_cp.

115 {return new p1d2plot_cp(*this);}

◆ operator=()

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

Definition at line 139 of file h2plot_cp.

139  {
140  p1d2plot::operator=(a_from);
141  m_cp = a_from.m_cp;
142  return *this;
143  }

Member Data Documentation

◆ m_cp

histo::p1d tools::sg::p1d2plot_cp::m_cp
protected

Definition at line 145 of file h2plot_cp.


The documentation for this class was generated from the following file:
tools::sg::p1d2plot_cp::p1d2plot_cp
p1d2plot_cp(const histo::p1d &a_data)
Definition: h2plot_cp:117
tools::sg::p1d2plot::p1d2plot
p1d2plot(const histo::p1d &a_data)
Definition: h2plot:396
tools::sg::p1d2plot_cp::m_cp
histo::p1d m_cp
Definition: h2plot_cp:145
tools::sg::p1d2plot::operator=
p1d2plot & operator=(const p1d2plot &a_from)
Definition: h2plot:405
tools::sg::p1d2plot::cast
virtual void * cast(const std::string &a_class) const
Definition: h2plot:325