CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
unrolledHisto Struct Reference

#include <OutPVtrends.h>

Public Member Functions

std::vector< double > get_bin_contents ()
 
double get_integral ()
 
unsigned int get_n_bins ()
 
double get_y_max ()
 
double get_y_min ()
 
 unrolledHisto ()
 
 unrolledHisto (const double &y_min, const double &y_max, const unsigned int &n_bins, const std::vector< double > &bincontents)
 

Public Attributes

std::vector< double > m_bincontents
 
unsigned int m_n_bins
 
double m_y_max
 
double m_y_min
 

Detailed Description

Definition at line 48 of file OutPVtrends.h.

Constructor & Destructor Documentation

◆ unrolledHisto() [1/2]

unrolledHisto::unrolledHisto ( )
inline

Definition at line 54 of file OutPVtrends.h.

References m_bincontents, m_n_bins, m_y_max, and m_y_min.

54  {
55  m_y_min = 0.;
56  m_y_max = 0.;
57  m_n_bins = 0;
58  m_bincontents.clear();
59  } // first constructor empty
unsigned int m_n_bins
Definition: OutPVtrends.h:51
double m_y_min
Definition: OutPVtrends.h:49
double m_y_max
Definition: OutPVtrends.h:50
std::vector< double > m_bincontents
Definition: OutPVtrends.h:52

◆ unrolledHisto() [2/2]

unrolledHisto::unrolledHisto ( const double &  y_min,
const double &  y_max,
const unsigned int &  n_bins,
const std::vector< double > &  bincontents 
)
inline

Definition at line 61 of file OutPVtrends.h.

References m_bincontents, m_n_bins, m_y_max, and m_y_min.

64  {
65  m_y_min = y_min;
66  m_y_max = y_max;
67  m_n_bins = n_bins;
68  m_bincontents = bincontents;
69  } //look, a constructor
unsigned int m_n_bins
Definition: OutPVtrends.h:51
double m_y_min
Definition: OutPVtrends.h:49
double m_y_max
Definition: OutPVtrends.h:50
std::vector< double > m_bincontents
Definition: OutPVtrends.h:52

Member Function Documentation

◆ get_bin_contents()

std::vector<double> unrolledHisto::get_bin_contents ( )
inline

Definition at line 77 of file OutPVtrends.h.

References m_bincontents.

77 { return m_bincontents; }
std::vector< double > m_bincontents
Definition: OutPVtrends.h:52

◆ get_integral()

double unrolledHisto::get_integral ( )
inline

Definition at line 79 of file OutPVtrends.h.

References m_bincontents, and runTheMatrix::ret.

79  {
80  double ret(0.);
81  for (const auto &binc : m_bincontents) {
82  ret += binc;
83  }
84  return ret;
85  }
ret
prodAgent to be discontinued
std::vector< double > m_bincontents
Definition: OutPVtrends.h:52

◆ get_n_bins()

unsigned int unrolledHisto::get_n_bins ( )
inline

Definition at line 75 of file OutPVtrends.h.

References m_n_bins.

75 { return m_n_bins; }
unsigned int m_n_bins
Definition: OutPVtrends.h:51

◆ get_y_max()

double unrolledHisto::get_y_max ( )
inline

Definition at line 73 of file OutPVtrends.h.

References m_y_max.

73 { return m_y_max; }
double m_y_max
Definition: OutPVtrends.h:50

◆ get_y_min()

double unrolledHisto::get_y_min ( )
inline

Definition at line 71 of file OutPVtrends.h.

References m_y_min.

71 { return m_y_min; }
double m_y_min
Definition: OutPVtrends.h:49

Member Data Documentation

◆ m_bincontents

std::vector<double> unrolledHisto::m_bincontents

Definition at line 52 of file OutPVtrends.h.

Referenced by get_bin_contents(), get_integral(), and unrolledHisto().

◆ m_n_bins

unsigned int unrolledHisto::m_n_bins

Definition at line 51 of file OutPVtrends.h.

Referenced by get_n_bins(), and unrolledHisto().

◆ m_y_max

double unrolledHisto::m_y_max

Definition at line 50 of file OutPVtrends.h.

Referenced by get_y_max(), and unrolledHisto().

◆ m_y_min

double unrolledHisto::m_y_min

Definition at line 49 of file OutPVtrends.h.

Referenced by get_y_min(), and unrolledHisto().