g4tools  5.4.0
Public Member Functions | Static Public Member Functions | List of all members
tools::histo::p1d Class Reference
Inheritance diagram for tools::histo::p1d:
Inheritance graph
[legend]
Collaboration diagram for tools::histo::p1d:
Collaboration graph
[legend]

Public Member Functions

const std::string & s_cls () const
 
 p1d ()
 
 p1d (const std::string &a_title, unsigned int aXnumber, double aXmin, double aXmax)
 
 p1d (const std::string &a_title, unsigned int aXnumber, double aXmin, double aXmax, double aVmin, double aVmax)
 
 p1d (const std::string &a_title, const std::vector< double > &a_edges)
 
 p1d (const std::string &a_title, const std::vector< double > &a_edges, double aVmin, double aVmax)
 
virtual ~p1d ()
 
 p1d (const p1d &a_from)
 
p1doperator= (const p1d &a_from)
 
- Public Member Functions inherited from tools::histo::p1< double, unsigned int, unsigned int, double, double, double >
bool equals (const p1 &a_from, const double &a_prec, double(*a_fabs)(double)) const
 
bool equals_TH (const p1 &a_from, const double &a_prec, double(*a_fabs)(double)) const
 
virtual double bin_error (int aI) const
 
bool multiply (double a_factor)
 
bool scale (double a_factor)
 
double bin_Svw (int aI) const
 
double bin_Sv2w (int aI) const
 
bool reset ()
 
void copy_from_data (const pd_t &a_from)
 
pd_t get_histo_data () const
 
bool fill (double aX, double aV, double aWeight=1)
 
bool set_bin_content (bn_t a_ibin, unsigned int a_entries, double a_Sw, double a_Sw2, double a_Sxw, double a_Sx2w, double a_Svw, double a_Sv2w)
 
bool get_bin_content (bn_t a_ibin, unsigned int &a_entries, double &a_Sw, double &a_Sw2, double &a_Sxw, double &a_Sx2w, double &a_Svw, double &a_Sv2w)
 
double bin_rms_value (int aI) const
 
bool add (const p1 &a_histo)
 
bool subtract (const p1 &a_histo)
 
bool gather_bins (unsigned int a_factor)
 
bool cut_v () const
 
double min_v () const
 
double max_v () const
 
 p1 (const std::string &a_title, bn_t aXnumber, double aXmin, double aXmax)
 
 p1 (const std::string &a_title, bn_t aXnumber, double aXmin, double aXmax, double aVmin, double aVmax)
 
 p1 (const std::string &a_title, const std::vector< double > &a_edges)
 
 p1 (const std::string &a_title, const std::vector< double > &a_edges, double aVmin, double aVmax)
 
 p1 (const p1 &a_from)
 
virtual ~p1 ()
 
p1operator= (const p1 &a_from)
 
bool configure (bn_t aXnumber, double aXmin, double aXmax)
 
bool configure (const std::vector< double > &a_edges)
 
bool configure (bn_t aXnumber, double aXmin, double aXmax, double aVmin, double aVmax)
 
bool configure (const std::vector< double > &a_edges, double aVmin, double aVmax)
 
const vs_tbins_sum_vw () const
 
const vs_tbins_sum_v2w () const
 
double get_Svw () const
 
double get_Sv2w () const
 
- Public Member Functions inherited from tools::histo::b1< double, unsigned int, unsigned int, double, double >
int coord_to_index (double aCoord) const
 
double mean () const
 
double rms () const
 
unsigned int bin_entries (int aI) const
 
double bin_Sw (int aI) const
 
double bin_Sw2 (int aI) const
 
double bin_Sxw (int aI) const
 
double bin_Sx2w (int aI) const
 
double bin_height (int aI) const
 
double bin_center (int aI) const
 
double bin_mean (int aI) const
 
double bin_rms (int aI) const
 
const axis_taxis () const
 
axis_taxis ()
 
void hprint (std::ostream &a_out)
 
bool configure (bn_t aXnumber, double aXmin, double aXmax)
 
bool configure (const std::vector< double > &a_edges)
 
- Public Member Functions inherited from tools::histo::base_histo< double, unsigned int, unsigned int, double, double >
const hd_tdac () const
 
bool equals (const base_histo &a_from, const double &a_prec, double(*a_fabs)(double)) const
 
const std::string & title () const
 
bool set_title (const std::string &a_title)
 
dim_t dimension () const
 
dim_t number_of_planes () const
 
unsigned int entries () const
 
unsigned int all_entries () const
 
unsigned int extra_entries () const
 
double equivalent_bin_entries () const
 
double sum_bin_heights () const
 
double sum_all_bin_heights () const
 
double sum_extra_bin_heights () const
 
double min_bin_height () const
 
double max_bin_height () const
 
bool min_bin_height_with_entries (double &a_value) const
 
bool max_bin_height_with_entries (double &a_value) const
 
bool has_entries_per_bin () const
 
bool get_ith_axis_Sxw (dim_t a_axis, double &a_value) const
 
bool get_ith_axis_Sx2w (dim_t a_axis, double &a_value) const
 
double get_in_range_Sw () const
 
double get_in_range_Sw2 () const
 
void get_Sw_Sw2 (double &a_sw, double &a_sw2) const
 
void get_all_Sw_Sw2 (double &a_sw, double &a_sw2) const
 
const std::vector< unsigned int > & bins_entries () const
 
const std::vector< double > & bins_sum_w () const
 
const std::vector< double > & bins_sum_w2 () const
 
const std::vector< std::vector< double > > & bins_sum_xw () const
 
const std::vector< std::vector< double > > & bins_sum_x2w () const
 
const std::vector< double > & in_range_planes_xyw () const
 
const axis_tget_axis (int a_index) const
 
offset_t get_bins () const
 
const std::string & get_title () const
 
dim_t get_dimension () const
 
bool is_valid () const
 
const annotations_tannotations () const
 
annotations_t annotations ()
 
void add_annotation (const std::string &a_key, const std::string &a_value)
 
bool annotation (const std::string &a_key, std::string &a_value) const
 
void set_annotations (const annotations_t &a_annotations)
 
void hprint_annotations (std::ostream &a_out)
 

Static Public Member Functions

static const std::string & s_class ()
 

Additional Inherited Members

- Public Types inherited from tools::histo::p1< double, unsigned int, unsigned int, double, double, double >
typedef profile_data< double, unsigned int, unsigned int, double, double > pd_t
 
typedef parent::bn_t bn_t
 
typedef parent::axis_t axis_t
 
typedef std::vector< double > vs_t
 
- Public Types inherited from tools::histo::b1< double, unsigned int, unsigned int, double, double >
typedef base_histo< double, unsigned int, unsigned int, double, double > base_histo_t
 
typedef parent::axis_t axis_t
 
typedef parent::bn_t bn_t
 
- Public Types inherited from tools::histo::base_histo< double, unsigned int, unsigned int, double, double >
typedef histo_data< double, unsigned int, unsigned int, double > hd_t
 
typedef axis< double, unsigned int > axis_t
 
typedef axis_t::bn_t bn_t
 
typedef unsigned int dim_t
 
typedef double coordinate_t
 
typedef unsigned int offset_t
 
typedef unsigned int num_entries_t
 
typedef double weight_t
 
typedef double height_t
 
typedef std::map< std::string, std::string > annotations_t
 
- Protected Types inherited from tools::histo::b1< double, unsigned int, unsigned int, double, double >
enum  
 
- Protected Types inherited from tools::histo::base_histo< double, unsigned int, unsigned int, double, double >
enum  
 
- Protected Types inherited from tools::histo::histo_data< double, unsigned int, unsigned int, double >
typedef axis< double, unsigned int > axis_t
 
typedef unsigned int dim_t
 
typedef std::map< std::string, std::string > annotations_t
 
- Protected Member Functions inherited from tools::histo::p1< double, unsigned int, unsigned int, double, double, double >
virtual double get_bin_height (unsigned int a_offset) const
 
- Protected Member Functions inherited from tools::histo::b1< double, unsigned int, unsigned int, double, double >
 b1 (const std::string &a_title, bn_t aXnumber, double aXmin, double aXmax)
 
 b1 (const std::string &a_title, const std::vector< double > &a_edges)
 
 b1 (const b1 &a_from)
 
virtual ~b1 ()
 
b1operator= (const b1 &a_from)
 
bool _find_offset (int aI, unsigned int &a_offset) const
 
- Protected Member Functions inherited from tools::histo::base_histo< double, unsigned int, unsigned int, double, double >
void base_from_data (const hd_t &a_from)
 
hd_t base_get_data () const
 
 base_histo ()
 
 base_histo (const base_histo &a_from)
 
virtual ~base_histo ()
 
base_histooperator= (const base_histo &a_from)
 
bool configure (dim_t a_dim, const std::vector< bn_t > &aNumbers, const std::vector< double > &aMins, const std::vector< double > &aMaxs)
 
bool configure (dim_t a_dim, const std::vector< std::vector< double > > &a_edges)
 
void base_reset ()
 
void base_allocate ()
 
bool is_compatible (const base_histo &a_histo)
 
void base_add (const base_histo &a_histo)
 
void base_subtract (const base_histo &a_histo)
 
bool base_multiply (const base_histo &a_histo)
 
bool base_multiply (double a_factor)
 
bool base_divide (const base_histo &a_histo)
 
bool get_ith_axis_mean (dim_t a_axis, double &a_value) const
 
bool get_ith_axis_rms (dim_t a_axis, double &a_value) const
 
unsigned int get_bin_entries (const std::vector< int > &aIs) const
 
- Protected Member Functions inherited from tools::histo::histo_data< double, unsigned int, unsigned int, double >
void reset_fast_getters ()
 
 histo_data ()
 
 histo_data (const histo_data &a_from)
 
histo_dataoperator= (const histo_data &a_from)
 
virtual ~histo_data ()
 
void update_fast_getters ()
 
bool equals (const histo_data &a_from, const double &a_prec, double(*a_fabs)(double)) const
 
bool equals_TH (const histo_data &a_from, const double &a_prec, double(*a_fabs)(double), bool a_cmp_bin_Sw2) const
 
- Protected Attributes inherited from tools::histo::p1< double, unsigned int, unsigned int, double, double, double >
bool m_cut_v
 
double m_min_v
 
double m_max_v
 
vs_t m_bin_Svw
 
vs_t m_bin_Sv2w
 
- Protected Attributes inherited from tools::histo::histo_data< double, unsigned int, unsigned int, double >
std::string m_title
 
dim_t m_dimension
 
unsigned int m_bin_number
 
std::vector< unsigned int > m_bin_entries
 
std::vector< double > m_bin_Sw
 
std::vector< double > m_bin_Sw2
 
std::vector< std::vector< double > > m_bin_Sxw
 
std::vector< std::vector< double > > m_bin_Sx2w
 
std::vector< axis_tm_axes
 
std::vector< double > m_in_range_plane_Sxyw
 
std::map< std::string, std::string > m_annotations
 
unsigned int m_all_entries
 
unsigned int m_in_range_entries
 
double m_in_range_Sw
 
double m_in_range_Sw2
 
std::vector< double > m_in_range_Sxw
 
std::vector< double > m_in_range_Sx2w
 

Detailed Description

Definition at line 12 of file p1d.

Constructor & Destructor Documentation

◆ p1d() [1/6]

tools::histo::p1d::p1d ( )
inline

Definition at line 21 of file p1d.

21 :parent("",10,0,1){} //for I/O when reading.

◆ p1d() [2/6]

tools::histo::p1d::p1d ( const std::string &  a_title,
unsigned int  aXnumber,
double  aXmin,
double  aXmax 
)
inline

Definition at line 23 of file p1d.

24  :parent(a_title,aXnumber,aXmin,aXmax)
25  {}

◆ p1d() [3/6]

tools::histo::p1d::p1d ( const std::string &  a_title,
unsigned int  aXnumber,
double  aXmin,
double  aXmax,
double  aVmin,
double  aVmax 
)
inline

Definition at line 27 of file p1d.

28  :parent(a_title,aXnumber,aXmin,aXmax,aVmin,aVmax)
29  {}

◆ p1d() [4/6]

tools::histo::p1d::p1d ( const std::string &  a_title,
const std::vector< double > &  a_edges 
)
inline

Definition at line 31 of file p1d.

32  :parent(a_title,a_edges)
33  {}

◆ p1d() [5/6]

tools::histo::p1d::p1d ( const std::string &  a_title,
const std::vector< double > &  a_edges,
double  aVmin,
double  aVmax 
)
inline

Definition at line 35 of file p1d.

36  :parent(a_title,a_edges,aVmin,aVmax)
37  {}

◆ ~p1d()

virtual tools::histo::p1d::~p1d ( )
inlinevirtual

Definition at line 39 of file p1d.

39 {}

◆ p1d() [6/6]

tools::histo::p1d::p1d ( const p1d a_from)
inline

Definition at line 41 of file p1d.

41 : parent(a_from){}

Member Function Documentation

◆ operator=()

p1d& tools::histo::p1d::operator= ( const p1d a_from)
inline

Definition at line 42 of file p1d.

42  {
43  parent::operator=(a_from);
44  return *this;
45  }

◆ s_class()

static const std::string& tools::histo::p1d::s_class ( )
inlinestatic

Definition at line 15 of file p1d.

15  {
16  static const std::string s_v("tools::histo::p1d");
17  return s_v;
18  }

◆ s_cls()

const std::string& tools::histo::p1d::s_cls ( ) const
inline

Definition at line 19 of file p1d.

19 {return s_class();}

The documentation for this class was generated from the following file:
tools::histo::p1d::s_class
static const std::string & s_class()
Definition: p1d:15
tools::histo::p1< double, unsigned int, unsigned int, double, double, double >::operator=
p1 & operator=(const p1 &a_from)
Definition: p1:399