g4tools  5.4.0
Classes | Namespaces | Macros
wcsv_ntuple File Reference
#include "vfind"
#include "vmanip"
#include <ostream>
#include "scast"
#include "ntuple_booking"
#include "sout"
Include dependency graph for wcsv_ntuple:

Go to the source code of this file.

Classes

class  tools::wcsv::ntuple
 
class  tools::wcsv::ntuple::icol
 
class  tools::wcsv::ntuple::column_ref< T >
 
class  tools::wcsv::ntuple::column< T >
 
class  tools::wcsv::ntuple::std_vector_column< T >
 

Namespaces

 tools
 inlined C code : ///////////////////////////////////
 
 tools::wcsv
 

Macros

#define tools_wcsv_ntuple
 
#define TOOLS_WCSV_NTUPLE_CREATE_COL(a__type)
 
#define TOOLS_WCSV_NTUPLE_CREATE_VEC_COL(a__type)
 

Macro Definition Documentation

◆ tools_wcsv_ntuple

#define tools_wcsv_ntuple

Definition at line 5 of file wcsv_ntuple.

◆ TOOLS_WCSV_NTUPLE_CREATE_COL

#define TOOLS_WCSV_NTUPLE_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::wcsv_ntuple::wcsv_ntuple : 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::wcsv_ntuple::wcsv_ntuple : create_column(" << (*it).name() << ") failed." << std::endl;\
safe_clear<icol>(m_cols);\
return;\
}\
}\
}

◆ TOOLS_WCSV_NTUPLE_CREATE_VEC_COL

#define TOOLS_WCSV_NTUPLE_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<a__type>((*it).name(),*vec)) {\
a_out << "tools::wcsv_ntuple::wcsv_ntuple : create_column(" << (*it).name() << ") failed." << std::endl;\
safe_clear<icol>(m_cols);\
return;\
}\
} else {\
a_out << "tools::wcsv_ntuple :"\
<< " for std::vector column " << sout((*it).name())\
<< ", the user vector pointer is null."\
<< std::endl;\
safe_clear<icol>(m_cols);\
return;\
}\
}
tools::_cid
cid _cid(byte)
Definition: cids:14