Main Page
Namespaces
Classes
Package Documentation
SimG4CMS
Forward
interface
TotemTestGem.h
Go to the documentation of this file.
1
#ifndef Forward_TotemTestGem_h
2
#define Forward_TotemTestGem_h 1
3
// -*- C++ -*-
4
//
5
// Package: Forward
6
// Class : TotemTestGem
7
//
16
//
17
// Original Author:
18
// Created: Tue May 16 10:14:34 CEST 2006
19
//
20
21
// system include files
22
#include <iostream>
23
#include <memory>
24
#include <vector>
25
#include <string>
26
27
// user include files
28
#include "
SimG4Core/Notification/interface/Observer.h
"
29
#include "
SimG4Core/Notification/interface/BeginOfJob.h
"
30
#include "
SimG4Core/Notification/interface/BeginOfEvent.h
"
31
#include "
SimG4Core/Notification/interface/EndOfEvent.h
"
32
#include "
SimG4Core/Watcher/interface/SimProducer.h
"
33
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
34
35
#include "
SimDataFormats/Forward/interface/TotemTestHistoClass.h
"
36
#include "
SimG4CMS/Forward/interface/TotemG4Hit.h
"
37
38
class
G4Step;
39
40
class
TotemTestGem
:
public
SimProducer
,
41
public
Observer
<const BeginOfEvent *>,
42
public
Observer
<const EndOfEvent *> {
43
44
public
:
45
46
TotemTestGem
(
const
edm::ParameterSet
&
p
);
47
~TotemTestGem
()
override
;
48
49
void
produce
(
edm::Event
&,
const
edm::EventSetup
&)
override
;
50
51
private
:
52
// observer classes
53
void
update
(
const
BeginOfEvent
* evt)
override
;
54
void
update
(
const
EndOfEvent
* evt)
override
;
55
56
void
clear
();
57
void
fillEvent
(
TotemTestHistoClass
&);
58
59
private
:
60
61
//Keep parameters and internal memory
62
std::vector<std::string>
names
;
63
int
evtnum
;
64
std::vector<TotemG4Hit*>
hits
;
65
66
};
67
68
#endif
TotemTestGem::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition:
TotemTestGem.cc:54
TotemTestGem::fillEvent
void fillEvent(TotemTestHistoClass &)
Definition:
TotemTestGem.cc:101
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
TotemTestGem
Definition:
TotemTestGem.h:40
TotemTestHistoClass
Definition:
TotemTestHistoClass.h:26
TotemTestGem::update
void update(const BeginOfEvent *evt) override
This routine will be called when the appropriate signal arrives.
Definition:
TotemTestGem.cc:61
SimProducer.h
BeginOfEvent.h
EndOfEvent
Definition:
EndOfEvent.h:6
Observer.h
TotemG4Hit.h
ParameterSet.h
edm::EventSetup
Definition:
EventSetup.h:48
TotemTestGem::names
std::vector< std::string > names
Definition:
TotemTestGem.h:62
TotemTestGem::clear
void clear()
Definition:
TotemTestGem.cc:123
TotemTestGem::~TotemTestGem
~TotemTestGem() override
Definition:
TotemTestGem.cc:47
Observer
Definition:
Observer.h:24
BeginOfEvent
Definition:
BeginOfEvent.h:6
BeginOfJob.h
EndOfEvent.h
SimProducer
Definition:
SimProducer.h:66
TotemTestGem::hits
std::vector< TotemG4Hit * > hits
Definition:
TotemTestGem.h:64
TotemTestHistoClass.h
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Event
Definition:
Event.h:69
TotemTestGem::TotemTestGem
TotemTestGem(const edm::ParameterSet &p)
Definition:
TotemTestGem.cc:38
TotemTestGem::evtnum
int evtnum
Definition:
TotemTestGem.h:63
Generated for CMSSW Reference Manual by
1.8.11