CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
edm::OutputWorker Class Reference

#include <OutputWorker.h>

Inheritance diagram for edm::OutputWorker:
edm::WorkerT< OutputModule > edm::Worker

Public Member Functions

void closeFile ()
 
void configure (OutputModuleDescription const &desc)
 
SelectionsArray const & keptProducts () const
 
bool limitReached () const
 
void openFile (FileBlock const &fb)
 
void openNewFileIfNeeded ()
 
 OutputWorker (std::auto_ptr< OutputModule > mod, ModuleDescription const &, WorkerParams const &)
 
bool shouldWeCloseFile () const
 
bool wantAllEvents () const
 
void writeLumi (LuminosityBlockPrincipal const &lbp)
 
void writeRun (RunPrincipal const &rp)
 
virtual ~OutputWorker ()
 
- Public Member Functions inherited from edm::WorkerT< OutputModule >
void setEventSelectionInfo (std::map< std::string, std::vector< std::pair< std::string, int > > > const &outputModulePathPositions, bool anyProductProduced)
 
void setModule (std::auto_ptr< OutputModule > &iModule)
 
 WorkerT (std::auto_ptr< OutputModule >, ModuleDescription const &, WorkerParams const &)
 
virtual ~WorkerT ()
 
- Public Member Functions inherited from edm::Worker
void beginJob ()
 
void clearCounters ()
 
ModuleDescription const * descPtr () const
 
ModuleDescription const & description () const
 
template<typename T >
bool doWork (typename T::MyPrincipal &, EventSetup const &c, CurrentProcessingContext const *cpc, CPUTimer *const timer)
 
void endJob ()
 
void pathFinished (EventPrincipal &)
 
void postDoEvent (EventPrincipal &)
 
void postForkReacquireResources (unsigned int iChildIndex, unsigned int iNumberOfChildren)
 
void preForkReleaseResources ()
 
void reset ()
 
void respondToCloseInputFile (FileBlock const &fb)
 
void respondToCloseOutputFiles (FileBlock const &fb)
 
void respondToOpenInputFile (FileBlock const &fb)
 
void respondToOpenOutputFiles (FileBlock const &fb)
 
void setActivityRegistry (boost::shared_ptr< ActivityRegistry > areg)
 
void setEarlyDeleteHelper (EarlyDeleteHelper *iHelper)
 
State state () const
 
std::pair< double, double > timeCpuReal () const
 
int timesExcept () const
 
int timesFailed () const
 
int timesPass () const
 
int timesPassed () const
 
int timesRun () const
 
int timesVisited () const
 
void useStopwatch ()
 
 Worker (ModuleDescription const &iMD, WorkerParams const &iWP)
 
virtual ~Worker ()
 

Additional Inherited Members

- Public Types inherited from edm::WorkerT< OutputModule >
typedef OutputModule ModuleType
 
typedef WorkerT< OutputModuleWorkerType
 
- Public Types inherited from edm::Worker
enum  State { Ready, Pass, Fail, Exception }
 
- Static Public Member Functions inherited from edm::WorkerT< OutputModule >
static std::auto_ptr
< OutputModule
makeModule (ModuleDescription const &, ParameterSet const &pset)
 
- Protected Member Functions inherited from edm::WorkerT< OutputModule >
OutputModulemodule ()
 
OutputModuleconst & module () const
 

Detailed Description

Definition at line 20 of file OutputWorker.h.

Constructor & Destructor Documentation

edm::OutputWorker::OutputWorker ( std::auto_ptr< OutputModule mod,
ModuleDescription const &  md,
WorkerParams const &  wp 
)

Definition at line 11 of file OutputWorker.cc.

13  :
14  WorkerT<OutputModule>(mod, md, wp)
15  {
16  }
list mod
Load physics model.
edm::OutputWorker::~OutputWorker ( )
virtual

Definition at line 18 of file OutputWorker.cc.

18  {
19  }

Member Function Documentation

void edm::OutputWorker::closeFile ( )

Definition at line 22 of file OutputWorker.cc.

References edm::OutputModule::doCloseFile(), and edm::WorkerT< OutputModule >::module().

Referenced by edm::Schedule::closeOutputFiles(), and Vispa.Main.Application.Application::tabCloseRequest().

22  {
23  module().doCloseFile();
24  }
OutputModule & module()
Definition: WorkerT.h:50
void doCloseFile()
Tell the OutputModule that is must end the current file.
void edm::OutputWorker::configure ( OutputModuleDescription const &  desc)

Definition at line 55 of file OutputWorker.cc.

References edm::OutputModule::configure(), and edm::WorkerT< OutputModule >::module().

55 {module().configure(desc);}
OutputModule & module()
Definition: WorkerT.h:50
void configure(OutputModuleDescription const &desc)
SelectionsArray const & edm::OutputWorker::keptProducts ( ) const

Definition at line 57 of file OutputWorker.cc.

References edm::OutputModule::keptProducts(), and edm::WorkerT< OutputModule >::module().

Referenced by edm::Schedule::initializeEarlyDelete().

57  {
58  return module().keptProducts();
59  }
SelectionsArray const & keptProducts() const
Definition: OutputModule.h:56
OutputModule & module()
Definition: WorkerT.h:50
bool edm::OutputWorker::limitReached ( ) const

Definition at line 53 of file OutputWorker.cc.

References edm::OutputModule::limitReached(), and edm::WorkerT< OutputModule >::module().

53 {return module().limitReached();}
OutputModule & module()
Definition: WorkerT.h:50
bool limitReached() const
Definition: OutputModule.h:211
void edm::OutputWorker::openFile ( FileBlock const &  fb)
void edm::OutputWorker::openNewFileIfNeeded ( )
bool edm::OutputWorker::shouldWeCloseFile ( ) const

Definition at line 27 of file OutputWorker.cc.

References edm::WorkerT< OutputModule >::module(), and edm::OutputModule::shouldWeCloseFile().

Referenced by edm::Schedule::shouldWeCloseOutput().

27  {
28  return module().shouldWeCloseFile();
29  }
OutputModule & module()
Definition: WorkerT.h:50
virtual bool shouldWeCloseFile() const
Ask the OutputModule if we should end the current file.
Definition: OutputModule.h:181
bool edm::OutputWorker::wantAllEvents ( ) const

Definition at line 51 of file OutputWorker.cc.

References edm::WorkerT< OutputModule >::module(), and edm::OutputModule::wantAllEvents().

51 {return module().wantAllEvents();}
OutputModule & module()
Definition: WorkerT.h:50
bool wantAllEvents() const
Definition: OutputModule.h:68
void edm::OutputWorker::writeLumi ( LuminosityBlockPrincipal const &  lbp)

Definition at line 47 of file OutputWorker.cc.

References edm::OutputModule::doWriteLuminosityBlock(), and edm::WorkerT< OutputModule >::module().

Referenced by edm::Schedule::writeLumi().

47  {
49  }
OutputModule & module()
Definition: WorkerT.h:50
void doWriteLuminosityBlock(LuminosityBlockPrincipal const &lbp)
void edm::OutputWorker::writeRun ( RunPrincipal const &  rp)

Definition at line 42 of file OutputWorker.cc.

References edm::OutputModule::doWriteRun(), and edm::WorkerT< OutputModule >::module().

Referenced by edm::Schedule::writeRun().

42  {
43  module().doWriteRun(rp);
44  }
OutputModule & module()
Definition: WorkerT.h:50
void doWriteRun(RunPrincipal const &rp)