ATLAS Offline Software
Loading...
Searching...
No Matches
Utils.h File Reference
#include "SGCore/sgkey_t.h"
#include <TDataType.h>
#include <TTree.h>
#include <string>
#include <string_view>
#include <typeinfo>
#include <stdexcept>
#include <stdint.h>
Include dependency graph for Control/xAODRootAccess/xAODRootAccess/tools/Utils.h:

Go to the source code of this file.

Namespaces

namespace  xAOD
 ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
namespace  xAOD::Utils

Functions

SG::sgkey_t xAOD::Utils::hash (const std::string &name)
 This function provides a hashed version of the key (branch) names used in the xAOD file, similar to how Athena saves hashed numbers in persistent ElementLinks.
std::string xAOD::Utils::dynBranchPrefix (const std::string &key)
 This function is used to figure out what to name dynamic auxiliary branches coming from a container called key.
std::string xAOD::Utils::dynFieldPrefix (const std::string &key)
 This function is used to figure out what to name dynamic auxiliary field coming from a container called key.
const std::type_info & xAOD::Utils::getTypeInfo (EDataType type)
 This function is used when reading a primitive branch from an input file without the user explicitly asking for it.
const std::type_info & xAOD::Utils::getTypeInfo (std::string_view typeName)
 Get the type info of a primitive variable, in an RNTuple.
bool xAOD::Utils::isPrimitiveType (std::string_view typeName)
 Check if the type name describes a primitive type.
char xAOD::Utils::rootType (char typeidType)
 This function is used internally in the code when creating primitive dynamic auxiliary branches.
std::string xAOD::Utils::getTypeName (const std::type_info &ti)
 This function is necessary in order to create type names that ROOT can understand.
std::string xAOD::Utils::getFirstBranchMatch (TTree *tree, const std::string &pre)
 This function is used to search for a branch in a TTree that contains a given substring.