#include <EventFilter/Message2log4cplus/interface/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 28 of file MLlog4cplus.cc.
References appl_, dest_p, edm::MessageLoggerQ::MLqEXT(), and edm::ELlog4cplus::setAppl().
00029 { 00030 // we may want these in the future, but probably not, since the 00031 // MessageLogger service is supposed to deal with that stuff anyway (JBK) 00032 00033 // iRegistry.watchPostBeginJob(this,&MLlog4cplus::postBeginJob); 00034 // iRegistry.watchPostEndJob(this,&MLlog4cplus::postEndJob); 00035 00036 // iRegistry.watchPreProcessEvent(this,&MLlog4cplus::preEventProcessing); 00037 // iRegistry.watchPostProcessEvent(this,&MLlog4cplus::postEventProcessing); 00038 00039 // iRegistry.watchPreModule(this,&MLlog4cplus::preModule); 00040 // iRegistry.watchPostModule(this,&MLlog4cplus::postModule); 00041 00042 00043 // pseudo-code: 00044 // get message logger message queue (singleton) 00045 // make new ELlog4cplus object using parameterset set information 00046 // make a message with opcode NEWDEST 00047 // send message (NEWDEST,ELdest*) 00048 00049 00050 // we should first get a handle to the MessageLogger service to 00051 // ensure that it is initialized before we are (JBK) 00052 // edm::Service<edm::MessageLogger> handle; 00053 00054 dest_p = new ELlog4cplus; 00055 dest_p->setAppl(appl_); 00056 edm::service::NamedDestination * ndest = new edm::service::NamedDestination ( "log4cplus", dest_p ); 00057 edm::MessageLoggerQ::MLqEXT(ndest); 00058 }
MLlog4cplus::~MLlog4cplus | ( | ) |
void MLlog4cplus::postBeginJob | ( | ) |
void MLlog4cplus::postEndJob | ( | ) |
void MLlog4cplus::postEventProcessing | ( | const edm::Event & | e, | |
const edm::EventSetup & | ||||
) |
void MLlog4cplus::postModule | ( | const edm::ModuleDescription & | desc | ) |
void MLlog4cplus::preEventProcessing | ( | const edm::EventID & | iID, | |
const edm::Timestamp & | iTime | |||
) |
void MLlog4cplus::preModule | ( | const edm::ModuleDescription & | ) |
void MLlog4cplus::setAppl | ( | xdaq::Application * | app | ) | [static] |
Definition at line 89 of file MLlog4cplus.cc.
References appl_.
Referenced by evf::FUEventProcessor::FUEventProcessor().
00090 { 00091 appl_ = app; 00092 }
xdaq::Application * MLlog4cplus::appl_ = 0 [static, private] |
edm::EventID ML::MLlog4cplus::curr_event_ [private] |
Definition at line 38 of file MLlog4cplus.h.
edm::ELlog4cplus* ML::MLlog4cplus::dest_p [private] |