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

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

+ Inheritance diagram for daq_device_random:
+ Collaboration diagram for daq_device_random:

Public Member Functions

 daq_device_random (const int eventtype, const int subeventid, const int n_words=32, const int low=0, const int high=2047, const int trigger_enabled=0)
 
 ~daq_device_random ()
 
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)
 
int init ()
 
int rearm (const int etype)
 
- Public Member Functions inherited from daq_device
 daq_device ()
 
virtual ~daq_device ()
 
virtual int endrun ()
 
virtual int subeventid () const
 

Protected Attributes

subevtdata_ptr sevt
 
unsigned int number_of_words
 
int low_range
 
int high_range
 
FILE * rfp
 
pulserTriggerHandlerth
 
- Protected Attributes inherited from daq_device
long m_subeventid
 
long m_eventType
 

Additional Inherited Members

- Static Public Member Functions inherited from daq_device
static int formatPacketHdr (int *adr)
 

Detailed Description

Definition at line 10 of file daq_device_random.h.

View newest version in sPHENIX GitHub at line 10 of file daq_device_random.h

Constructor & Destructor Documentation

daq_device_random::daq_device_random ( const int  eventtype,
const int  subeventid,
const int  n_words = 32,
const int  low = 0,
const int  high = 2047,
const int  trigger_enabled = 0 
)

Definition at line 9 of file daq_device_random.cc.

View newest version in sPHENIX GitHub at line 9 of file daq_device_random.cc

References registerTriggerHandler().

+ Here is the call graph for this function:

daq_device_random::~daq_device_random ( )

Definition at line 34 of file daq_device_random.cc.

View newest version in sPHENIX GitHub at line 34 of file daq_device_random.cc

References clearTriggerHandler(), and fclose().

+ Here is the call graph for this function:

Member Function Documentation

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

Implements daq_device.

Definition at line 139 of file daq_device_random.cc.

View newest version in sPHENIX GitHub at line 139 of file daq_device_random.cc

int daq_device_random::init ( void  )
virtual

Reimplemented from daq_device.

Definition at line 161 of file daq_device_random.cc.

View newest version in sPHENIX GitHub at line 161 of file daq_device_random.cc

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

Implements daq_device.

Definition at line 155 of file daq_device_random.cc.

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

References SEVTHEADERLENGTH.

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

Implements daq_device.

Definition at line 48 of file daq_device_random.cc.

View newest version in sPHENIX GitHub at line 48 of file daq_device_random.cc

References daq_getEventFormat(), configureMap::data, packet_data::data, for(), ID4EVT, SEVTHEADERLENGTH, packet_data::structureinfo, packet_data::sub_decoding, packet_data::sub_id, packet_data::sub_length, packet_data::sub_type, and ambiguity_solver_full_chain::x.

+ Here is the call graph for this function:

int daq_device_random::rearm ( const int  etype)
virtual

Reimplemented from daq_device.

Definition at line 168 of file daq_device_random.cc.

View newest version in sPHENIX GitHub at line 168 of file daq_device_random.cc

Member Data Documentation

int daq_device_random::high_range
protected

Definition at line 42 of file daq_device_random.h.

View newest version in sPHENIX GitHub at line 42 of file daq_device_random.h

int daq_device_random::low_range
protected

Definition at line 41 of file daq_device_random.h.

View newest version in sPHENIX GitHub at line 41 of file daq_device_random.h

unsigned int daq_device_random::number_of_words
protected

Definition at line 40 of file daq_device_random.h.

View newest version in sPHENIX GitHub at line 40 of file daq_device_random.h

FILE* daq_device_random::rfp
protected

Definition at line 43 of file daq_device_random.h.

View newest version in sPHENIX GitHub at line 43 of file daq_device_random.h

subevtdata_ptr daq_device_random::sevt
protected

Definition at line 39 of file daq_device_random.h.

View newest version in sPHENIX GitHub at line 39 of file daq_device_random.h

pulserTriggerHandler* daq_device_random::th
protected

Definition at line 44 of file daq_device_random.h.

View newest version in sPHENIX GitHub at line 44 of file daq_device_random.h


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