g4tools  5.4.0
Classes | Namespaces | Macros
base_pntuple_row_wise File Reference
#include "base_pntuple"
#include "../ntuple_booking"
Include dependency graph for base_pntuple_row_wise:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tools::wroot::base_pntuple_row_wise
 

Namespaces

 tools
 inlined C code : ///////////////////////////////////
 
 tools::wroot
 

Macros

#define tools_wroot_base_pntuple_row_wise
 
#define TOOLS_WROOT_PNTUPLE_CREATE_COL(a__type)
 
#define TOOLS_WROOT_PNTUPLE_CREATE_VEC_COL(a__type)
 

Macro Definition Documentation

◆ tools_wroot_base_pntuple_row_wise

#define tools_wroot_base_pntuple_row_wise

Definition at line 5 of file base_pntuple_row_wise.

◆ TOOLS_WROOT_PNTUPLE_CREATE_COL

#define TOOLS_WROOT_PNTUPLE_CREATE_COL (   a__type)
Value:
if((*it).cls_id()==_cid(a__type())) {\
a__type* user = (a__type*)(*it).user_obj();\
if(user) {\
if(!create_column_ref<a__type>((*it).name(),*user)) {\
a_out << "tools::wroot::base_pntuple_row_wise : create_column_ref(" << (*it).name() << ") failed." << std::endl;\
safe_clear<icol>(m_cols);\
return;\
}\
} else {\
if(!create_column<a__type>((*it).name())) {\
a_out << "tools::wroot::base_pntuple_row_wise : create_column(" << (*it).name() << ") failed." << std::endl;\
safe_clear<icol>(m_cols);\
return;\
}\
}\
}

◆ TOOLS_WROOT_PNTUPLE_CREATE_VEC_COL

#define TOOLS_WROOT_PNTUPLE_CREATE_VEC_COL (   a__type)
Value:
if((*it).cls_id()==_cid_std_vector<a__type>()) {\
std::vector<a__type>* vec = (std::vector<a__type>*)(*it).user_obj();\
if(vec) {\
if(!create_column_vector_ref<a__type>((*it).name(),*vec)) {\
a_out << "tools::wroot::base_pntuple_row_wise :"\
<< " create_column_vector_ref failed for std::vector column " << sout((*it).name()) << "."\
<< std::endl;\
safe_clear<icol>(m_cols);\
return;\
}\
} else {\
if(!create_column_vector<a__type>((*it).name())) {\
a_out << "tools::wroot::base_pntuple_row_wise :"\
<< " create_column_vector failed for std::vector column " << sout((*it).name()) << "."\
<< std::endl;\
safe_clear<icol>(m_cols);\
return;\
}\
}\
}
tools::_cid
cid _cid(byte)
Definition: cids:14