Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
daq_device_file Class Reference

#include <rcdaq/blob/master/daq_device_file.h>

+ Inheritance diagram for daq_device_file:
+ Collaboration diagram for daq_device_file:

Public Member Functions

 daq_device_file (const int eventtype, const int subeventid, const char *fn, const int delete_flag=0, const int maxlength=4 *1024)
 
 ~daq_device_file ()
 
void identify (std::ostream &os=std::cout) const
 
int max_length (const int etype) const
 
int put_data (const int etype, int *adr, const int length)
 
- Public Member Functions inherited from daq_device
 daq_device ()
 
virtual ~daq_device ()
 
virtual int init ()
 
virtual int endrun ()
 
virtual int rearm (const int etype)
 
virtual int subeventid () const
 

Private Attributes

int m_eventType
 
int m_subeventid
 
std::string filename
 
int _maxlength
 
int _delete_flag
 

Additional Inherited Members

- Static Public Member Functions inherited from daq_device
static int formatPacketHdr (int *adr)
 
- Protected Attributes inherited from daq_device
long m_subeventid
 
long m_eventType
 

Detailed Description

Definition at line 9 of file daq_device_file.h.

View newest version in sPHENIX GitHub at line 9 of file daq_device_file.h

Constructor & Destructor Documentation

daq_device_file::daq_device_file ( const int  eventtype,
const int  subeventid,
const char *  fn,
const int  delete_flag = 0,
const int  maxlength = 4*1024 
)

Definition at line 16 of file daq_device_file.cc.

View newest version in sPHENIX GitHub at line 16 of file daq_device_file.cc

References filename.

daq_device_file::~daq_device_file ( )

Definition at line 32 of file daq_device_file.cc.

View newest version in sPHENIX GitHub at line 32 of file daq_device_file.cc

Member Function Documentation

void daq_device_file::identify ( std::ostream &  os = std::cout) const
virtual

Implements daq_device.

Definition at line 155 of file daq_device_file.cc.

View newest version in sPHENIX GitHub at line 155 of file daq_device_file.cc

References filename.

int daq_device_file::max_length ( const int  etype) const
virtual

Implements daq_device.

Definition at line 166 of file daq_device_file.cc.

View newest version in sPHENIX GitHub at line 166 of file daq_device_file.cc

References SEVTHEADERLENGTH.

int daq_device_file::put_data ( const int  etype,
int *  adr,
const int  length 
)
virtual

Member Data Documentation

int daq_device_file::_delete_flag
private

Definition at line 37 of file daq_device_file.h.

View newest version in sPHENIX GitHub at line 37 of file daq_device_file.h

int daq_device_file::_maxlength
private

Definition at line 36 of file daq_device_file.h.

View newest version in sPHENIX GitHub at line 36 of file daq_device_file.h

std::string daq_device_file::filename
private

Definition at line 35 of file daq_device_file.h.

View newest version in sPHENIX GitHub at line 35 of file daq_device_file.h

int daq_device_file::m_eventType
private

Definition at line 33 of file daq_device_file.h.

View newest version in sPHENIX GitHub at line 33 of file daq_device_file.h

int daq_device_file::m_subeventid
private

Definition at line 34 of file daq_device_file.h.

View newest version in sPHENIX GitHub at line 34 of file daq_device_file.h


The documentation for this class was generated from the following files: