ROOTANA
TInterestingEventManager.hxx
Go to the documentation of this file.
1 #ifndef TInterestingEventManager_hxx_seen
2 #define TInterestingEventManager_hxx_seen
3 
4 /// Singleton class for defining which events are interesting (and should be plotted).
5 /// User needs to enable use of TInterestingEventManager in program constructor
6 ///
7 ///
9 {
10 public:
11 
13 
14  /// Enable the InterestingEventManager
15  /// Needs to be done in constructor of the program.
16  void Enable(){fEnabled = true;}
17 
18  /// Check if manager is enabled
19  bool IsEnabled(){return fEnabled;}
20 
21  /// Set this event to be interesting
23 
24  /// Is this event interesting?
26 
27  /// Reset state of manager = set to not interesting event.
28  void Reset(){ fInterestingEvent = false;}
29 
30 private:
31 
32  // pointer to global object
34 
35  // hidden private constructor
37 
38  // enabled bool
39  bool fEnabled;
40 
41  // interesting event bool
43 
44 };
45 
46 //#define iem_t TInterestingEventManager;
47 // Setup a short name for class IEM = Interesting Event Manager
49 
50 
51 #endif
52 
53 
TInterestingEventManager iem_t
void Reset()
Reset state of manager = set to not interesting event.
bool IsInteresting()
Is this event interesting?
static TInterestingEventManager * s_instance
static TInterestingEventManager * instance()
void SetInteresting()
Set this event to be interesting.
bool IsEnabled()
Check if manager is enabled.