Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
blob
master
all.h
BufferConstants.h
daq_device.cc
daq_device.h
daq_device_command.cc
daq_device_command.h
daq_device_deadtime.cc
daq_device_deadtime.h
daq_device_file.cc
daq_device_file.h
daq_device_filenumbers.cc
daq_device_filenumbers.h
daq_device_gauss.cc
daq_device_gauss.h
daq_device_pluginexample.cc
daq_device_pluginexample.h
daq_device_random.cc
daq_device_random.h
daq_device_rtclock.cc
daq_device_rtclock.h
daqBuffer.cc
daqBuffer.h
daqEvent.cc
daqEvent.h
daqONCSEvent.cc
daqONCSEvent.h
daqPRDFEvent.cc
daqPRDFEvent.h
eloghandler.cc
eloghandler.h
elogtest.cc
EventTypes.h
EvtConstants.h
EvtStructures.h
example_plugin.cc
example_plugin.h
gauss_plugin.cc
gauss_plugin.h
md5.cc
md5.h
mongoose.cc
mongoose.h
MQTTConnection.cc
MQTTConnection.h
parseargument.cc
parseargument.h
pulserTriggerHandler.h
rcdaq.cc
rcdaq.h
rcdaq_actions.h
rcdaq_client.cc
rcdaq_frontend.cc
rcdaq_mg_server.cc
rcdaq_plugin.h
rcdaq_server.cc
sfs.cc
simpleRandom.cc
simpleRandom.h
SubevtConstants.h
SubevtStructures.h
TriggerHandler.h
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
daq_device_command.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file daq_device_command.cc
1
2
3
#include <iostream>
4
5
#include <
daq_device_command.h
>
6
7
#include <unistd.h>
8
#include <stdlib.h>
9
10
using namespace
std;
11
12
daq_device_command::daq_device_command
(
const
int
eventtype
13
,
const
int
subeventid
14
,
const
char
*command
15
,
const
int
verbose
)
16
17
{
18
19
m_eventType = eventtype;
20
m_subeventid = subeventid;
21
_command = command;
22
_verbose =
verbose
;
23
24
25
}
26
27
daq_device_command::~daq_device_command
()
28
{
29
}
30
31
32
33
// the put_data function
34
35
int
daq_device_command::put_data
(
const
int
etype,
int
* adr,
const
int
length
)
36
{
37
38
39
if
(etype != m_eventType )
// not our id
40
{
41
return
0;
42
}
43
44
system ( _command.c_str() );
45
46
return
0;
47
48
}
49
50
51
void
daq_device_command::identify
(std::ostream&
os
)
const
52
{
53
54
os <<
"Command Device Event Type: "
<< m_eventType
55
<<
" executing "
<< _command << endl;
56
57
}
58
59
rcdaq
blob
master
daq_device_command.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:47
using
1.8.2 with
sPHENIX GitHub integration