Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
daq_device_file.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file daq_device_file.h
1 #ifndef __DAQ_DEVICE_FILE__
2 #define __DAQ_DEVICE_FILE__
3 
4 
5 #include <daq_device.h>
6 #include <stdio.h>
7 #include <string>
8 
9 class daq_device_file: public daq_device {
10 
11 
12 public:
13 
14  daq_device_file (const int eventtype,
15  const int subeventid, const char * fn,
16  const int delete_flag = 0,
17  const int maxlength = 4*1024);
18 
19 
20 
22 
23 
24  void identify(std::ostream& os = std::cout) const;
25 
26  int max_length(const int etype) const;
27 
28  // functions to do the work
29 
30  int put_data(const int etype, int * adr, const int length);
31 
32 private:
38 
39 };
40 
41 
42 #endif