15 file =
new TFile(file_name.c_str(),
"RECREATE");
17 tree =
new TTree(tree_name.c_str(), tree_name.c_str());
24 tree =
new TTree(tree_name.c_str(), tree_name.c_str());
41 tree->Branch(variable_name.c_str(), &
variables[variable_name], (variable_name +
"/D").c_str());
55 tree->Branch(variable_name.c_str(), &
vectors[variable_name]);
59 vectors[variable_name].push_back(value);
64 auto search =
variables.find(variable_name);
65 if (search !=
variables.end())
return true;
88 element.second = -9999;
92 element.second.clear();
std::vector< double > getVector(std::string variable_name)
description
void addVector(std::string vector_name)
description
void addVariable(std::string variable_name)
description
std::map< std::string, std::vector< double > > vectors
std::map< std::string, double > variables
FlatTupleMaker(std::string file_name, std::string tree_name)
Constructor.
void addToVector(std::string variable_name, double value)
description
bool hasVariable(std::string variable_name)
description
void addString(std::string variable_name)
description
std::map< std::string, std::string > string_variables