Jpp
15.0.2
the software that should make you happy
|
Runcontrol client to simulate data filter(s). More...
Public Member Functions | |
JEventGenerator (const std::string &name, const std::string &server, JLogger *logger, const int level) | |
Constructor. More... | |
virtual void | actionConfigure (int length, const char *buffer) |
virtual void | actionReset (int length, const char *buffer) |
virtual void | actionQuit (int length, const char *buffer) |
virtual void | actionStart (int length, const char *buffer) |
virtual void | actionStop (int length, const char *buffer) |
virtual void | actionRunning () |
This method is repeatedly called when this client machine is in state Running and the clock interval time is non-zero. More... | |
virtual bool | enter (const JArgs &args) |
Enter the state machine. More... | |
virtual bool | enter () |
Enter the state machine. More... | |
virtual bool | exit () |
Exit the state machine. More... | |
bool | isRunning () const |
Check if this client is in runnig state. More... | |
void | replaceEvent (const JTag &oldTag, const JTag &newTag, JDAQEvent_t &event) |
Replace tag of given event in event table. More... | |
JDAQEvent_t * | findEvent (const JTag &tag, const std::string &event_name) |
Find event in event table. More... | |
void | addSubscription (const JSubscription &subscription) |
Add custom subscription. More... | |
template<class T > | |
void | addParameter (const char option, T ¶meter) |
Add parameter to parser used in method enter(). More... | |
template<class T > | |
void | addParameter (const char option, T ¶meter, const T &value) |
Add parameter to parser used in method enter(). More... | |
void | setSelect () |
Set the file descriptor mask for the select call. More... | |
virtual void | setSelect (JFileDescriptorMask &mask) const |
Set the file descriptor mask for the select call. More... | |
virtual void | actionSelect (const JFileDescriptorMask &mask) |
Action method following last select call. More... | |
virtual void | actionInput (int length, const char *buffer) |
This method is called at ev_input . More... | |
virtual bool | filter (const JTag &tag, int length, const char *buffer) |
Filter message. More... | |
virtual void | actionTagged (const JTag &tag, int length, const char *buffer) |
This method is called when a custom tag is encountered. More... | |
void | run () |
Run as run control client following command messages via JNET::JControlHost. More... | |
void | run (const int port) |
Run for ever. More... | |
void | run (std::istream &in) |
Run client with commands from input stream (e.g. for debugging). More... | |
void | A1 (CHSM_ns_alias::event const &) |
void | A2 (CHSM_ns_alias::event const &) |
void | A3 (CHSM_ns_alias::event const &) |
void | A4 (CHSM_ns_alias::event const &) |
void | A5 (CHSM_ns_alias::event const &) |
void | A6 (CHSM_ns_alias::event const &) |
void | A7 (CHSM_ns_alias::event const &) |
void | A8 (CHSM_ns_alias::event const &) |
void | A9 (CHSM_ns_alias::event const &) |
void | A10 (CHSM_ns_alias::event const &) |
void | A11 (CHSM_ns_alias::event const &) |
void | A12 (CHSM_ns_alias::event const &) |
void | A13 (CHSM_ns_alias::event const &) |
void | A14 (CHSM_ns_alias::event const &) |
void | EAM4root (CHSM_ns_alias::state const &, CHSM_ns_alias::event const &) |
void | XAM4root (CHSM_ns_alias::state const &, CHSM_ns_alias::event const &) |
const std::string & | getName () const |
Get name of state machine. More... | |
const std::string & | getName () const |
Get name of state machine. More... | |
int | getDetectorID () const |
Get detector identifier. More... | |
int | getDetectorID () const |
Get detector identifier. More... | |
int | getRunNumber () const |
Get run number. More... | |
int | getRunNumber () const |
Get run number. More... | |
virtual void | actionEnter () |
Interface methods for actions corresponding to state transitions. More... | |
virtual void | actionEnter () |
Interface methods for actions corresponding to state transitions. More... | |
virtual void | actionExit () |
virtual void | actionExit () |
virtual void | actionInit (int, const char *) |
virtual void | actionInit (int, const char *) |
virtual void | actionPause (int, const char *) |
virtual void | actionPause (int, const char *) |
virtual void | actionContinue (int, const char *) |
virtual void | actionContinue (int, const char *) |
virtual void | actionError () |
virtual void | actionError () |
virtual void | actionRecover (int, const char *) |
virtual void | actionRecover (int, const char *) |
const std::string & | getHostname () const |
Get hostname. More... | |
const std::string & | getFullName () const |
Get full name of this run control client. More... | |
const JTag & | getUniqueTag () const |
Get unique tag of this run control client. More... | |
long long int | getClockDelay () const |
Get total delay time. More... | |
long long int | getClockInterval () const |
Get interval time. More... | |
void | setClockInterval (const long long int interval_us) |
Set interval time. More... | |
void | resetClock () |
Reset clock. More... | |
int | getEventNumber () const |
Get last event number. More... | |
void | setEventNumber (const int event_number) |
Set last event number. More... | |
Static Public Attributes | |
static const int | TIMEOUT_S = 1 |
time out of update [s] More... | |
Protected Types | |
typedef void(JDAQCHSM::* | action )(int, const char *) |
Type definition of action method. More... | |
typedef void(JDAQCHSM::* | action )(int, const char *) |
Type definition of action method. More... | |
Protected Attributes | |
JSharedPointer< JControlHost > | server |
message server More... | |
JMessageLogger | logger |
message logger More... | |
std::string | name |
int | detector_id |
int | run_number |
JEventTable | eventTable |
event table More... | |
std::string | hostname |
std::string | fullname |
JTag | unique_tag |
JTimekeeper | clock |
central clock More... | |
int | event_number |
number of last event More... | |
Private Attributes | |
JSharedPointer< JControlHost > | datawriter |
JTRIGGER::JTriggerParameters | parameters |
JSUPPORT::JMultipleFileScanner < KM3NETDAQ::JDAQEvent > | inputFile |
Long64_t | numberOfEvents |
double | eventRate_Hz |
JEEP::JTimer | timer |
long long int | numberOfBytes |
Runcontrol client to simulate data filter(s).
In state running, this application will send events to the data writer.
Definition at line 34 of file JEventGenerator.cc.
|
protectedinherited |
Type definition of action method.
Definition at line 141 of file JDAQCHSM.chsm.
|
protectedinherited |
Type definition of action method.
Definition at line 152 of file JDAQCHSM.hh.
|
inline |
Constructor.
name | name of client |
server | name of command message server |
logger | pointer to logger |
level | debug level |
Definition at line 46 of file JEventGenerator.cc.
|
inlinevirtual |
Reimplemented from JDAQCHSM.
Definition at line 59 of file JEventGenerator.cc.
|
inlinevirtual |
Reimplemented from JDAQCHSM.
Definition at line 96 of file JEventGenerator.cc.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented from JDAQCHSM.
Definition at line 110 of file JEventGenerator.cc.
|
inlinevirtual |
Reimplemented from JDAQCHSM.
Definition at line 127 of file JEventGenerator.cc.
|
inlinevirtual |
This method is repeatedly called when this client machine is in state Running and the clock interval time is non-zero.
This implementation does nothing but may be redefined by the derived class. Care has to be taken so that the time needed to execute this method should be less than the specified clock interval time (see method setClockInterval()).
Reimplemented from KM3NETDAQ::JDAQClient.
Definition at line 136 of file JEventGenerator.cc.
|
inlinevirtualinherited |
Enter the state machine.
This overloaded method enter reproduces the constructor. All necessary input is parsed from the list of arguments. In case of an error, the state machine is not entered.
args | array of command line arguments |
Definition at line 363 of file JDAQClient.hh.
|
inlinevirtualinherited |
Enter the state machine.
This method activates the subscription to JNET::JControlHost messages. In case of an error, the state machine is not entered.
Reimplemented in KM3NETDAQ::JDAQDriver.
Definition at line 418 of file JDAQClient.hh.
|
inlinevirtualinherited |
Exit the state machine.
This method releases the various resources.
Definition at line 456 of file JDAQClient.hh.
|
inlineinherited |
Check if this client is in runnig state.
Definition at line 479 of file JDAQClient.hh.
|
inlineinherited |
Replace tag of given event in event table.
oldTag | old tag |
newTag | new tag |
event | event |
Definition at line 492 of file JDAQClient.hh.
|
inlineinherited |
Find event in event table.
tag | tag |
event_name | event name |
Definition at line 507 of file JDAQClient.hh.
|
inlineinherited |
Add custom subscription.
subscription | subscription |
Definition at line 523 of file JDAQClient.hh.
|
inlineinherited |
Add parameter to parser used in method enter().
option | option |
parameter | parameter |
Definition at line 536 of file JDAQClient.hh.
|
inlineinherited |
Add parameter to parser used in method enter().
option | option |
parameter | parameter |
value | default value |
Definition at line 550 of file JDAQClient.hh.
|
inlineinherited |
Set the file descriptor mask for the select call.
Definition at line 559 of file JDAQClient.hh.
|
inlinevirtualinherited |
Set the file descriptor mask for the select call.
This implementation does nothing but may be redefined by the derived class.
mask | file descriptor mask |
Reimplemented in KM3NETDAQ::JDataFilter, KM3NETDAQ::JDataWriter, and KM3NETDAQ::MonitorRouter.
Definition at line 575 of file JDAQClient.hh.
|
inlinevirtualinherited |
Action method following last select call.
This implementation does nothing but may be redefined by the derived class.
mask | file descriptor mask |
Reimplemented in KM3NETDAQ::JDataFilter, KM3NETDAQ::DataQueue, KM3NETDAQ::JDataWriter, and KM3NETDAQ::MonitorRouter.
Definition at line 585 of file JDAQClient.hh.
|
inlinevirtualinherited |
This method is called at ev_input
.
length | length of data |
buffer | pointer to data |
Reimplemented from JDAQCHSM.
Reimplemented in KM3NETDAQ::DataQueue, and AcousticDataFilter.
Definition at line 606 of file JDAQClient.hh.
|
inlinevirtualinherited |
Filter message.
The filter method can be overwritten so that a specific action is made before the corresponding message is processed by the state machine. The message is ignored if true is returned, else it is normally processed.
tag | tag |
length | number of characters |
buffer | message |
Definition at line 633 of file JDAQClient.hh.
|
inlinevirtualinherited |
This method is called when a custom tag is encountered.
tag | tag |
length | length of data |
buffer | pointer to data |
Reimplemented in KM3NETDAQ::JDataFilter.
Definition at line 646 of file JDAQClient.hh.
|
inlineinherited |
Run as run control client following command messages via JNET::JControlHost.
This method can be called once the state machine is entered. It returns when the state machine is exited. If the clock interval is non-zero, the method actionRunning() is repeatedly called when this client machine is in state Running. The file descriptor mask can be set to interrupt the timeout of the select call and clock method wait() in this calling sequence (see methods setSelect() and actionSelect()).
Definition at line 661 of file JDAQClient.hh.
|
inlineinherited |
Run for ever.
This method can be used when the run control client is started before the run control (e.g. at boot time of the host processor). This method should be called before the state machine is entered. It launches a server which accepts a JNET::JControlHost connection from a designated application e.g. the JDAQClientStarter.cc program. The state machine is entered using the available data in the JNET::JControlHost message. After the state machine is exited, it accepts a new a JNET::JControlHost connection.
port | port number |
Definition at line 741 of file JDAQClient.hh.
|
inlineinherited |
Run client with commands from input stream (e.g. for debugging).
Example input format:
<tag> <event name>[#data]; <tag> <event name>[#data];
in | input stream |
Definition at line 786 of file JDAQClient.hh.
|
inherited |
Definition at line 344 of file JDAQCHSM.cc.
|
inherited |
Definition at line 346 of file JDAQCHSM.cc.
|
inherited |
Definition at line 348 of file JDAQCHSM.cc.
|
inherited |
Definition at line 350 of file JDAQCHSM.cc.
|
inherited |
Definition at line 352 of file JDAQCHSM.cc.
|
inherited |
Definition at line 354 of file JDAQCHSM.cc.
|
inherited |
Definition at line 364 of file JDAQCHSM.cc.
|
inherited |
Definition at line 366 of file JDAQCHSM.cc.
|
inherited |
Definition at line 368 of file JDAQCHSM.cc.
|
inherited |
Definition at line 370 of file JDAQCHSM.cc.
|
inherited |
Definition at line 372 of file JDAQCHSM.cc.
|
inherited |
Definition at line 374 of file JDAQCHSM.cc.
|
inherited |
Definition at line 376 of file JDAQCHSM.cc.
|
inherited |
Definition at line 378 of file JDAQCHSM.cc.
|
inherited |
Definition at line 337 of file JDAQCHSM.cc.
|
inherited |
Definition at line 340 of file JDAQCHSM.cc.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
Interface methods for actions corresponding to state transitions.
Reimplemented in KM3NETDAQ::JDataFilter, KM3NETDAQ::DataQueue, JDAQDemoClient, AcousticDataFilter, and KM3NETDAQ::MonitorRouter.
Definition at line 109 of file JDAQCHSM.chsm.
|
inlinevirtualinherited |
Interface methods for actions corresponding to state transitions.
Reimplemented in KM3NETDAQ::JDataFilter, KM3NETDAQ::DataQueue, JDAQDemoClient, AcousticDataFilter, and KM3NETDAQ::MonitorRouter.
Definition at line 120 of file JDAQCHSM.hh.
|
inlinevirtualinherited |
Reimplemented in KM3NETDAQ::JDataFilter, KM3NETDAQ::JDAQDriver, KM3NETDAQ::DataQueue, JDAQDemoClient, AcousticDataFilter, and KM3NETDAQ::MonitorRouter.
Definition at line 110 of file JDAQCHSM.chsm.
|
inlinevirtualinherited |
Reimplemented in KM3NETDAQ::JDataFilter, KM3NETDAQ::JDAQDriver, KM3NETDAQ::DataQueue, JDAQDemoClient, AcousticDataFilter, and KM3NETDAQ::MonitorRouter.
Definition at line 121 of file JDAQCHSM.hh.
|
inlinevirtualinherited |
Reimplemented in KM3NETDAQ::JDataFilter, KM3NETDAQ::JDataWriter, KM3NETDAQ::DataQueue, JDAQDemoClient, AcousticDataFilter, and KM3NETDAQ::MonitorRouter.
Definition at line 112 of file JDAQCHSM.chsm.
|
inlinevirtualinherited |
Reimplemented in KM3NETDAQ::JDataFilter, KM3NETDAQ::JDataWriter, KM3NETDAQ::DataQueue, JDAQDemoClient, AcousticDataFilter, and KM3NETDAQ::MonitorRouter.
Definition at line 123 of file JDAQCHSM.hh.
|
inlinevirtualinherited |
Reimplemented in KM3NETDAQ::JDataFilter, KM3NETDAQ::DataQueue, JDAQDemoClient, KM3NETDAQ::MonitorRouter, and AcousticDataFilter.
Definition at line 115 of file JDAQCHSM.chsm.
|
inlinevirtualinherited |
Reimplemented in KM3NETDAQ::JDataFilter, KM3NETDAQ::DataQueue, JDAQDemoClient, KM3NETDAQ::MonitorRouter, and AcousticDataFilter.
Definition at line 126 of file JDAQCHSM.hh.
|
inlinevirtualinherited |
Reimplemented in KM3NETDAQ::JDataFilter, KM3NETDAQ::DataQueue, JDAQDemoClient, KM3NETDAQ::MonitorRouter, and AcousticDataFilter.
Definition at line 116 of file JDAQCHSM.chsm.
|
inlinevirtualinherited |
Reimplemented in KM3NETDAQ::JDataFilter, KM3NETDAQ::DataQueue, JDAQDemoClient, KM3NETDAQ::MonitorRouter, and AcousticDataFilter.
Definition at line 127 of file JDAQCHSM.hh.
|
inlinevirtualinherited |
Definition at line 124 of file JDAQCHSM.chsm.
|
inlinevirtualinherited |
Definition at line 135 of file JDAQCHSM.hh.
|
inlinevirtualinherited |
Definition at line 125 of file JDAQCHSM.chsm.
|
inlinevirtualinherited |
Definition at line 136 of file JDAQCHSM.hh.
|
inlineinherited |
|
inlineinherited |
Get full name of this run control client.
Definition at line 119 of file JDAQClient.hh.
|
inlineinherited |
Get unique tag of this run control client.
Definition at line 130 of file JDAQClient.hh.
|
inlineinherited |
Get total delay time.
Definition at line 141 of file JDAQClient.hh.
|
inlineinherited |
Get interval time.
Definition at line 153 of file JDAQClient.hh.
|
inlineinherited |
Set interval time.
interval_us | interval time [us] |
Definition at line 164 of file JDAQClient.hh.
|
inlineinherited |
Reset clock.
Definition at line 173 of file JDAQClient.hh.
|
inlineinherited |
Get last event number.
Definition at line 184 of file JDAQClient.hh.
|
inlineinherited |
Set last event number.
event_number | event number |
Definition at line 195 of file JDAQClient.hh.
|
private |
Definition at line 182 of file JEventGenerator.cc.
|
private |
Definition at line 184 of file JEventGenerator.cc.
|
private |
Definition at line 185 of file JEventGenerator.cc.
|
private |
Definition at line 187 of file JEventGenerator.cc.
|
private |
Definition at line 188 of file JEventGenerator.cc.
|
private |
Definition at line 190 of file JEventGenerator.cc.
|
private |
Definition at line 191 of file JEventGenerator.cc.
|
protectedinherited |
message server
Definition at line 800 of file JDAQClient.hh.
|
protectedinherited |
message logger
Definition at line 801 of file JDAQClient.hh.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 238 of file JDAQCHSM.hh.
|
inherited |
|
inherited |
Definition at line 258 of file JDAQCHSM.hh.
|
inherited |
|
inherited |
Definition at line 278 of file JDAQCHSM.hh.
|
inherited |
|
inherited |
Definition at line 298 of file JDAQCHSM.hh.
|
inherited |
|
inherited |
Definition at line 318 of file JDAQCHSM.hh.
|
inherited |
|
inherited |
Definition at line 338 of file JDAQCHSM.hh.
|
inherited |
|
inherited |
Definition at line 358 of file JDAQCHSM.hh.
|
inherited |
|
inherited |
Definition at line 378 of file JDAQCHSM.hh.
|
inherited |
|
inherited |
Definition at line 398 of file JDAQCHSM.hh.
|
inherited |
|
inherited |
Definition at line 418 of file JDAQCHSM.hh.
|
inherited |
|
inherited |
Definition at line 438 of file JDAQCHSM.hh.
|
inherited |
|
inherited |
Definition at line 458 of file JDAQCHSM.hh.
|
inherited |
|
inherited |
Definition at line 478 of file JDAQCHSM.hh.
|
inherited |
|
inherited |
Definition at line 495 of file JDAQCHSM.hh.
|
protectedinherited |
Definition at line 154 of file JDAQCHSM.chsm.
|
protectedinherited |
Definition at line 155 of file JDAQCHSM.chsm.
|
protectedinherited |
Definition at line 156 of file JDAQCHSM.chsm.
|
staticinherited |
time out of update [s]
Definition at line 61 of file JDAQClient.hh.
|
protectedinherited |
event table
Definition at line 202 of file JDAQClient.hh.
|
protectedinherited |
Definition at line 203 of file JDAQClient.hh.
|
protectedinherited |
Definition at line 204 of file JDAQClient.hh.
|
protectedinherited |
Definition at line 205 of file JDAQClient.hh.
|
protectedinherited |
central clock
Definition at line 206 of file JDAQClient.hh.
|
protectedinherited |
number of last event
Definition at line 207 of file JDAQClient.hh.