Back to home page

sPhenix code displayed by LXR

 
 

    


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

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