EventHolder.h
Go to the documentation of this file.
1 ///
2 /// \file EventHolder.h
3 /// \brief Singleton to hold the current art::Event for the event display
4 /// \author brebel@fnal.gov
5 /// \version $Id: EventHolder.h,v 1.3 2011-10-31 14:41:40 greenc Exp $
6 ///
7 #ifndef EVDB_EVENTHOLDER_H
8 #define EVDB_EVENTHOLDER_H
9 #ifndef __CINT__ // root 5
10 #ifndef __ROOTCLING__ // root 6
11 
13 
14 namespace evdb {
15 
16  class EventHolder {
17 
18  public:
19  static EventHolder* Instance();
20 
21  void SetEvent(art::Event const* evt);
22  const art::Event* GetEvent() const;
23 
24  private:
25 
26  EventHolder();
27  ~EventHolder();
28 
29  const art::Event* fEvent; ///< the Event
30  };
31 
32 }
33 #endif // root 6 - dangerous, to be used sparingly
34 #endif // __CINT__
35 #endif // EVDB_EVENTHOLDER_H
const art::Event * GetEvent() const
Definition: EventHolder.cxx:45
Manage all things related to colors for the event display.
Definition: Display3DPad.h:11
static EventHolder * Instance()
Definition: EventHolder.cxx:15
int evt
const art::Event * fEvent
the Event
Definition: EventHolder.h:29
void SetEvent(art::Event const *evt)
Definition: EventHolder.cxx:32