src
SimG4Core
Watcher
interface
SimWatcher.h
Go to the documentation of this file.
1
#ifndef Watcher_SimWatcher_h
2
#define Watcher_SimWatcher_h
3
// -*- C++ -*-
4
//
5
// Package: Watcher
6
// Class : SimWatcher
7
//
22
//
23
// Original Author:
24
// Created: Tue Nov 22 15:35:11 EST 2005
25
//
26
27
#include "
FWCore/Framework/interface/EventSetup.h
"
28
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
29
30
class
SimWatcher
{
31
public
:
32
SimWatcher
() {}
33
virtual
~SimWatcher
() {}
34
35
// Two methods are needed to be implemented in the thread
36
// safe watchers and producers
37
virtual
void
registerConsumes
(
edm::ConsumesCollector
){};
38
virtual
void
beginRun
(
edm::EventSetup
const
&){};
39
40
bool
isMT
()
const
{
return
applicableForMT
; }
41
42
SimWatcher
(
const
SimWatcher
&) =
delete
;
43
const
SimWatcher
&
operator=
(
const
SimWatcher
&) =
delete
;
44
45
protected
:
46
// Set "true" for thread safe watchers/producers
47
void
setMT
(
bool
val
) {
applicableForMT
=
val
; }
48
49
private
:
50
bool
applicableForMT
{
false
};
51
};
52
53
#endif
SimWatcher::setMT
void setMT(bool val)
Definition:
SimWatcher.h:47
SimWatcher::beginRun
virtual void beginRun(edm::EventSetup const &)
Definition:
SimWatcher.h:38
EventSetup.h
SimWatcher::operator=
const SimWatcher & operator=(const SimWatcher &)=delete
SimWatcher::isMT
bool isMT() const
Definition:
SimWatcher.h:40
SimWatcher
Definition:
SimWatcher.h:30
SimWatcher::SimWatcher
SimWatcher()
Definition:
SimWatcher.h:32
SimWatcher::applicableForMT
bool applicableForMT
Definition:
SimWatcher.h:50
edm::EventSetup
Definition:
EventSetup.h:59
SimWatcher::~SimWatcher
virtual ~SimWatcher()
Definition:
SimWatcher.h:33
SimWatcher::registerConsumes
virtual void registerConsumes(edm::ConsumesCollector)
Definition:
SimWatcher.h:37
heppy_batch.val
val
Definition:
heppy_batch.py:351
ConsumesCollector.h
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
Generated for CMSSW Reference Manual by
1.8.14