 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef XAODROOTACCESS_TEVENT_H
6 #define XAODROOTACCESS_TEVENT_H
19 #include <string_view>
39 class TChainStateTracker;
61 friend class ::xAODTEventBranch;
62 friend class ::xAODTMetaBranch;
130 ::Int_t
getFile(::Long64_t
file, ::Int_t getall = 0);
148 std::vector<std::string>& vkeys,
168 const std::string&
key,
bool overwrite,
bool metadata,
169 bool isOwner)
override;
215 #endif // XAODROOTACCESS_TEVENT_H
::Int_t m_inTreeNumber
The number of the currently open tree in the input chain.
bool m_inTreeMissing
Internal status flag showing that an input file is open, but it doesn't contain an event tree.
StatusCode finishWritingTo(::TFile *file)
Finish writing to an output file.
Class creating (a) transient tree(s) from xAOD files.
std::unique_ptr< TChainStateTracker > m_inChainTracker
Optional object for tracking the state changes of an input TChain.
TEvent(EAuxMode mode=kClassAccess)
Default constructor.
EAuxMode m_auxMode
The auxiliary access mode.
StatusCode record(void *obj, const std::string &typeName, const std::string &key, bool overwrite, bool metadata, bool isOwner) override
Record an object into a connected output file.
@ kAthenaAccess
Access containers/objects like Athena does.
::Int_t getFile(::Long64_t file, ::Int_t getall=0)
Load the first event for a given file from the input TChain.
::TChain * m_inChain
The (optional) chain provided as input.
StatusCode getNames(const std::string &targetClassName, std::vector< std::string > &vkeys, bool metadata) const override
Function determining the list keys associated with a type name.
bool hasInput() const override
Check if an input file is connected to the object.
"ROOT @c TTree implementation" of IAuxStore
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
virtual ~TEvent()
Destructor.
Interface class for the "manager classes".
@ kClassAccess
Access auxiliary data using the aux containers.
Select isolated Photons, Electrons and Muons.
::TTree * m_inMetaTree
Pointer to the metadata tree in the input file.
StatusCode connectAux(const std::string &prefix, bool standalone) override
Function setting up access to a set of auxiliary branches.
bool hasOutput() const override
Check if an output file is connected to the object.
StatusCode connectMetaAux(const std::string &prefix, bool standalone) override
Function setting up access to a set of auxiliary branches for a metadata object.
EAuxMode auxMode() const
Get what auxiliary access mode the object was constructed with.
AuxStoreType
Type of the auxiliary store.
void ErrorHandler ATLAS_NOT_THREAD_SAFE(Int_t level, Bool_t abort, const char *location, const char *message)
Function filtering the warnings coming from ROOT.
::TTree * m_inTree
The main tree that we are reading from.
::Long64_t getEntries() const
Get how many entries are available from the current input file(s)
::StatusCode StatusCode
StatusCode definition for legacy code.
::Int_t getEntry(::Long64_t entry, ::Int_t getall=0)
Function loading a given entry of the input TTree.
Algorithm writing an xAOD output file.
StatusCode record(T *obj, const std::string &key)
Add an output object to the event.
static const char *const EVENT_TREE_NAME
Default name of the event tree.
std::unique_ptr<::TTree > m_outTree
The tree that we are writing to.
friend ::TTree * MakeTransientTree(TEvent &, const char *)
StatusCode readFrom(::TFile *file, bool useTreeCache=true, std::string_view treeName=EVENT_TREE_NAME)
Connect the object to a new input file.
StatusCode initStats()
Function to initialise the statistics for all Tree content.
Manager for EDM objects created by ROOT.
Specialised class for browsing xAOD event interface objects in ROOT.
::Int_t fill()
Function filling one event into the output tree.
Helper class for merging xAOD files.
Interface for non-const operations on an auxiliary store.
StatusCode putAux(::TTree &outTree, TVirtualManager &mgr, bool metadata)
Function saving the dynamically created auxiliary properties.
StatusCode setUpDynamicStore(TObjectManager &mgr, ::TTree *tree)
Function adding dynamic variable reading capabilities to an auxiliary store object.
EAuxMode
Auxiliary store "mode".
::Long64_t getFiles() const
Get how many files are available on the currently defined input.
def silent(func)
Redirect stdout/err to /dev/null Useful wrapper to get rid of ROOT verbosity...
::Long64_t m_entry
The entry to look at from the input tree.
StatusCode connectMetaObject(const std::string &key, bool silent) override
Function setting up access to a particular metadata object.
SG::IAuxStore * recordAux(const std::string &key, SG::IAuxStoreHolder::AuxStoreType type=SG::IAuxStoreHolder::AST_ContainerStore)
Add an auxiliary store object to the output.
StatusCode setAuxStore(const std::string &key, Details::IObjectManager &mgr, bool metadata) override
Function connecting a DV object to its auxiliary store.
@ kBranchAccess
Access auxiliary data branch-by-branch.
StatusCode connectObject(const std::string &key, bool silent) override
Function setting up access to a particular object.
Manager for EDM objects created by ROOT.
Base class for the event (xAOD::TEvent and xAOD::REvent) classes.
Tool for accessing xAOD files outside of Athena.
StatusCode writeTo(::TFile *file, int autoFlush=200, std::string_view treeName=EVENT_TREE_NAME)
Connect the object to an output file.
@ AST_ContainerStore
The store describes a container.