Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DEventStoreEvent.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DEventStoreEvent.h
4 // Creator: sdobbs
5 //
6 
7 #ifndef _DEventStoreEvent_
8 #define _DEventStoreEvent_
9 
10 #include <set>
11 #include <string>
12 
13 #include <JANA/JEventSource.h>
14 
15 using namespace std;
16 using namespace jana;
17 
19 {
20  public:
21  DEventStoreEvent() : dEventSource(NULL), dSourceRef(NULL){}
23 
24  //SOURCES
25  void Set_EventSource(JEventSource* locEventSource){dEventSource = locEventSource;}
26  JEventSource* Get_EventSource(void) const{return dEventSource;}
27 
28  //SKIMS
29  void Add_Skim(string locSkim){dSkims.insert(locSkim);}
30  bool Is_Skim(string locSkim) const{return (dSkims.find(locSkim) != dSkims.end());}
31  const set<string>& Get_Skims(void) const{return dSkims;}
32 
33  //REFS
34  void Set_SourceRef(void* locSourceRef){dSourceRef = locSourceRef;}
35  void* Get_SourceRef(void) const{return dSourceRef;}
36 
37  private:
38  JEventSource* dEventSource; // the event source that made the event (e.g. REST)
39  void* dSourceRef; // the Ref for the associated event (e.g. hddm record)
40  set<string> dSkims; // what skims the event belongs to
41 };
42 
43 #endif // _DEventStoreEvent_
44 
bool Is_Skim(string locSkim) const
JEventSource * dEventSource
set< string > dSkims
const set< string > & Get_Skims(void) const
void Set_EventSource(JEventSource *locEventSource)
void Set_SourceRef(void *locSourceRef)
void Add_Skim(string locSkim)
JEventSource * Get_EventSource(void) const
void * Get_SourceRef(void) const