Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
FWCore
Framework
src
EventSignalsSentry.h
Go to the documentation of this file.
1
#ifndef FWCore_Framework_EventSignalsSentry_h
2
#define FWCore_Framework_EventSignalsSentry_h
3
// -*- C++ -*-
4
//
5
// Package: FWCore/Framework
6
// Class : EventSignalsSentry
7
//
16
//
17
// Original Author: Chris Jones
18
// Created: Mon, 12 May 2014 19:18:21 GMT
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
EventSignalsSentry
{
30
31
public
:
32
EventSignalsSentry
(
ActivityRegistry
* iReg,
33
ModuleCallingContext
const
* iContext) :
34
m_reg
(iReg),
35
m_context
(iContext)
36
{ iReg->
preModuleEventSignal_
( *(iContext->
getStreamContext
()), *iContext);}
37
38
~EventSignalsSentry
() {
39
m_reg
->
postModuleEventSignal_
( *(
m_context
->
getStreamContext
()), *
m_context
);
40
}
41
42
private
:
43
// ---------- member data --------------------------------
44
ActivityRegistry
*
m_reg
;
45
ModuleCallingContext
const
*
m_context
;
46
};
47
}
48
49
#endif
edm::ModuleCallingContext::getStreamContext
StreamContext const * getStreamContext() const
Definition:
ModuleCallingContext.cc:37
edm::ActivityRegistry::postModuleEventSignal_
PostModuleEvent postModuleEventSignal_
Definition:
ActivityRegistry.h:663
edm::ModuleCallingContext
Definition:
ModuleCallingContext.h:30
edm::EventSignalsSentry
Definition:
EventSignalsSentry.h:29
edm::EventSignalsSentry::~EventSignalsSentry
~EventSignalsSentry()
Definition:
EventSignalsSentry.h:38
edm::EventSignalsSentry::m_reg
ActivityRegistry * m_reg
Definition:
EventSignalsSentry.h:44
edm::EventSignalsSentry::EventSignalsSentry
EventSignalsSentry(ActivityRegistry *iReg, ModuleCallingContext const *iContext)
Definition:
EventSignalsSentry.h:32
ActivityRegistry.h
edm::ActivityRegistry::preModuleEventSignal_
PreModuleEvent preModuleEventSignal_
Definition:
ActivityRegistry.h:655
edm::EventSignalsSentry::m_context
ModuleCallingContext const * m_context
Definition:
EventSignalsSentry.h:45
ModuleCallingContext.h
edm::ActivityRegistry
Definition:
ActivityRegistry.h:86
Generated for CMSSW Reference Manual by
1.8.5