CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
edm::StreamerOutputModule< Consumer > Class Template Reference

#include <StreamerOutputModule.h>

Inheritance diagram for edm::StreamerOutputModule< Consumer >:
edm::StreamerOutputModuleBase edm::OutputModule

Public Member Functions

 StreamerOutputModule (ParameterSet const &ps)
 
virtual ~StreamerOutputModule ()
 
- Public Member Functions inherited from edm::StreamerOutputModuleBase
 StreamerOutputModuleBase (ParameterSet const &ps)
 
virtual ~StreamerOutputModuleBase ()
 
- Public Member Functions inherited from edm::OutputModule
BranchChildren const & branchChildren () const
 
boost::array< bool,
NumBranchTypes > const & 
hasNewlyDroppedBranch () const
 
SelectionsArray const & keptProducts () const
 
int maxEvents () const
 
 OutputModule (ParameterSet const &pset)
 
std::string const & processName () const
 
int remainingEvents () const
 
bool selected (BranchDescription const &desc) const
 
void selectProducts ()
 
bool wantAllEvents () const
 
virtual ~OutputModule ()
 

Static Public Member Functions

static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::StreamerOutputModuleBase
static void fillDescription (ParameterSetDescription &desc)
 
- Static Public Member Functions inherited from edm::OutputModule
static const std::string & baseType ()
 
static void fillDescription (ParameterSetDescription &desc)
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 

Private Member Functions

virtual void doOutputEvent (EventMsgBuilder const &msg) const
 
virtual void doOutputHeader (InitMsgBuilder const &init_message) const
 
virtual void start () const
 
virtual void stop () const
 

Private Attributes

std::auto_ptr< Consumer > c_
 

Additional Inherited Members

- Public Types inherited from edm::OutputModule
typedef OutputModule ModuleType
 
typedef OutputWorker WorkerType
 
- Protected Member Functions inherited from edm::OutputModule
CurrentProcessingContext const * currentContext () const
 
ModuleDescription const & description () const
 
void doBeginJob ()
 
bool doBeginLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetup const &c, CurrentProcessingContext const *cpc)
 
bool doBeginRun (RunPrincipal const &rp, EventSetup const &c, CurrentProcessingContext const *cpc)
 
void doEndJob ()
 
bool doEndLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetup const &c, CurrentProcessingContext const *cpc)
 
bool doEndRun (RunPrincipal const &rp, EventSetup const &c, CurrentProcessingContext const *cpc)
 
bool doEvent (EventPrincipal const &ep, EventSetup const &c, CurrentProcessingContext const *cpc)
 
Trig getTriggerResults (Event const &ep) const
 
Trig getTriggerResults (EventPrincipal const &ep) const
 
ParameterSetID selectorConfig () const
 

Detailed Description

template<class Consumer>
class edm::StreamerOutputModule< Consumer >

Definition at line 10 of file StreamerOutputModule.h.

Constructor & Destructor Documentation

template<class Consumer >
edm::StreamerOutputModule< Consumer >::StreamerOutputModule ( ParameterSet const &  ps)
explicit

Consumers are suppose to provide void doOutputHeader(InitMsgBuilder const& init_message) void doOutputEvent(EventMsgBuilder const& msg) void start() void stop() static void fillDescription(ParameterSetDescription&)

Definition at line 38 of file StreamerOutputModule.h.

38  :
40  c_(new Consumer(ps)) {
41  }
std::auto_ptr< Consumer > c_
StreamerOutputModuleBase(ParameterSet const &ps)
template<class Consumer >
edm::StreamerOutputModule< Consumer >::~StreamerOutputModule ( )
virtual

Definition at line 44 of file StreamerOutputModule.h.

44 {}

Member Function Documentation

template<class Consumer >
void edm::StreamerOutputModule< Consumer >::doOutputEvent ( EventMsgBuilder const &  msg) const
privatevirtual

Implements edm::StreamerOutputModuleBase.

Definition at line 67 of file StreamerOutputModule.h.

67  {
68  c_->doOutputEvent(msg); // You can't use msg in StreamerOutputModule after this point
69  }
std::auto_ptr< Consumer > c_
template<class Consumer >
void edm::StreamerOutputModule< Consumer >::doOutputHeader ( InitMsgBuilder const &  init_message) const
privatevirtual

Implements edm::StreamerOutputModuleBase.

Definition at line 60 of file StreamerOutputModule.h.

60  {
61  c_->doOutputHeader(init_message);
62  }
std::auto_ptr< Consumer > c_
template<class Consumer >
void edm::StreamerOutputModule< Consumer >::fillDescriptions ( ConfigurationDescriptions descriptions)
static

Definition at line 73 of file StreamerOutputModule.h.

References edm::ConfigurationDescriptions::add(), and edm::StreamerOutputModuleBase::fillDescription().

73  {
76  Consumer::fillDescription(desc);
77  descriptions.add("streamerOutput", desc);
78  }
static void fillDescription(ParameterSetDescription &desc)
template<class Consumer >
void edm::StreamerOutputModule< Consumer >::start ( void  ) const
privatevirtual

Implements edm::StreamerOutputModuleBase.

Definition at line 48 of file StreamerOutputModule.h.

48  {
49  c_->start();
50  }
std::auto_ptr< Consumer > c_
template<class Consumer >
void edm::StreamerOutputModule< Consumer >::stop ( ) const
privatevirtual

Implements edm::StreamerOutputModuleBase.

Definition at line 54 of file StreamerOutputModule.h.

54  {
55  c_->stop();
56  }
std::auto_ptr< Consumer > c_

Member Data Documentation

template<class Consumer >
std::auto_ptr<Consumer> edm::StreamerOutputModule< Consumer >::c_
private

Definition at line 32 of file StreamerOutputModule.h.