CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
SonicAcquirer< Client, Module > Class Template Referenceabstract

#include <SonicAcquirer.h>

Inheritance diagram for SonicAcquirer< Client, Module >:

Public Types

typedef Client::Input Input
 

Public Member Functions

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
 
 SonicAcquirer (edm::ParameterSet const &cfg)
 
 ~SonicAcquirer () override=default
 

Protected Member Functions

void setDebugName (const std::string &debugName)
 

Protected Attributes

Client client_
 
std::chrono::time_point< std::chrono::high_resolution_clock > t_dispatch_
 

Detailed Description

template<typename Client, typename Module>
class SonicAcquirer< Client, Module >

Definition at line 13 of file SonicAcquirer.h.

Member Typedef Documentation

◆ Input

template<typename Client, typename Module>
typedef Client::Input SonicAcquirer< Client, Module >::Input

Definition at line 16 of file SonicAcquirer.h.

Constructor & Destructor Documentation

◆ SonicAcquirer()

template<typename Client, typename Module>
SonicAcquirer< Client, Module >::SonicAcquirer ( edm::ParameterSet const &  cfg)
inline

Definition at line 18 of file SonicAcquirer.h.

18 : client_(cfg.getParameter<edm::ParameterSet>("Client")) {}

◆ ~SonicAcquirer()

template<typename Client, typename Module>
SonicAcquirer< Client, Module >::~SonicAcquirer ( )
overridedefault

Member Function Documentation

◆ acquire() [1/2]

template<typename Client, typename Module>
void SonicAcquirer< Client, Module >::acquire ( edm::Event const &  iEvent,
edm::EventSetup const &  iSetup,
edm::WaitingTaskWithArenaHolder  holder 
)
inlinefinal

Definition at line 24 of file SonicAcquirer.h.

24  {
26  acquire(iEvent, iSetup, client_.input());
27  sonic_utils::printDebugTime(client_.debugName(), "acquire() time: ", t0);
29  client_.dispatch(holder);
30  }

Referenced by SonicAcquirer< Client, edm::stream::EDFilter< edm::ExternalWork, Capabilities... > >::acquire().

◆ acquire() [2/2]

template<typename Client, typename Module>
virtual void SonicAcquirer< Client, Module >::acquire ( edm::Event const &  iEvent,
edm::EventSetup const &  iSetup,
Input iInput 
)
pure virtual

◆ setDebugName()

template<typename Client, typename Module>
void SonicAcquirer< Client, Module >::setDebugName ( const std::string &  debugName)
inlineprotected

Definition at line 35 of file SonicAcquirer.h.

35 { client_.setDebugName(debugName); }

Member Data Documentation

◆ client_

template<typename Client, typename Module>
Client SonicAcquirer< Client, Module >::client_
protected

◆ t_dispatch_

template<typename Client, typename Module>
std::chrono::time_point<std::chrono::high_resolution_clock> SonicAcquirer< Client, Module >::t_dispatch_
protected
submitPVValidationJobs.now
now
Definition: submitPVValidationJobs.py:639
SonicAcquirer::t_dispatch_
std::chrono::time_point< std::chrono::high_resolution_clock > t_dispatch_
Definition: SonicAcquirer.h:38
sonic_utils::printDebugTime
void printDebugTime(std::string_view debugName, std::string_view msg, const TimePoint &t0)
Definition: sonic_utils.cc:8
FrontierCondition_GT_autoExpress_cfi.t0
t0
Definition: FrontierCondition_GT_autoExpress_cfi.py:148
SonicAcquirer::acquire
void acquire(edm::Event const &iEvent, edm::EventSetup const &iSetup, edm::WaitingTaskWithArenaHolder holder) final
Definition: SonicAcquirer.h:24
edm::ParameterSet
Definition: ParameterSet.h:47
iEvent
int iEvent
Definition: GenABIO.cc:224
looper.cfg
cfg
Definition: looper.py:297
SonicAcquirer::client_
Client client_
Definition: SonicAcquirer.h:37