src
SimG4Core
HelpfulWatchers
src
BeginOfTrackCounter.h
Go to the documentation of this file.
1
#ifndef HelpfulWatchers_BeginOfTrackCounter_h
2
#define HelpfulWatchers_BeginOfTrackCounter_h
3
// -*- C++ -*-
4
//
5
// Package: HelpfulWatchers
6
// Class : BeginOfTrackCounter
7
//
19
//
20
// Original Author:
21
// Created: Tue Nov 29 12:26:39 EST 2005
22
//
23
24
// system include files
25
#include <string>
26
27
// user include files
28
#include "
SimG4Core/Notification/interface/BeginOfTrack.h
"
29
#include "
SimG4Core/Notification/interface/Observer.h
"
30
#include "
SimG4Core/Watcher/interface/SimProducer.h
"
31
32
// forward declarations
33
namespace
edm
{
34
class
ParameterSet
;
35
}
36
37
namespace
simwatcher
{
38
class
BeginOfTrackCounter
:
public
SimProducer
,
public
Observer
<const BeginOfTrack *> {
39
public
:
40
BeginOfTrackCounter
(
const
edm::ParameterSet
&);
41
BeginOfTrackCounter
(
const
BeginOfTrackCounter
&) =
delete
;
// stop default
42
const
BeginOfTrackCounter
&
operator=
(
const
BeginOfTrackCounter
&) =
delete
;
// stop default
43
44
// ---------- const member functions ---------------------
45
46
// ---------- static member functions --------------------
47
48
// ---------- member functions ---------------------------
49
void
produce
(
edm::Event
&,
const
edm::EventSetup
&)
override
;
50
51
private
:
52
void
update
(
const
BeginOfTrack
*)
override
;
53
// ---------- member data --------------------------------
54
int
m_count
;
55
std::string
m_label
;
56
};
57
58
}
// namespace simwatcher
59
#endif
BeginOfTrack.h
ParameterSet
Definition:
Functions.h:16
SimProducer.h
Observer.h
simwatcher::BeginOfTrackCounter::m_label
std::string m_label
Definition:
BeginOfTrackCounter.h:55
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
BeginOfTrack
Definition:
BeginOfTrack.h:6
simwatcher::BeginOfTrackCounter::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition:
BeginOfTrackCounter.cc:41
edm::EventSetup
Definition:
EventSetup.h:56
simwatcher::BeginOfTrackCounter
Definition:
BeginOfTrackCounter.h:38
simwatcher::BeginOfTrackCounter::update
void update(const BeginOfTrack *) override
This routine will be called when the appropriate signal arrives.
Definition:
BeginOfTrackCounter.cc:47
Observer
Definition:
Observer.h:23
simwatcher::BeginOfTrackCounter::m_count
int m_count
Definition:
BeginOfTrackCounter.h:54
simwatcher
Definition:
BeginOfTrackCounter.h:37
SimProducer
Definition:
SimProducer.h:64
simwatcher::BeginOfTrackCounter::BeginOfTrackCounter
BeginOfTrackCounter(const edm::ParameterSet &)
Definition:
BeginOfTrackCounter.cc:32
simwatcher::BeginOfTrackCounter::operator=
const BeginOfTrackCounter & operator=(const BeginOfTrackCounter &)=delete
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::ParameterSet
Definition:
ParameterSet.h:47
edm::Event
Definition:
Event.h:73
Generated for CMSSW Reference Manual by
1.8.14