CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::eventsetup::SynchronousEventSetupsController Class Reference

#include <SynchronousEventSetupsController.h>

Public Member Functions

void eventSetupForInstance (IOVSyncValue const &)
 
std::shared_ptr< EventSetupProvidermakeProvider (ParameterSet &, ActivityRegistry *, ParameterSet const *eventSetupPset=nullptr)
 
SynchronousEventSetupsController const & operator= (SynchronousEventSetupsController &&)=delete
 
SynchronousEventSetupsController const & operator= (SynchronousEventSetupsController const &)=delete
 
 SynchronousEventSetupsController ()
 
 SynchronousEventSetupsController (SynchronousEventSetupsController &&)=delete
 
 SynchronousEventSetupsController (SynchronousEventSetupsController const &)=delete
 
 ~SynchronousEventSetupsController ()
 

Private Attributes

EventSetupsController controller_
 
tbb::global_control globalControl_
 
tbb::task_group taskGroup_
 

Detailed Description

Description: Manages a group of EventSetups which can share components.

Usage: Useful for unit testing parts of the EventSetup system

Definition at line 30 of file SynchronousEventSetupsController.h.

Constructor & Destructor Documentation

◆ SynchronousEventSetupsController() [1/3]

edm::eventsetup::SynchronousEventSetupsController::SynchronousEventSetupsController ( )

Definition at line 24 of file SynchronousEventSetupsController.cc.

25  : globalControl_(tbb::global_control::max_allowed_parallelism, 1) {}

◆ ~SynchronousEventSetupsController()

edm::eventsetup::SynchronousEventSetupsController::~SynchronousEventSetupsController ( )

Definition at line 27 of file SynchronousEventSetupsController.cc.

27  {
28  FinalWaitingTask finalTask;
30  do {
31  taskGroup_.wait();
32  } while (not finalTask.done());
33  }

References controller_, edm::FinalWaitingTask::done(), edm::eventsetup::EventSetupsController::endIOVsAsync(), and taskGroup_.

◆ SynchronousEventSetupsController() [2/3]

edm::eventsetup::SynchronousEventSetupsController::SynchronousEventSetupsController ( SynchronousEventSetupsController const &  )
delete

◆ SynchronousEventSetupsController() [3/3]

edm::eventsetup::SynchronousEventSetupsController::SynchronousEventSetupsController ( SynchronousEventSetupsController &&  )
delete

Member Function Documentation

◆ eventSetupForInstance()

void edm::eventsetup::SynchronousEventSetupsController::eventSetupForInstance ( IOVSyncValue const &  syncValue)

◆ makeProvider()

std::shared_ptr< EventSetupProvider > edm::eventsetup::SynchronousEventSetupsController::makeProvider ( ParameterSet iPSet,
ActivityRegistry activityRegistry,
ParameterSet const *  eventSetupPset = nullptr 
)

Definition at line 35 of file SynchronousEventSetupsController.cc.

36  {
37  return controller_.makeProvider(iPSet, activityRegistry, eventSetupPset);
38  }

References controller_, and edm::eventsetup::EventSetupsController::makeProvider().

◆ operator=() [1/2]

SynchronousEventSetupsController const& edm::eventsetup::SynchronousEventSetupsController::operator= ( SynchronousEventSetupsController &&  )
delete

◆ operator=() [2/2]

SynchronousEventSetupsController const& edm::eventsetup::SynchronousEventSetupsController::operator= ( SynchronousEventSetupsController const &  )
delete

Member Data Documentation

◆ controller_

EventSetupsController edm::eventsetup::SynchronousEventSetupsController::controller_
private

◆ globalControl_

tbb::global_control edm::eventsetup::SynchronousEventSetupsController::globalControl_
private

Definition at line 48 of file SynchronousEventSetupsController.h.

◆ taskGroup_

tbb::task_group edm::eventsetup::SynchronousEventSetupsController::taskGroup_
private
edm::eventsetup::EventSetupsController::makeProvider
std::shared_ptr< EventSetupProvider > makeProvider(ParameterSet &, ActivityRegistry *, ParameterSet const *eventSetupPset=nullptr)
Definition: EventSetupsController.cc:42
edm::eventsetup::synchronousEventSetupForInstance
void synchronousEventSetupForInstance(IOVSyncValue const &syncValue, tbb::task_group &iGroup, eventsetup::EventSetupsController &espController)
Definition: EventSetupsController.cc:414
edm::eventsetup::SynchronousEventSetupsController::globalControl_
tbb::global_control globalControl_
Definition: SynchronousEventSetupsController.h:48
edm::eventsetup::SynchronousEventSetupsController::taskGroup_
tbb::task_group taskGroup_
Definition: SynchronousEventSetupsController.h:49
edm::WaitingTaskHolder
Definition: WaitingTaskHolder.h:32
edm::eventsetup::EventSetupsController::endIOVsAsync
void endIOVsAsync(edm::WaitingTaskHolder iEndTask)
Definition: EventSetupsController.cc:36
edm::eventsetup::SynchronousEventSetupsController::controller_
EventSetupsController controller_
Definition: SynchronousEventSetupsController.h:50