#include <NtupleVars.h>
Definition at line 117 of file NtupleVars.h.
◆ NtupleVars()
VKalVrtAthena::NtupleVars::NtupleVars |
( |
| ) |
|
|
default |
◆ ~NtupleVars()
VKalVrtAthena::NtupleVars::~NtupleVars |
( |
| ) |
|
|
default |
◆ addNewVar()
template<class T >
void VKalVrtAthena::NtupleVars::addNewVar |
( |
const std::string & |
varname | ) |
|
|
inline |
◆ branchNtuple()
void VKalVrtAthena::NtupleVars::branchNtuple |
( |
TTree * |
tree | ) |
|
◆ clear()
void VKalVrtAthena::NtupleVars::clear |
( |
| ) |
|
◆ deleteNtupleVariables()
void VKalVrtAthena::NtupleVars::deleteNtupleVariables |
( |
| ) |
|
◆ get()
template<class T >
T& VKalVrtAthena::NtupleVars::get |
( |
const std::string & |
varname | ) |
|
|
inline |
Definition at line 165 of file NtupleVars.h.
167 if( !isAvailable<T>(
varname) ) {
172 return holder->get();
174 }
catch( std::string&
varname ) {
175 std::cerr <<
"Variable " <<
varname <<
" is not found in the list!" << std::endl;
176 std::cerr <<
"Candidates are..." << std::endl;
179 char*
name = abi::__cxa_demangle(
typeid( T ).
name(), 0, 0, &
stat);
180 if( pair.second->get_typename() ==
name ) {
181 std::cerr <<
" " << pair.second->get_typename() <<
" : " << pair.first << std::endl;
◆ isAvailable()
template<class T >
bool VKalVrtAthena::NtupleVars::isAvailable |
( |
const std::string & |
varname | ) |
|
|
inline |
Definition at line 138 of file NtupleVars.h.
140 std::cerr <<
"Warning<TImprovedTree::isAvailable>: "
141 <<
"couldn't find the variable name " <<
varname
147 char*
name = abi::__cxa_demangle(
typeid( T ).
name(), 0, 0, &
stat);
149 if(
var->get_typename() ==
name ) {
154 std::cerr <<
"Info<TImprovedTree::isAvailable>: " <<
"typeid didn't match." << std::endl;
155 std::cerr <<
"Possible candidates are..." << std::endl;
156 std::cerr <<
"========" << std::endl;
157 std::cerr <<
varname <<
" (" <<
var->get_typename() <<
")" << std::endl;
158 std::cerr <<
"========" << std::endl;
◆ setupNtupleVariables()
void VKalVrtAthena::NtupleVars::setupNtupleVariables |
( |
| ) |
|
◆ m_RecoTrk_Int
◆ m_SVTrk_Int
◆ m_varHolder
std::map<std::string, BaseHolder*> VKalVrtAthena::NtupleVars::m_varHolder |
|
private |
The documentation for this class was generated from the following files: