Main Page
Namespaces
Classes
Package Documentation
FWCore
Framework
src
EventAcquireSignalsSentry.h
Go to the documentation of this file.
1
#ifndef FWCore_Framework_EventAcquireSignalsSentry_h
2
#define FWCore_Framework_EventAcquireSignalsSentry_h
3
// -*- C++ -*-
4
//
5
// Package: FWCore/Framework
6
// Class : EventAcquireSignalsSentry
7
//
16
//
17
// Original Author: W. David Dagenhart
18
// Created: Mon, 20 October 2017
19
//
20
21
// system include files
22
#include "
FWCore/ServiceRegistry/interface/ActivityRegistry.h
"
23
#include "
FWCore/ServiceRegistry/interface/ModuleCallingContext.h
"
24
25
// user include files
26
27
// forward declarations
28
namespace
edm
{
29
class
EventAcquireSignalsSentry
{
30
31
public
:
32
EventAcquireSignalsSentry
(
ActivityRegistry
* iReg,
33
ModuleCallingContext
const
* iContext) :
34
m_reg
(iReg),
35
m_context
(iContext)
36
{ iReg->
preModuleEventAcquireSignal_
( *(iContext->
getStreamContext
()), *iContext);}
37
38
~EventAcquireSignalsSentry
() {
39
m_reg
->
postModuleEventAcquireSignal_
( *(
m_context
->
getStreamContext
()), *
m_context
);
40
}
41
42
private
:
43
// ---------- member data --------------------------------
44
ActivityRegistry
*
m_reg
;
// We do not use propagate_const because the registry itself is mutable.
45
ModuleCallingContext
const
*
m_context
;
46
};
47
}
48
49
#endif
edm::ModuleCallingContext::getStreamContext
StreamContext const * getStreamContext() const
Definition:
ModuleCallingContext.cc:37
edm::ModuleCallingContext
Definition:
ModuleCallingContext.h:30
edm::EventAcquireSignalsSentry
Definition:
EventAcquireSignalsSentry.h:29
edm::ActivityRegistry::postModuleEventAcquireSignal_
PostModuleEventAcquire postModuleEventAcquireSignal_
Definition:
ActivityRegistry.h:743
edm::EventAcquireSignalsSentry::~EventAcquireSignalsSentry
~EventAcquireSignalsSentry()
Definition:
EventAcquireSignalsSentry.h:38
edm::EventAcquireSignalsSentry::m_reg
ActivityRegistry * m_reg
Definition:
EventAcquireSignalsSentry.h:44
edm::EventAcquireSignalsSentry::m_context
ModuleCallingContext const * m_context
Definition:
EventAcquireSignalsSentry.h:45
ActivityRegistry.h
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::ActivityRegistry::preModuleEventAcquireSignal_
PreModuleEventAcquire preModuleEventAcquireSignal_
Definition:
ActivityRegistry.h:735
ModuleCallingContext.h
edm::ActivityRegistry
Definition:
ActivityRegistry.h:116
edm::EventAcquireSignalsSentry::EventAcquireSignalsSentry
EventAcquireSignalsSentry(ActivityRegistry *iReg, ModuleCallingContext const *iContext)
Definition:
EventAcquireSignalsSentry.h:32
Generated for CMSSW Reference Manual by
1.8.11