|
static const std::string & | s_class () |
|
Definition at line 19 of file fit2plot.
◆ fit2plot() [1/2]
tools::sg::fit2plot::fit2plot |
( |
const std::vector< std::string > & |
a_names, |
|
|
const std::vector< double > & |
a_output |
|
) |
| |
|
inline |
◆ ~fit2plot()
virtual tools::sg::fit2plot::~fit2plot |
( |
| ) |
|
|
inlinevirtual |
◆ fit2plot() [2/2]
tools::sg::fit2plot::fit2plot |
( |
const fit2plot & |
a_from | ) |
|
|
inline |
◆ cast()
virtual void* tools::sg::fit2plot::cast |
( |
const std::string & |
a_class | ) |
const |
|
inlinevirtual |
◆ copy()
virtual plottable* tools::sg::fit2plot::copy |
( |
| ) |
const |
|
inlinevirtual |
◆ infos()
virtual void tools::sg::fit2plot::infos |
( |
const std::string & |
a_opts, |
|
|
std::string & |
a_sinfos |
|
) |
| const |
|
inlinevirtual |
Implements tools::sg::plottable.
Definition at line 43 of file fit2plot.
45 std::string f_lf(
"\n");
46 std::vector<std::string> ws;
47 words(a_opts,
" ",
false,ws);
48 std::vector<std::string>::const_iterator it;
50 bool show_fit_ndf =
false;
51 {
for(it=ws.begin();it!=ws.end();++it) {
52 if((*it)==
"fit_ndf") {show_fit_ndf =
true;
break;}
54 bool show_fit_errors =
false;
55 {
for(it=ws.begin();it!=ws.end();++it) {
56 if((*it)==
"fit_errors") {show_fit_errors =
true;
break;}
59 for(it=ws.begin();it!=ws.end();++it) {
60 if(((*it)==
"name") &&
m_name.size()) {
61 if(a_sinfos.size()) a_sinfos += f_lf;
66 }
else if((*it)==
"fit_quality") {
68 if(a_sinfos.size()) a_sinfos += f_lf;
69 a_sinfos +=
"[h]^2! / ndf";
71 if(!numas<double>(
m_output[0],a_sinfos)){}
73 if(!numas<double>(
m_output[1],a_sinfos)){}
75 if(a_sinfos.size()) a_sinfos += f_lf;
78 if(!numas<double>(
m_output[0],a_sinfos)){}
81 }
else if((*it)==
"fit_parameters") {
83 for(
size_t iparam=0;iparam<nparam;iparam++) {
85 if(a_sinfos.size()) a_sinfos += f_lf;
88 if(!numas<double>(
m_output[2+4*iparam+0],a_sinfos)){}
90 if(!numas<double>(
m_output[2+4*iparam+1],a_sinfos)){}
92 if(a_sinfos.size()) a_sinfos += f_lf;
95 if(!numas<double>(
m_output[2+4*iparam+0],a_sinfos)){}
◆ is_valid()
virtual bool tools::sg::fit2plot::is_valid |
( |
| ) |
const |
|
inlinevirtual |
◆ legend()
virtual const std::string& tools::sg::fit2plot::legend |
( |
| ) |
const |
|
inlinevirtual |
◆ name()
virtual const std::string& tools::sg::fit2plot::name |
( |
| ) |
const |
|
inlinevirtual |
◆ operator=()
◆ s_class()
static const std::string& tools::sg::fit2plot::s_class |
( |
| ) |
|
|
inlinestatic |
◆ set_legend()
virtual void tools::sg::fit2plot::set_legend |
( |
const std::string & |
a_s | ) |
|
|
inlinevirtual |
◆ set_name()
virtual void tools::sg::fit2plot::set_name |
( |
const std::string & |
a_s | ) |
|
|
inlinevirtual |
◆ title()
virtual const std::string& tools::sg::fit2plot::title |
( |
| ) |
const |
|
inlinevirtual |
◆ m_legend
std::string tools::sg::fit2plot::m_legend |
|
protected |
◆ m_name
std::string tools::sg::fit2plot::m_name |
|
protected |
◆ m_names
std::vector<std::string> tools::sg::fit2plot::m_names |
|
protected |
◆ m_output
std::vector<double> tools::sg::fit2plot::m_output |
|
protected |
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/sg/fit2plot