#include <MLlog4cplus.h>
Public Member Functions | |
MLlog4cplus (const edm::ParameterSet &, edm::ActivityRegistry &) | |
void | postBeginJob () |
void | postEndJob () |
void | postEventProcessing (const edm::Event &, const edm::EventSetup &) |
void | postModule (const edm::ModuleDescription &) |
void | preEventProcessing (const edm::EventID &, const edm::Timestamp &) |
void | preModule (const edm::ModuleDescription &) |
~MLlog4cplus () | |
Static Public Member Functions | |
static void | setAppl (xdaq::Application *app) |
Private Attributes | |
edm::EventID | curr_event_ |
edm::ELlog4cplus * | dest_p |
Static Private Attributes | |
static xdaq::Application * | appl_ = 0 |
Definition at line 22 of file MLlog4cplus.h.
MLlog4cplus::MLlog4cplus | ( | const edm::ParameterSet & | iPS, |
edm::ActivityRegistry & | iRegistry | ||
) |
Definition at line 24 of file MLlog4cplus.cc.
References edm::MessageLoggerQ::MLqEXT(), and edm::ELlog4cplus::setAppl().
{ // we may want these in the future, but probably not, since the // MessageLogger service is supposed to deal with that stuff anyway (JBK) // iRegistry.watchPostBeginJob(this,&MLlog4cplus::postBeginJob); // iRegistry.watchPostEndJob(this,&MLlog4cplus::postEndJob); // iRegistry.watchPreProcessEvent(this,&MLlog4cplus::preEventProcessing); // iRegistry.watchPostProcessEvent(this,&MLlog4cplus::postEventProcessing); // iRegistry.watchPreModule(this,&MLlog4cplus::preModule); // iRegistry.watchPostModule(this,&MLlog4cplus::postModule); // pseudo-code: // get message logger message queue (singleton) // make new ELlog4cplus object using parameterset set information // make a message with opcode NEWDEST // send message (NEWDEST,ELdest*) // we should first get a handle to the MessageLogger service to // ensure that it is initialized before we are (JBK) // edm::Service<edm::MessageLogger> handle; dest_p = new ELlog4cplus; dest_p->setAppl(appl_); edm::service::NamedDestination * ndest = new edm::service::NamedDestination ( "log4cplus", dest_p ); edm::MessageLoggerQ::MLqEXT(ndest); }
MLlog4cplus::~MLlog4cplus | ( | ) |
Definition at line 57 of file MLlog4cplus.cc.
{ }
void MLlog4cplus::postBeginJob | ( | ) |
Definition at line 61 of file MLlog4cplus.cc.
{ }
void MLlog4cplus::postEndJob | ( | ) |
Definition at line 65 of file MLlog4cplus.cc.
{ }
void MLlog4cplus::postEventProcessing | ( | const edm::Event & | e, |
const edm::EventSetup & | |||
) |
Definition at line 74 of file MLlog4cplus.cc.
{ }
void MLlog4cplus::postModule | ( | const edm::ModuleDescription & | desc | ) |
Definition at line 82 of file MLlog4cplus.cc.
{ }
void MLlog4cplus::preEventProcessing | ( | const edm::EventID & | iID, |
const edm::Timestamp & | iTime | ||
) |
Definition at line 69 of file MLlog4cplus.cc.
{ }
void MLlog4cplus::preModule | ( | const edm::ModuleDescription & | ) |
Definition at line 78 of file MLlog4cplus.cc.
{ }
void MLlog4cplus::setAppl | ( | xdaq::Application * | app | ) | [static] |
Definition at line 85 of file MLlog4cplus.cc.
Referenced by evf::FUEventProcessor::enableMPEPSlave(), and evf::FUEventProcessor::FUEventProcessor().
{ appl_ = app; }
xdaq::Application * MLlog4cplus::appl_ = 0 [static, private] |
Definition at line 40 of file MLlog4cplus.h.
edm::EventID ML::MLlog4cplus::curr_event_ [private] |
Definition at line 38 of file MLlog4cplus.h.
edm::ELlog4cplus* ML::MLlog4cplus::dest_p [private] |
Definition at line 39 of file MLlog4cplus.h.