Definition at line 503 of file aida_ntuple.
◆ ntuple() [1/2]
tools::aida::ntuple::ntuple |
( |
std::ostream & |
a_out, |
|
|
const std::string & |
a_title |
|
) |
| |
|
inline |
◆ ~ntuple()
virtual tools::aida::ntuple::~ntuple |
( |
| ) |
|
|
inlinevirtual |
◆ ntuple() [2/2]
tools::aida::ntuple::ntuple |
( |
const ntuple & |
a_from | ) |
|
|
inline |
◆ cast()
virtual void* tools::aida::ntuple::cast |
( |
const std::string & |
a_class | ) |
const |
|
inlinevirtual |
◆ column_max()
template<class T >
bool tools::aida::ntuple::column_max |
( |
unsigned int |
a_col, |
|
|
T & |
a_value |
|
) |
| |
|
inline |
Definition at line 619 of file aida_ntuple.
621 if(
m_cols.empty())
return false;
622 if(a_col>=
m_cols.size())
return false;
623 base_col* _base_col =
m_cols[a_col];
624 aida_col<T>* _col = safe_cast<base_col, aida_col<T> >(*_base_col);
625 if(!_col)
return false;
629 {
for(
uint64 row=0;row<_rows;row++) {
630 if(!
next()) {a_value = T();
return false;}
631 if(!_col->get_entry(v)) {}
635 a_value = mx<T>(a_value,v);
◆ column_min()
template<class T >
bool tools::aida::ntuple::column_min |
( |
unsigned int |
a_col, |
|
|
T & |
a_value |
|
) |
| |
|
inline |
Definition at line 596 of file aida_ntuple.
598 if(
m_cols.empty())
return false;
599 if(a_col>=
m_cols.size())
return false;
600 base_col* _base_col =
m_cols[a_col];
601 aida_col<T>* _col = safe_cast<base_col, aida_col<T> >(*_base_col);
602 if(!_col)
return false;
606 {
for(
uint64 row=0;row<_rows;row++) {
607 if(!
next()) {a_value = T();
return false;}
608 if(!_col->get_entry(v)) {}
612 a_value = mn<T>(a_value,v);
◆ create_col()
template<class T >
aida_col<T>* tools::aida::ntuple::create_col |
( |
const std::string & |
a_name, |
|
|
const T & |
a_def = T() |
|
) |
| |
|
inline |
Definition at line 529 of file aida_ntuple.
530 if(find_named<base_col>(
m_cols,a_name)) {
532 <<
" a column with name " << sout(a_name) <<
" already exists."
536 aida_col<T>* col =
new aida_col<T>(
m_out,a_name,a_def);
539 <<
" can't create aida_col<T> " << sout(a_name) <<
"."
◆ find_aida_base_column()
aida_base_col* tools::aida::ntuple::find_aida_base_column |
( |
const std::string & |
a_name, |
|
|
bool |
a_case_sensitive = true |
|
) |
| |
|
inline |
Definition at line 562 of file aida_ntuple.
565 return safe_cast<base_col,aida_base_col>(*col);
◆ find_column() [1/2]
template<class T >
aida_col<T>* tools::aida::ntuple::find_column |
( |
const std::string & |
a_name | ) |
|
|
inline |
Definition at line 548 of file aida_ntuple.
549 base_col* col = find_named<base_col>(
m_cols,a_name);
551 return safe_cast<base_col, aida_col<T> >(*col);
◆ find_column() [2/2]
template<class T >
bool tools::aida::ntuple::find_column |
( |
const std::string & |
a_name, |
|
|
aida_col< T > *& |
a_col, |
|
|
bool |
a_case_sensitive = true |
|
) |
| |
|
inline |
Definition at line 555 of file aida_ntuple.
557 if(!col) {a_col = 0;
return false;}
558 a_col = safe_cast<base_col, aida_col<T> >(*col);
559 return a_col?
true:
false;
◆ get_row()
bool tools::aida::ntuple::get_row |
( |
| ) |
const |
|
inline |
Definition at line 568 of file aida_ntuple.
571 if(!(*it)->fetch_entry()) status =
false;
◆ id_class()
static cid tools::aida::ntuple::id_class |
( |
| ) |
|
|
inlinestatic |
◆ operator=()
ntuple& tools::aida::ntuple::operator= |
( |
const ntuple & |
a_from | ) |
|
|
inline |
◆ s_class()
static const std::string& tools::aida::ntuple::s_class |
( |
| ) |
|
|
inlinestatic |
Definition at line 507 of file aida_ntuple.
508 static const std::string s_v(
"tools::aida::ntuple");
◆ s_cls()
virtual const std::string& tools::aida::ntuple::s_cls |
( |
| ) |
const |
|
inlinevirtual |
◆ set_binding()
Definition at line 576 of file aida_ntuple.
580 if((*itc)->name()==(*itb).name()) {
581 (*itc)->set_user_variable((*itb).user_obj());
586 a_out <<
"tools::aida::ntuple :"
587 <<
" binding name " << sout((*itb).name()) <<
" does not match any ntuple column."
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/aida_ntuple