Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
daq_device_rtclock.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file daq_device_rtclock.h
1 #ifndef __DAQ_DEVICE_RTCLOCK__
2 #define __DAQ_DEVICE_RTCLOCK__
3 
4 
5 #include <daq_device.h>
6 #include <pulserTriggerHandler.h>
7 #include <stdio.h>
8 #include <time.h>
9 
11 
12 
13 public:
14 
15  daq_device_rtclock (const int eventtype
16  , const int subeventid
17  , const int what = 0);
18 
19 
21 
22 
23  void identify(std::ostream& os = std::cout) const;
24 
25  int max_length(const int etype) const;
26 
27  // functions to do the work
28 
29  int put_data(const int etype, int * adr, const int length);
30 
31  int init();
32 
33  // int rearm( const int etype);
34 
35 protected:
37  struct timespec previous_clk;
38 
39 };
40 
41 
42 #endif