ATLAS Offline Software
|
Class creating (a) transient tree(s) from xAOD files. More...
#include <TTreeMgr.h>
Public Member Functions | |
TTreeMgr (TEvent::EAuxMode mode=TEvent::kUndefinedAccess) | |
Constructor, with an optional access mode selector. More... | |
TEvent & | event () |
Get the TEvent object being used by the transient tree(s) More... | |
Function(s) setting up the input(s) for the tree(s) | |
StatusCode | readFrom (::TFile *file, ::Bool_t useTreeCache=kTRUE, const char *treeName="CollectionTree") |
Read from the file given to the function. More... | |
Function(s) used for filtering the contents of the trees | |
StatusCode | enableEventObj (const std::vector< std::string > &names) |
Object/container names that should be used in the event tree. More... | |
StatusCode | suppressEventObj (const std::vector< std::string > &names) |
Object/container names that should be vetoed from the event tree. More... | |
StatusCode | enableMetaObj (const std::vector< std::string > &names) |
Object/container names that should be used in the metadata tree. More... | |
StatusCode | suppressMetaObj (const std::vector< std::string > &names) |
Object/container names that should be suppressed in the metadata tree. More... | |
Transient tree accessors | |
::TTree * | eventTree () |
Get a pointer to the transient event tree. More... | |
::TTree * | metaTree () |
Get a pointer to the transient metadata tree. More... | |
Private Attributes | |
std::unique_ptr< xAODTEventTree > | m_eventTree |
The transient event tree. More... | |
std::unique_ptr< xAODTMetaTree > | m_metaTree |
The transient metadata tree. More... | |
TEvent | m_event |
The internal TEvent object. More... | |
std::string | m_eventTreeName |
The name of the event tree to create. More... | |
std::vector< std::string > | m_enableEventObj |
Names to select for the event tree. More... | |
std::vector< std::string > | m_suppressEventObj |
Names to suppress from the event tree. More... | |
std::vector< std::string > | m_enableMetaObj |
Names to select for the metatada tree. More... | |
std::vector< std::string > | m_suppressMetaObj |
Names to suppress from the metadata tree. More... | |
Class creating (a) transient tree(s) from xAOD files.
This class is a replacement for the many MakeTransientTree(...) functions used earlier. It can be used to create a transient tree describing the event tree, and one describing the metadata tree of the input file(s).
Definition at line 34 of file TTreeMgr.h.
xAOD::TTreeMgr::TTreeMgr | ( | TEvent::EAuxMode | mode = TEvent::kUndefinedAccess | ) |
StatusCode xAOD::TTreeMgr::enableEventObj | ( | const std::vector< std::string > & | names | ) |
Object/container names that should be used in the event tree.
Definition at line 58 of file TTreeMgr.cxx.
StatusCode xAOD::TTreeMgr::enableMetaObj | ( | const std::vector< std::string > & | names | ) |
Object/container names that should be used in the metadata tree.
Definition at line 94 of file TTreeMgr.cxx.
TEvent & xAOD::TTreeMgr::event | ( | ) |
Get the TEvent object being used by the transient tree(s)
Definition at line 344 of file TTreeMgr.cxx.
TTree * xAOD::TTreeMgr::eventTree | ( | ) |
TTree * xAOD::TTreeMgr::metaTree | ( | ) |
StatusCode xAOD::TTreeMgr::readFrom | ( | ::TFile * | file, |
::Bool_t | useTreeCache = kTRUE , |
||
const char * | treeName = "CollectionTree" |
||
) |
StatusCode xAOD::TTreeMgr::suppressEventObj | ( | const std::vector< std::string > & | names | ) |
Object/container names that should be vetoed from the event tree.
Definition at line 76 of file TTreeMgr.cxx.
StatusCode xAOD::TTreeMgr::suppressMetaObj | ( | const std::vector< std::string > & | names | ) |
Object/container names that should be suppressed in the metadata tree.
Definition at line 112 of file TTreeMgr.cxx.
|
private |
Names to select for the event tree.
Definition at line 91 of file TTreeMgr.h.
|
private |
Names to select for the metatada tree.
Definition at line 96 of file TTreeMgr.h.
|
private |
The internal TEvent object.
Definition at line 85 of file TTreeMgr.h.
|
private |
The transient event tree.
Definition at line 80 of file TTreeMgr.h.
|
private |
The name of the event tree to create.
Definition at line 88 of file TTreeMgr.h.
|
private |
The transient metadata tree.
Definition at line 82 of file TTreeMgr.h.
|
private |
Names to suppress from the event tree.
Definition at line 93 of file TTreeMgr.h.
|
private |
Names to suppress from the metadata tree.
Definition at line 98 of file TTreeMgr.h.