Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 #ifndef __DAQ_DEVICE_RTCLOCK__
0002 #define __DAQ_DEVICE_RTCLOCK__
0003 
0004 
0005 #include <daq_device.h>
0006 #include <pulserTriggerHandler.h>
0007 #include <stdio.h>
0008 #include <time.h>
0009 
0010 class daq_device_rtclock: public  daq_device {
0011 
0012 
0013 public:
0014 
0015   daq_device_rtclock (const int eventtype
0016               , const int subeventid
0017               , const int what = 0);
0018 
0019 
0020   ~daq_device_rtclock();
0021 
0022 
0023   void identify(std::ostream& os = std::cout) const;
0024 
0025   int max_length(const int etype) const;
0026 
0027   // functions to do the work
0028 
0029   int put_data(const int etype, int * adr, const int length);
0030 
0031   int init();
0032 
0033   //  int rearm( const int etype);
0034 
0035 protected:
0036   subevtdata_ptr sevt;
0037   struct timespec previous_clk;
0038 
0039 };
0040 
0041 
0042 #endif