CMS 3D CMS Logo

ML::MLlog4cplus Class Reference

#include <EventFilter/Message2log4cplus/interface/MLlog4cplus.h>

List of all members.

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::ELlog4cplusdest_p

Static Private Attributes

static xdaq::Application * appl_ = 0


Detailed Description

Definition at line 22 of file MLlog4cplus.h.


Constructor & Destructor Documentation

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 (  ) 

Definition at line 61 of file MLlog4cplus.cc.

00062   {
00063   }


Member Function Documentation

void MLlog4cplus::postBeginJob (  ) 

Definition at line 65 of file MLlog4cplus.cc.

00066   {
00067   }

void MLlog4cplus::postEndJob (  ) 

Definition at line 69 of file MLlog4cplus.cc.

00070   {
00071   }

void MLlog4cplus::postEventProcessing ( const edm::Event e,
const edm::EventSetup  
)

Definition at line 78 of file MLlog4cplus.cc.

00079   {
00080   }

void MLlog4cplus::postModule ( const edm::ModuleDescription desc  ) 

Definition at line 86 of file MLlog4cplus.cc.

00087   {
00088   }

void MLlog4cplus::preEventProcessing ( const edm::EventID iID,
const edm::Timestamp iTime 
)

Definition at line 73 of file MLlog4cplus.cc.

00075   {
00076   }

void MLlog4cplus::preModule ( const edm::ModuleDescription  ) 

Definition at line 82 of file MLlog4cplus.cc.

00083   {
00084   }

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   }


Member Data Documentation

xdaq::Application * MLlog4cplus::appl_ = 0 [static, private]

Definition at line 40 of file MLlog4cplus.h.

Referenced by MLlog4cplus(), and setAppl().

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.

Referenced by MLlog4cplus().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:49:06 2009 for CMSSW by  doxygen 1.5.4