EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EicJEventSource.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file EicJEventSource.h
1 
2 #include <JANA/JApplication.h>
3 #include <JANA/JEventSource.h>
4 
5 #ifndef _EIC_JEVENT_SOURCE_
6 #define _EIC_JEVENT_SOURCE_
7 
8 class EicJEventSource: public JEventSource {
9  public:
10  // Constructor must take string and JApplication pointer as arguments
11  EicJEventSource(std::string source_name, JApplication *app): JEventSource(source_name, app) {};
12  virtual ~EicJEventSource() {};
13 
14  // A description of this source type must be provided as a static member
15  static std::string GetDescription(void) { return "Event source for JExample3"; }
16 
17  // See JEventSource_example3.cc for details on these;
18  void Open(void);
19  void GetEvent(std::shared_ptr<JEvent>);
20 };
21 
22 #endif
23