Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-02 08:21:06

0001 #ifndef __PULSERTRIGGERHANDLER_H__
0002 #define __PULSERTRIGGERHANDLER_H__
0003 
0004 #include <unistd.h>
0005 
0006 class pulserTriggerHandler : public TriggerHandler {
0007 
0008 public:
0009 
0010   pulserTriggerHandler(const int evttype = 1)
0011     {
0012       _evttype = evttype;
0013       _count = 0;
0014     }
0015 
0016   ~pulserTriggerHandler() {};
0017 
0018   //  virtual void identify(std::ostream& os = std::cout) const = 0;
0019 
0020   // this is the virtual worker routine
0021   int wait_for_trigger( const int moreinfo=0)
0022   {
0023     //std::cout << "trigger " << _count++ << std::endl; 
0024     return _evttype;
0025   }
0026  protected:
0027 
0028   int _count;
0029   int _evttype;
0030 };
0031 
0032 #endif