Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pulserTriggerHandler.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file pulserTriggerHandler.h
1 #ifndef __PULSERTRIGGERHANDLER_H__
2 #define __PULSERTRIGGERHANDLER_H__
3 
4 #include <unistd.h>
5 
7 
8 public:
9 
10  pulserTriggerHandler(const int evttype = 1)
11  {
12  _evttype = evttype;
13  _count = 0;
14  }
15 
17 
18  // virtual void identify(std::ostream& os = std::cout) const = 0;
19 
20  // this is the virtual worker routine
21  int wait_for_trigger( const int moreinfo=0)
22  {
23  //std::cout << "trigger " << _count++ << std::endl;
24  return _evttype;
25  }
26  protected:
27 
28  int _count;
29  int _evttype;
30 };
31 
32 #endif