24 #include <JANA/JApplication.h>
28 using namespace codaObject;
48 string UDL =
"cMsg://localhost/cMsg";
49 string name =
"JEventProcessor_codaObject";
50 string descr =
"JEventProcessor coda object";
51 string theSession =
"halldsession";
59 gPARMS->SetDefaultParameter(
"CODAOBJECT:UDL", UDL,
"UDL to use for connecting to cMsg server");
60 gPARMS->SetDefaultParameter(
"CODAOBJECT:NAME", name,
"Name to use for connecting to cMsg server");
61 gPARMS->SetDefaultParameter(
"CODAOBJECT:DESCR", descr,
"Description to use for connecting to cMsg server");
62 gPARMS->SetDefaultParameter(
"CODAOBJECT:SESSION", theSession,
"Session name to use");
69 if(
debug)jout <<
"leaving InitPlugin" << endl;
81 const string &theSession)
82 : RunObject(UDL,name,descr), done(false) {
86 if(!theSession.empty())handleSetSession(theSession);
94 changeState(
"active");
103 handleStartReporting(
nullptr);
106 if(
debug)jout <<
"leaving JEventProcessor_CODA_online constructor" << endl;
117 if(
debug)jout <<
"in destructor" << endl;
130 if(
debug)jout <<
"in userConfigure" << endl;
143 if(
debug)jout <<
"in userDownload" << endl;
155 if(
debug)jout <<
"in userPrestart" << endl;
167 if(
debug)jout <<
"in userGo" << endl;
179 if(
debug)jout <<
"in userPause" << endl;
192 if(
debug)jout <<
"in userResum" << endl;
205 if(
debug)jout <<
"in userEnd" << endl;
217 if(
debug)jout <<
"in userReset" << endl;
229 if(
debug)jout <<
"in exit" << endl;
244 unique_ptr<cMsgMessage> msg(msgp);
245 jerr <<
"?JEventProcessor_CODA_online...received unknown message subject,type: "
246 << msg->getSubject() <<
"," << msg->getType() << endl << endl;
259 RunObject::fillReport(m);
261 m->add(
"test2",
"fred");
273 if(
debug)jout <<
"entering JEventProcessor_CODA_online statistics_thread" << endl;
279 rcConn->setMonitoringString(
" <test> This is a test monitoring string </test>\n");
virtual bool userPrestart(const string &s) override
virtual bool userGo(const string &s) override
virtual bool userEnd(const string &s) override
JEventProcessor_CODA_online(void)=delete
virtual const void statistics_thread(void)
~JEventProcessor_CODA_online()
unique_ptr< thread > stat_thread
virtual bool userResume(const string &s) override
virtual bool userConfigure(const string &s) override
virtual void userMsgHandler(cMsgMessage *msgp, void *userArg) override
void fillReport(cMsgMessage *m)
virtual bool userReset(const string &s) override
virtual void exit(const string &s) override
virtual bool userDownload(const string &s) override
virtual bool userPause(const string &s) override