ATLAS Offline Software
|
Class helping with tracking the state of TChain objects. More...
#include <TChainStateTracker.h>
Public Member Functions | |
TChainStateTracker () | |
Default constructor. More... | |
virtual ::Bool_t | Notify () |
Function called when the TChain opens a new input file. More... | |
::Bool_t | internalStateChanged () const |
Check whether there was an internal state change without us knowing. More... | |
void | reset () |
Reset the object. More... | |
Private Attributes | |
::Bool_t | m_stateChanged |
Flag showing when an internal state change is detected. More... | |
Class helping with tracking the state of TChain objects.
TChains are tricky. Depending on the user's usage pattern, the TChain object given to a TEvent object may change its internal state without the TEvent object knowing. In which case the internal state of TEvent becomes inconsistent.
Such an object is used by TEvent to know when the TChain given to it has changed the currently opened file. So that it can re-initialise its internal state correctly when this happens.
Definition at line 32 of file TChainStateTracker.h.
xAOD::TChainStateTracker::TChainStateTracker | ( | ) |
Default constructor.
Definition at line 12 of file TChainStateTracker.cxx.
Bool_t xAOD::TChainStateTracker::internalStateChanged | ( | ) | const |
Check whether there was an internal state change without us knowing.
Definition at line 26 of file TChainStateTracker.cxx.
Bool_t xAOD::TChainStateTracker::Notify | ( | ) |
Function called when the TChain opens a new input file.
Definition at line 18 of file TChainStateTracker.cxx.
void xAOD::TChainStateTracker::reset | ( | ) |
Reset the object.
Definition at line 31 of file TChainStateTracker.cxx.
|
private |
Flag showing when an internal state change is detected.
Definition at line 48 of file TChainStateTracker.h.