ATLAS Offline Software
Functions
VKalVrtAthena::varHolder_detail Namespace Reference

Functions

template<typename T >
void clear (T &var)
 
template<typename T >
void clear (std::vector< T > &var)
 
template<typename T >
void clear (std::vector< std::vector< T > > &var)
 
template<typename T >
void branch_tree (const std::string &name, const std::string &type_name, TTree *tree, T *var)
 
template<typename T >
void branch_tree (const std::string &name, const std::string &type_name, TTree *tree, std::vector< T > *var)
 

Function Documentation

◆ branch_tree() [1/2]

template<typename T >
void VKalVrtAthena::varHolder_detail::branch_tree ( const std::string &  name,
const std::string &  type_name,
TTree *  tree,
std::vector< T > *  var 
)

Definition at line 79 of file NtupleVars.h.

80  { tree->Branch( name.c_str(), type_name.c_str(), var ); }

◆ branch_tree() [2/2]

template<typename T >
void VKalVrtAthena::varHolder_detail::branch_tree ( const std::string &  name,
const std::string &  type_name,
TTree *  tree,
T *  var 
)

Definition at line 75 of file NtupleVars.h.

76  { tree->Branch( name.c_str(), var, ( name+tree_str_map.at(type_name) ).c_str() ); }

◆ clear() [1/3]

template<typename T >
void VKalVrtAthena::varHolder_detail::clear ( std::vector< std::vector< T > > &  var)

Definition at line 50 of file NtupleVars.h.

50  {
51  for( auto & v : var ) v.clear();
52  var.clear();
53  }

◆ clear() [2/3]

template<typename T >
void VKalVrtAthena::varHolder_detail::clear ( std::vector< T > &  var)

Definition at line 49 of file NtupleVars.h.

49 { var.clear(); }

◆ clear() [3/3]

template<typename T >
void VKalVrtAthena::varHolder_detail::clear ( T &  var)

Definition at line 48 of file NtupleVars.h.

48 { var = 0; }
beamspotnt.var
var
Definition: bin/beamspotnt.py:1394
tree
TChain * tree
Definition: tile_monitor.h:30
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
python.PyAthena.v
v
Definition: PyAthena.py:154