#include <TChainStateTracker.h>
Public Member Functions | |
TChainStateTracker () | |
Default constructor. | |
virtual ::Bool_t | Notify () |
Function called when the TChain opens a new input file. | |
::Bool_t | internalStateChanged () const |
Check whether there was an internal state change without us knowing. | |
void | reset () |
Reset the object. |
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.