#include <Histo2D.h>
|
| | Histo2D (TH2D *histo) |
| |
| | ~Histo2D () |
| |
| double | minX () |
| |
| double | maxX () |
| |
| double | minY () |
| |
| double | maxY () |
| |
| double | minZ () |
| |
| double | maxZ () |
| |
| std::vector< double > | bins () |
| |
| std::vector< double > | xbins () |
| |
| std::vector< double > | ybins () |
| |
| unsigned long | nxbins () |
| |
| unsigned long | nybins () |
| |
| void | statistics (double &, double &, double &) |
| |
| | Object () |
| | Standard constructor. More...
|
| |
| virtual | ~Object () |
| | Destructor. More...
|
| |
| std::string | name () const |
| |
| std::string | type () |
| |
| unsigned char | id () |
| |
| std::string | title () |
| |
| void | msgSvc (int level, std::string msg, std::string name) |
| |
| void | msg (std::string mymsg) |
| |
| void | verbose (std::string mymsg) |
| |
| void | debug (std::string mymsg) |
| |
| void | info (std::string mymsg) |
| |
| void | warning (std::string mymsg) |
| |
| void | error (std::string mymsg) |
| |
| void | fatal (std::string mymsg) |
| |
| void | msg (std::string mymsg, std::string name) |
| |
| void | verbose (std::string mymsg, std::string name) |
| |
| void | debug (std::string mymsg, std::string name) |
| |
| void | info (std::string mymsg, std::string name) |
| |
| void | warning (std::string mymsg, std::string name) |
| |
| void | error (std::string mymsg, std::string name) |
| |
| void | fatal (std::string mymsg, std::string name) |
| |
| void | setName (std::string name) |
| |
| void | setType (std::string type) |
| |
| void | setId (unsigned char id) |
| |
| void | setTitle (std::string title) |
| |
| void | setDllName (std::string dllName) |
| |
| std::string | dllName () |
| |
| | Attrib () |
| | Standard constructor. More...
|
| |
| virtual | ~Attrib () |
| | Destructor. More...
|
| |
| bool | is (int attribut) |
| |
| void | add (int attribut) |
| |
| void | remove (int attribut) |
| |
| std::string | attributs () |
| |
Definition at line 28 of file Histo2D.h.
◆ Histo2D()
| Histo2D::Histo2D |
( |
TH2D * |
histo | ) |
|
Definition at line 22 of file Histo2D.cpp.
References m_bins, m_content, m_maxX, m_maxY, m_maxZ, m_mean, m_minX, m_minY, m_minZ, m_nxbins, m_nybins, m_rms, m_xcenters, m_ycenters, and Object::setTitle().
28 setTitle(std::string(histo -> GetTitle()));
30 m_minX = histo->GetXaxis()->GetXmin();
31 m_maxX = histo->GetXaxis()->GetXmax();
32 m_minY = histo->GetYaxis()->GetXmin();
33 m_maxY = histo->GetYaxis()->GetXmax();
35 m_minZ = histo->GetMinimum();
36 m_maxZ = histo->GetMaximum();
38 unsigned long nxbin=0;
39 unsigned long nybin=0;
40 for (nybin=0;nxbin<
m_nybins; ++nybin){
46 for (nxbin=0;nxbin<
m_nxbins; ++nxbin){
47 m_bins.push_back(histo->GetBinContent(nybin*nxbin+1+2*(nybin-1)));
48 m_xcenters.push_back(histo->GetXaxis()->GetBinCenter(nxbin+1));
49 m_ycenters.push_back(histo->GetYaxis()->GetBinCenter(nybin+1));
65 m_rms = histo->GetRMS();
std::vector< double > m_xcenters
std::vector< double > m_ycenters
void setTitle(std::string title)
std::vector< double > m_bins
◆ ~Histo2D()
◆ bins()
| std::vector<double> Histo2D::bins |
( |
| ) |
|
|
inline |
◆ maxX()
◆ maxY()
◆ maxZ()
◆ minX()
◆ minY()
◆ minZ()
◆ nxbins()
| unsigned long Histo2D::nxbins |
( |
| ) |
|
|
inline |
◆ nybins()
| unsigned long Histo2D::nybins |
( |
| ) |
|
|
inline |
◆ statistics()
| void Histo2D::statistics |
( |
double & |
content, |
|
|
double & |
mean, |
|
|
double & |
rms |
|
) |
| |
◆ xbins()
| std::vector<double> Histo2D::xbins |
( |
| ) |
|
|
inline |
◆ ybins()
| std::vector<double> Histo2D::ybins |
( |
| ) |
|
|
inline |
◆ m_bins
| std::vector<double> Histo2D::m_bins |
|
private |
◆ m_content
| double Histo2D::m_content |
|
private |
◆ m_infini
◆ m_maxX
◆ m_maxY
◆ m_maxZ
◆ m_mean
◆ m_minX
◆ m_minY
◆ m_minZ
◆ m_nxbins
| unsigned long Histo2D::m_nxbins |
|
private |
◆ m_nybins
| unsigned long Histo2D::m_nybins |
|
private |
◆ m_overflow
| double Histo2D::m_overflow |
|
private |
◆ m_rms
◆ m_underflow
| double Histo2D::m_underflow |
|
private |
◆ m_xcenters
| std::vector<double> Histo2D::m_xcenters |
|
private |
◆ m_ycenters
| std::vector<double> Histo2D::m_ycenters |
|
private |
◆ m_zero
The documentation for this class was generated from the following files:
- /home/eleclhcb/LHCb/lbcat-cmake/CatKernel/inc/Histo2D.h
- /home/eleclhcb/LHCb/lbcat-cmake/CatKernel/src/Histo2D.cpp