CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions
SonicEDProducer< Client, Capabilities > Class Template Referenceabstract

#include <SonicEDProducer.h>

Inheritance diagram for SonicEDProducer< Client, Capabilities >:
SonicAcquirer< Client, edm::stream::EDProducer< edm::ExternalWork, Capabilities... > > edm::stream::EDProducer< edm::ExternalWork, Capabilities... >

Public Types

typedef Client::Output Output
 
- Public Types inherited from SonicAcquirer< Client, edm::stream::EDProducer< edm::ExternalWork, Capabilities... > >
typedef Client::Input Input
 
- Public Types inherited from edm::stream::EDProducer< edm::ExternalWork, Capabilities... >
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Public Member Functions

void produce (edm::Event &iEvent, edm::EventSetup const &iSetup) final
 
virtual void produce (edm::Event &iEvent, edm::EventSetup const &iSetup, Output const &iOutput)=0
 
 SonicEDProducer (edm::ParameterSet const &cfg)
 
 ~SonicEDProducer () override=default
 
- Public Member Functions inherited from SonicAcquirer< Client, edm::stream::EDProducer< edm::ExternalWork, Capabilities... > >
void acquire (edm::Event const &iEvent, edm::EventSetup const &iSetup, edm::WaitingTaskWithArenaHolder holder) final
 
virtual void acquire (edm::Event const &iEvent, edm::EventSetup const &iSetup, Input &iInput)=0
 
void beginStream (edm::StreamID) override
 
 SonicAcquirer (edm::ParameterSet const &cfg)
 
 ~SonicAcquirer () override=default
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::ExternalWork, Capabilities... >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from SonicAcquirer< Client, edm::stream::EDProducer< edm::ExternalWork, Capabilities... > >
void makeClient ()
 
- Protected Attributes inherited from SonicAcquirer< Client, edm::stream::EDProducer< edm::ExternalWork, Capabilities... > >
std::unique_ptr< Client > client_
 
edm::ParameterSet clientPset_
 
std::string debugName_
 
std::chrono::time_point< std::chrono::high_resolution_clock > t_dispatch_
 
bool verbose_
 

Detailed Description

template<typename Client, typename... Capabilities>
class SonicEDProducer< Client, Capabilities >

Definition at line 14 of file SonicEDProducer.h.

Member Typedef Documentation

◆ Output

template<typename Client, typename... Capabilities>
typedef Client::Output SonicEDProducer< Client, Capabilities >::Output

Definition at line 17 of file SonicEDProducer.h.

Constructor & Destructor Documentation

◆ SonicEDProducer()

template<typename Client, typename... Capabilities>
SonicEDProducer< Client, Capabilities >::SonicEDProducer ( edm::ParameterSet const &  cfg)
inline

◆ ~SonicEDProducer()

template<typename Client, typename... Capabilities>
SonicEDProducer< Client, Capabilities >::~SonicEDProducer ( )
overridedefault

Member Function Documentation

◆ produce() [1/2]

template<typename Client, typename... Capabilities>
void SonicEDProducer< Client, Capabilities >::produce ( edm::Event iEvent,
edm::EventSetup const &  iSetup 
)
inlinefinal

Definition at line 25 of file SonicEDProducer.h.

Referenced by SonicEDProducer< TritonClient, edm::GlobalCache< G >, Capabilities... >::produce().

25  {
26  //measure time between acquire and produce
27  if (this->verbose_)
28  sonic_utils::printDebugTime(this->debugName_, "dispatch() time: ", this->t_dispatch_);
29 
31  produce(iEvent, iSetup, this->client_->output());
32  if (this->verbose_)
33  sonic_utils::printDebugTime(this->debugName_, "produce() time: ", t0);
34 
35  //reset client data
36  this->client_->reset();
37  }
std::chrono::time_point< std::chrono::high_resolution_clock > t_dispatch_
Definition: SonicAcquirer.h:52
void produce(edm::Event &iEvent, edm::EventSetup const &iSetup) final
void printDebugTime(std::string_view debugName, std::string_view msg, const TimePoint &t0)
Definition: sonic_utils.cc:8

◆ produce() [2/2]

template<typename Client, typename... Capabilities>
virtual void SonicEDProducer< Client, Capabilities >::produce ( edm::Event iEvent,
edm::EventSetup const &  iSetup,
Output const &  iOutput 
)
pure virtual