CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
edm::OutputModuleCommunicatorT< T > Class Template Reference

#include <OutputModuleBase.h>

Inheritance diagram for edm::OutputModuleCommunicatorT< T >:
edm::OutputModuleCommunicator

Public Member Functions

virtual void closeFile () override
 
virtual void configure (edm::OutputModuleDescription const &desc) override
 
virtual ModuleDescription const & description () const override
 
virtual edm::SelectedProductsForBranchType const & keptProducts () const override
 
virtual bool limitReached () const override
 
virtual void openFile (edm::FileBlock const &fb) override
 
 OutputModuleCommunicatorT (T *iModule)
 
virtual void selectProducts (edm::ProductRegistry const &preg, ThinnedAssociationsHelper const &) override
 
virtual void setEventSelectionInfo (std::map< std::string, std::vector< std::pair< std::string, int > > > const &outputModulePathPositions, bool anyProductProduced) override
 
virtual bool shouldWeCloseFile () const override
 
virtual bool wantAllEvents () const override
 
virtual void writeLumi (edm::LuminosityBlockPrincipal const &lbp, ProcessContext const *) override
 
virtual void writeRun (edm::RunPrincipal const &rp, ProcessContext const *) override
 
- Public Member Functions inherited from edm::OutputModuleCommunicator
 OutputModuleCommunicator ()=default
 
virtual ~OutputModuleCommunicator ()
 

Static Public Member Functions

static std::unique_ptr< edm::OutputModuleCommunicatorcreateIfNeeded (T *iMod)
 

Private Member Functions

Tmodule () const
 

Private Attributes

Tmodule_
 

Detailed Description

template<typename T>
class edm::OutputModuleCommunicatorT< T >

Definition at line 53 of file OutputModuleBase.h.

Constructor & Destructor Documentation

template<typename T >
edm::OutputModuleCommunicatorT< T >::OutputModuleCommunicatorT ( T iModule)
inline

Member Function Documentation

template<typename T >
void edm::OutputModuleCommunicatorT< T >::closeFile ( )
overridevirtual
template<typename T >
void edm::OutputModuleCommunicatorT< T >::configure ( edm::OutputModuleDescription const &  desc)
overridevirtual

Implements edm::OutputModuleCommunicator.

Definition at line 72 of file OutputModuleCommunicatorT.cc.

References python.rootplot.argparse::module.

72 {module().configure(desc);}
template<typename T >
static std::unique_ptr<edm::OutputModuleCommunicator> edm::OutputModuleCommunicatorT< T >::createIfNeeded ( T iMod)
inlinestatic

Definition at line 60 of file OutputModuleCommunicatorT.h.

References edm::impl::createCommunicatorIfNeeded(), and eostools::move().

60  {
62  }
std::unique_ptr< edm::OutputModuleCommunicator > createCommunicatorIfNeeded(void *)
def move(src, dest)
Definition: eostools.py:510
template<typename T >
ModuleDescription const & edm::OutputModuleCommunicatorT< T >::description ( ) const
overridevirtual

Implements edm::OutputModuleCommunicator.

Definition at line 91 of file OutputModuleCommunicatorT.cc.

References python.rootplot.argparse::module.

91  {
92  return module().description();
93  }
template<typename T >
edm::SelectedProductsForBranchType const & edm::OutputModuleCommunicatorT< T >::keptProducts ( ) const
overridevirtual

Implements edm::OutputModuleCommunicator.

Definition at line 75 of file OutputModuleCommunicatorT.cc.

References python.rootplot.argparse::module.

75  {
76  return module().keptProducts();
77  }
template<typename T >
bool edm::OutputModuleCommunicatorT< T >::limitReached ( ) const
overridevirtual
Returns
true if OutputModule has reached its limit on maximum number of events it wants to see

Implements edm::OutputModuleCommunicator.

Definition at line 69 of file OutputModuleCommunicatorT.cc.

References python.rootplot.argparse::module.

69 {return module().limitReached();}
template<typename T >
T& edm::OutputModuleCommunicatorT< T >::module ( ) const
inlineprivate

Definition at line 65 of file OutputModuleCommunicatorT.h.

References sistrip::module_.

template<typename T >
void edm::OutputModuleCommunicatorT< T >::openFile ( edm::FileBlock const &  fb)
overridevirtual
template<typename T >
void edm::OutputModuleCommunicatorT< T >::selectProducts ( edm::ProductRegistry const &  preg,
ThinnedAssociationsHelper const &  helper 
)
overridevirtual

Implements edm::OutputModuleCommunicator.

Definition at line 80 of file OutputModuleCommunicatorT.cc.

References python.rootplot.argparse::module.

80  {
81  module().selectProducts(preg, helper);
82  }
Definition: helper.py:1
template<typename T >
void edm::OutputModuleCommunicatorT< T >::setEventSelectionInfo ( std::map< std::string, std::vector< std::pair< std::string, int > > > const &  outputModulePathPositions,
bool  anyProductProduced 
)
overridevirtual

Implements edm::OutputModuleCommunicator.

Definition at line 85 of file OutputModuleCommunicatorT.cc.

References python.rootplot.argparse::module.

86  {
87  module().setEventSelectionInfo(outputModulePathPositions, anyProductProduced);
88  }
template<typename T >
bool edm::OutputModuleCommunicatorT< T >::shouldWeCloseFile ( ) const
overridevirtual
Returns
true if output module wishes to close its file

Implements edm::OutputModuleCommunicator.

Definition at line 25 of file OutputModuleCommunicatorT.cc.

References python.rootplot.argparse::module.

25  {
26  return module().shouldWeCloseFile();
27  }
template<typename T >
bool edm::OutputModuleCommunicatorT< T >::wantAllEvents ( ) const
overridevirtual
Returns
true if no event filtering is applied to OutputModule

Implements edm::OutputModuleCommunicator.

Definition at line 66 of file OutputModuleCommunicatorT.cc.

References python.rootplot.argparse::module.

66 {return module().wantAllEvents();}
template<typename T >
void edm::OutputModuleCommunicatorT< T >::writeLumi ( edm::LuminosityBlockPrincipal const &  lbp,
ProcessContext const *  processContext 
)
overridevirtual

Implements edm::OutputModuleCommunicator.

Definition at line 52 of file OutputModuleCommunicatorT.cc.

References edm::LuminosityBlockPrincipal::beginTime(), heppy_report::description, edm::LuminosityBlockPrincipal::id(), edm::RunPrincipal::index(), edm::LuminosityBlockPrincipal::index(), edm::GlobalContext::kWriteLuminosityBlock, python.rootplot.argparse::module, and edm::LuminosityBlockPrincipal::runPrincipal().

52  {
53  GlobalContext globalContext(GlobalContext::Transition::kWriteLuminosityBlock,
54  lbp.id(),
55  lbp.runPrincipal().index(),
56  lbp.index(),
57  lbp.beginTime(),
58  processContext);
59  ParentContext parentContext(&globalContext);
60  ModuleCallingContext mcc(&description());
61  ModuleContextSentry moduleContextSentry(&mcc, parentContext);
62  module().doWriteLuminosityBlock(lbp, &mcc);
63  }
virtual ModuleDescription const & description() const override
template<typename T >
void edm::OutputModuleCommunicatorT< T >::writeRun ( edm::RunPrincipal const &  rp,
ProcessContext const *  processContext 
)
overridevirtual

Implements edm::OutputModuleCommunicator.

Definition at line 37 of file OutputModuleCommunicatorT.cc.

References heppy_report::description, edm::RunPrincipal::endTime(), edm::RunPrincipal::index(), edm::LuminosityBlockIndex::invalidLuminosityBlockIndex(), edm::GlobalContext::kWriteRun, python.rootplot.argparse::module, and edm::RunPrincipal::run().

37  {
38  GlobalContext globalContext(GlobalContext::Transition::kWriteRun,
39  LuminosityBlockID(rp.run(), 0),
40  rp.index(),
42  rp.endTime(),
43  processContext);
44  ParentContext parentContext(&globalContext);
45  ModuleCallingContext mcc(&description());
46  ModuleContextSentry moduleContextSentry(&mcc, parentContext);
47  module().doWriteRun(rp, &mcc);
48  }
virtual ModuleDescription const & description() const override
static LuminosityBlockIndex invalidLuminosityBlockIndex()

Member Data Documentation

template<typename T >
T* edm::OutputModuleCommunicatorT< T >::module_
private

Definition at line 66 of file OutputModuleCommunicatorT.h.