ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
xAOD::TChainStateTracker Class Reference

Class helping with tracking the state of TChain objects. More...

#include <TChainStateTracker.h>

Inheritance diagram for xAOD::TChainStateTracker:
Collaboration diagram for xAOD::TChainStateTracker:

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...
 

Detailed Description

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.

Author
Attila Krasznahorkay Attil.nosp@m.a.Kr.nosp@m.aszna.nosp@m.hork.nosp@m.ay@ce.nosp@m.rn.c.nosp@m.h
Revision
619763
Date
2014-10-03 10:36:08 +0200 (Fri, 03 Oct 2014)

Definition at line 32 of file TChainStateTracker.h.

Constructor & Destructor Documentation

◆ TChainStateTracker()

xAOD::TChainStateTracker::TChainStateTracker ( )

Default constructor.

Definition at line 12 of file TChainStateTracker.cxx.

13  : ::TObject(),
14  m_stateChanged( kFALSE ) {
15 
16  }

Member Function Documentation

◆ internalStateChanged()

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.

26  {
27 
28  return m_stateChanged;
29  }

◆ Notify()

Bool_t xAOD::TChainStateTracker::Notify ( )

Function called when the TChain opens a new input file.

Definition at line 18 of file TChainStateTracker.cxx.

18  {
19 
20  // Update our tracking variable:
21  m_stateChanged = kTRUE;
22  // Return gracefully:
23  return kTRUE;
24  }

◆ reset()

void xAOD::TChainStateTracker::reset ( )

Reset the object.

Definition at line 31 of file TChainStateTracker.cxx.

31  {
32 
33  m_stateChanged = kFALSE;
34  return;
35  }

Member Data Documentation

◆ m_stateChanged

::Bool_t xAOD::TChainStateTracker::m_stateChanged
private

Flag showing when an internal state change is detected.

Definition at line 48 of file TChainStateTracker.h.


The documentation for this class was generated from the following files:
xAOD::TChainStateTracker::m_stateChanged
::Bool_t m_stateChanged
Flag showing when an internal state change is detected.
Definition: TChainStateTracker.h:48