ATLAS Offline Software
|
Specialization of RootAuxDynStore for reading Aux Dynamic attributes from RNTuple. More...
Classes | |
struct | AuxInfo |
class | IRNTupleAuxDynWriter |
Interface for a RNTuple-based Writer that handles AuxDyn attributes Works in conjuction with the generic writer. More... | |
class | IRootAuxDynReader |
class | IRootAuxDynWriter |
Interface for an AuxDyn Writer - TTree based. More... | |
class | RNTupleAuxDynReader |
class | RNTupleAuxDynWriter |
class | TBranchAuxDynWriter |
Typedefs | |
typedef std::tuple< std::string, std::string, void * > | attrDataTuple |
Functions | |
bool | endsWithAuxPostfix (std::string_view str) |
Check if a string ends with AUX_POSTFIX. More... | |
bool | removeAuxPostfix (std::string &str) |
if a string ends with AUX_POSTFIX then remove it More... | |
std::string | auxBranchName (const std::string &attr_name, const std::string &baseBranchName) |
Construct branch name for a given dynamic attribute. More... | |
std::string | auxFieldName (const std::string &attr_name, const std::string &baseName) |
Construct field name for a given dynamic attribute. More... | |
bool | hasAuxStore (std::string_view fieldname, TClass *tc) |
check if a field/branch with fieldname and type tc has IAuxStore interface More... | |
bool | isAuxDynBranch (TBranch *branch) |
Check is a branch holds AuxStore objects. More... | |
std::string | getKeyFromBranch (TBranch *branch) |
Exctract the Aux object SG Key from the branch name. More... | |
std::unique_ptr< IRootAuxDynReader > | getBranchAuxDynReader (TTree *, TBranch *) |
std::unique_ptr< IRootAuxDynWriter > | getBranchAuxDynWriter (TTree *tree, int bufferSize, int splitLevel, int offsettab_len, bool do_branch_fill) |
generate TBranchAuxDynWriter tree -> destination tree do_branch_fill -> flag telling to Fill each TBranch immediately More... | |
std::unique_ptr< IRootAuxDynReader > | getNTupleAuxDynReader (const std::string &field_name, const std::string &field_type, RNTupleReader *reader) |
std::unique_ptr< IRNTupleAuxDynWriter > | getNTupleAuxDynWriter () |
std::unique_ptr< IRNTupleWriter > | getNTupleWriter (TFile *, const std::string &ntupleName, bool enableBufferedWrite, bool enableMetrics) |
Variables | |
constexpr char | AUX_POSTFIX [] = "Aux." |
Common post-fix for the names of auxiliary containers in StoreGate. More... | |
constexpr size_t | AUX_POSTFIX_LEN = sizeof(AUX_POSTFIX)-1 |
constexpr char | AUXDYN_POSTFIX [] = "Dyn." |
constexpr size_t | AUXDYN_POSTFIX_LEN = sizeof(AUXDYN_POSTFIX)-1 |
Specialization of RootAuxDynStore for reading Aux Dynamic attributes from RNTuple.
typedef std::tuple<std::string, std::string, void*> RootAuxDynIO::attrDataTuple |
Definition at line 62 of file RootAuxDynIO.h.
|
inline |
Construct branch name for a given dynamic attribute.
attr_name | the name of the attribute |
baseBranchName | branch name for the main AuxStore object |
Definition at line 60 of file RootAuxDynDefs.h.
|
inline |
Construct field name for a given dynamic attribute.
attr_name | the name of the attribute |
baseBranchName | branch name for the main AuxStore object |
Definition at line 69 of file RootAuxDynDefs.h.
|
inline |
Check if a string ends with AUX_POSTFIX.
str | the string to check |
Definition at line 21 of file RootAuxDynDefs.h.
std::unique_ptr< RootAuxDynIO::IRootAuxDynReader > RootAuxDynIO::getBranchAuxDynReader | ( | TTree * | tree, |
TBranch * | branch | ||
) |
Definition at line 80 of file RootAuxDynIO.cxx.
std::unique_ptr< RootAuxDynIO::IRootAuxDynWriter > RootAuxDynIO::getBranchAuxDynWriter | ( | TTree * | tree, |
int | bufferSize, | ||
int | splitLevel, | ||
int | offsettab_len, | ||
bool | do_branch_fill | ||
) |
generate TBranchAuxDynWriter tree -> destination tree do_branch_fill -> flag telling to Fill each TBranch immediately
Definition at line 95 of file RootAuxDynIO.cxx.
std::string RootAuxDynIO::getKeyFromBranch | ( | TBranch * | branch | ) |
Exctract the Aux object SG Key from the branch name.
branch | TBranch with Key in its name |
Definition at line 40 of file RootAuxDynIO.cxx.
std::unique_ptr< RootAuxDynIO::IRootAuxDynReader > RootAuxDynIO::getNTupleAuxDynReader | ( | const std::string & | field_name, |
const std::string & | field_type, | ||
RNTupleReader * | reader | ||
) |
Definition at line 85 of file RootAuxDynIO.cxx.
std::unique_ptr< RootAuxDynIO::IRNTupleAuxDynWriter > RootAuxDynIO::getNTupleAuxDynWriter | ( | ) |
Definition at line 100 of file RootAuxDynIO.cxx.
std::unique_ptr<IRNTupleWriter> RootAuxDynIO::getNTupleWriter | ( | TFile * | , |
const std::string & | ntupleName, | ||
bool | enableBufferedWrite, | ||
bool | enableMetrics | ||
) |
bool RootAuxDynIO::hasAuxStore | ( | std::string_view | fieldname, |
TClass * | tc | ||
) |
check if a field/branch with fieldname and type tc has IAuxStore interface
Definition at line 30 of file RootAuxDynIO.cxx.
bool RootAuxDynIO::isAuxDynBranch | ( | TBranch * | branch | ) |
Check is a branch holds AuxStore objects.
branch | TBranch to check |
Definition at line 60 of file RootAuxDynIO.cxx.
|
inline |
if a string ends with AUX_POSTFIX then remove it
str | the string to modify |
Definition at line 49 of file RootAuxDynDefs.h.
|
constexpr |
Common post-fix for the names of auxiliary containers in StoreGate.
Definition at line 12 of file RootAuxDynDefs.h.
|
constexpr |
Definition at line 13 of file RootAuxDynDefs.h.
|
constexpr |
Definition at line 14 of file RootAuxDynDefs.h.
|
constexpr |
Definition at line 15 of file RootAuxDynDefs.h.