Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
JEventProcessor_CODA_online Class Reference

#include <JEventProcessor_CODA_online.h>

+ Inheritance diagram for JEventProcessor_CODA_online:

Public Member Functions

const char * className (void)
 
 JEventProcessor_CODA_online (void)=delete
 
 JEventProcessor_CODA_online (const JEventProcessor_CODA_online &)=delete
 
JEventProcessor_CODA_onlineoperator= (const JEventProcessor_CODA_online &)=delete
 
 JEventProcessor_CODA_online (const string &UDL, const string &name, const string &descr, const string &theSession)
 
 ~JEventProcessor_CODA_online () throw ()
 
virtual bool userConfigure (const string &s) override throw (CodaException)
 
virtual bool userDownload (const string &s) override throw (CodaException)
 
virtual bool userPrestart (const string &s) override throw (CodaException)
 
virtual bool userGo (const string &s) override throw (CodaException)
 
virtual bool userPause (const string &s) override throw (CodaException)
 
virtual bool userResume (const string &s) override throw (CodaException)
 
virtual bool userEnd (const string &s) override throw (CodaException)
 
virtual bool userReset (const string &s) override throw (CodaException)
 
virtual void exit (const string &s) override throw (CodaException)
 
virtual void userMsgHandler (cMsgMessage *msgp, void *userArg) override throw (CodaException)
 
virtual const void statistics_thread (void) throw ()
 
void fillReport (cMsgMessage *m) throw ()
 

Public Attributes

bool done
 

Protected Attributes

unique_ptr< thread > stat_thread
 

Private Member Functions

jerror_t fini (void)
 

Detailed Description

Plugin extends RunObject to interface between coda object and JANA event processor for farm management.

Uses gPARMS flags CODAOBJECT:UDL, NAME, DESCR, and SESSION.

Definition at line 35 of file JEventProcessor_CODA_online.h.

Constructor & Destructor Documentation

JEventProcessor_CODA_online::JEventProcessor_CODA_online ( void  )
delete
JEventProcessor_CODA_online::JEventProcessor_CODA_online ( const JEventProcessor_CODA_online )
delete
JEventProcessor_CODA_online::JEventProcessor_CODA_online ( const string UDL,
const string name,
const string descr,
const string theSession 
)

Constructor sets session, launches statistics thread, automatically starts processing and reporting.

Definition at line 80 of file JEventProcessor_CODA_online.cc.

References debug, stat_thread, and statistics_thread().

JEventProcessor_CODA_online::~JEventProcessor_CODA_online ( )
throw (
)

Destructor stops processing.

Definition at line 116 of file JEventProcessor_CODA_online.cc.

References debug, and done.

Member Function Documentation

const char* JEventProcessor_CODA_online::className ( void  )
inline

Definition at line 38 of file JEventProcessor_CODA_online.h.

void JEventProcessor_CODA_online::exit ( const string s)
throw (CodaException
)
overridevirtual

Called when exit command received.

Definition at line 228 of file JEventProcessor_CODA_online.cc.

References debug, and japp.

void JEventProcessor_CODA_online::fillReport ( cMsgMessage *  m)
throw (
)

fills rc/report/status message

Parameters
mmessage

Definition at line 258 of file JEventProcessor_CODA_online.cc.

jerror_t JEventProcessor_CODA_online::fini ( void  )
private

Called after last event of last event source has been processed.

Definition at line 287 of file JEventProcessor_CODA_online.cc.

JEventProcessor_CODA_online& JEventProcessor_CODA_online::operator= ( const JEventProcessor_CODA_online )
delete
const void JEventProcessor_CODA_online::statistics_thread ( void  )
throw (
)
virtual

Thread in which user must set event number and data count manually, used for monitoring purposes.

Definition at line 271 of file JEventProcessor_CODA_online.cc.

References debug, and done.

Referenced by JEventProcessor_CODA_online().

bool JEventProcessor_CODA_online::userConfigure ( const string s)
throw (CodaException
)
overridevirtual

Called during configure transition.

Definition at line 129 of file JEventProcessor_CODA_online.cc.

References debug.

bool JEventProcessor_CODA_online::userDownload ( const string s)
throw (CodaException
)
overridevirtual

Called during download transition.

Definition at line 142 of file JEventProcessor_CODA_online.cc.

References debug.

bool JEventProcessor_CODA_online::userEnd ( const string s)
throw (CodaException
)
overridevirtual

Called during end transition.

Definition at line 204 of file JEventProcessor_CODA_online.cc.

References debug.

bool JEventProcessor_CODA_online::userGo ( const string s)
throw (CodaException
)
overridevirtual

Called during go transition.

Definition at line 166 of file JEventProcessor_CODA_online.cc.

References debug.

void JEventProcessor_CODA_online::userMsgHandler ( cMsgMessage *  msgp,
void *  userArg 
)
throw (CodaException
)
overridevirtual

Called when unknown message type received.

Definition at line 243 of file JEventProcessor_CODA_online.cc.

bool JEventProcessor_CODA_online::userPause ( const string s)
throw (CodaException
)
overridevirtual

Called during pause transition.

Definition at line 178 of file JEventProcessor_CODA_online.cc.

References debug, and japp.

bool JEventProcessor_CODA_online::userPrestart ( const string s)
throw (CodaException
)
overridevirtual

Called during prestart transition.

Definition at line 154 of file JEventProcessor_CODA_online.cc.

References debug.

bool JEventProcessor_CODA_online::userReset ( const string s)
throw (CodaException
)
overridevirtual

Called during reset transition.

Definition at line 216 of file JEventProcessor_CODA_online.cc.

References debug.

bool JEventProcessor_CODA_online::userResume ( const string s)
throw (CodaException
)
overridevirtual

Called during resume transition.

Definition at line 191 of file JEventProcessor_CODA_online.cc.

References debug, and japp.

Member Data Documentation

bool JEventProcessor_CODA_online::done

Tells coda object it is done.

Definition at line 75 of file JEventProcessor_CODA_online.h.

Referenced by statistics_thread(), and ~JEventProcessor_CODA_online().

unique_ptr<thread> JEventProcessor_CODA_online::stat_thread
protected

Sets event and data counts for monitoring.

Definition at line 72 of file JEventProcessor_CODA_online.h.

Referenced by JEventProcessor_CODA_online().


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