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, const std::string &debugName, bool verbose=true)
 
 ~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, const std::string &debugName="", bool verbose=true)
 
 ~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,
const std::string &  debugName,
bool  verbose = true 
)
inline

Definition at line 19 of file SonicEDProducer.h.

20  : SonicAcquirer<Client, edm::stream::EDProducer<edm::ExternalWork, Capabilities...>>(cfg, debugName, verbose) {}

◆ ~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.

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  }

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

◆ 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
SonicAcquirer
Definition: SonicAcquirer.h:15
submitPVValidationJobs.now
now
Definition: submitPVValidationJobs.py:639
SonicAcquirer< Client, edm::stream::EDProducer< edm::ExternalWork, Capabilities... > >::t_dispatch_
std::chrono::time_point< std::chrono::high_resolution_clock > t_dispatch_
Definition: SonicAcquirer.h:50
sonic_utils::printDebugTime
void printDebugTime(std::string_view debugName, std::string_view msg, const TimePoint &t0)
Definition: sonic_utils.cc:8
SonicAcquirer< Client, edm::stream::EDProducer< edm::ExternalWork, Capabilities... > >::verbose_
bool verbose_
Definition: SonicAcquirer.h:49
SonicEDProducer::produce
void produce(edm::Event &iEvent, edm::EventSetup const &iSetup) final
Definition: SonicEDProducer.h:25
FrontierCondition_GT_autoExpress_cfi.t0
t0
Definition: FrontierCondition_GT_autoExpress_cfi.py:149
verbose
static constexpr int verbose
Definition: HLTExoticaSubAnalysis.cc:25
edm::ExternalWork
Definition: moduleAbilities.h:116
edm::stream::EDProducer
Definition: EDProducer.h:36
SonicAcquirer< Client, edm::stream::EDProducer< edm::ExternalWork, Capabilities... > >::client_
std::unique_ptr< Client > client_
Definition: SonicAcquirer.h:47
looper.cfg
cfg
Definition: looper.py:296
SonicAcquirer< Client, edm::stream::EDProducer< edm::ExternalWork, Capabilities... > >::debugName_
std::string debugName_
Definition: SonicAcquirer.h:48