Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
// $Id: TotemTestGem.h,v 1.2 2006/11/16 16:54:11 sunanda Exp $
20
//
21
22
// system include files
23
#include <iostream>
24
#include <memory>
25
#include <vector>
26
#include <string>
27
28
// user include files
29
#include "
SimG4Core/Notification/interface/Observer.h
"
30
#include "
SimG4Core/Notification/interface/BeginOfJob.h
"
31
#include "
SimG4Core/Notification/interface/BeginOfEvent.h
"
32
#include "
SimG4Core/Notification/interface/EndOfEvent.h
"
33
#include "
SimG4Core/Watcher/interface/SimProducer.h
"
34
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
35
36
#include "
SimDataFormats/Forward/interface/TotemTestHistoClass.h
"
37
#include "
SimG4CMS/Forward/interface/TotemG4Hit.h
"
38
39
class
G4Step;
40
41
class
TotemTestGem
:
public
SimProducer
,
42
public
Observer
<const BeginOfEvent *>,
43
public
Observer
<const EndOfEvent *> {
44
45
public
:
46
47
TotemTestGem
(
const
edm::ParameterSet
&
p
);
48
virtual
~TotemTestGem
();
49
50
virtual
void
produce
(
edm::Event
&,
const
edm::EventSetup
&);
51
52
private
:
53
// observer classes
54
void
update
(
const
BeginOfEvent
* evt);
55
void
update
(
const
EndOfEvent
* evt);
56
57
void
clear
();
58
void
fillEvent
(
TotemTestHistoClass
&);
59
60
private
:
61
62
//Keep parameters and internal memory
63
std::vector<std::string>
names
;
64
int
evtnum
;
65
std::vector<TotemG4Hit*>
hits
;
66
67
};
68
69
#endif
TotemTestGem::fillEvent
void fillEvent(TotemTestHistoClass &)
Definition:
TotemTestGem.cc:102
TotemTestGem
Definition:
TotemTestGem.h:41
TotemTestHistoClass
Definition:
TotemTestHistoClass.h:27
TotemTestGem::produce
virtual void produce(edm::Event &, const edm::EventSetup &)
Definition:
TotemTestGem.cc:55
SimProducer.h
BeginOfEvent.h
EndOfEvent
Definition:
EndOfEvent.h:6
Observer.h
TotemG4Hit.h
ParameterSet.h
TotemTestGem::update
void update(const BeginOfEvent *evt)
This routine will be called when the appropriate signal arrives.
Definition:
TotemTestGem.cc:62
edm::EventSetup
Definition:
EventSetup.h:44
TotemTestGem::names
std::vector< std::string > names
Definition:
TotemTestGem.h:63
TotemTestGem::clear
void clear()
Definition:
TotemTestGem.cc:124
Observer
Definition:
Observer.h:25
BeginOfEvent
Definition:
BeginOfEvent.h:6
BeginOfJob.h
EndOfEvent.h
SimProducer
Definition:
SimProducer.h:60
TotemTestGem::hits
std::vector< TotemG4Hit * > hits
Definition:
TotemTestGem.h:65
TotemTestHistoClass.h
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
edm::ParameterSet
Definition:
ParameterSet.h:35
edm::Event
Definition:
Event.h:50
TotemTestGem::TotemTestGem
TotemTestGem(const edm::ParameterSet &p)
Definition:
TotemTestGem.cc:39
TotemTestGem::~TotemTestGem
virtual ~TotemTestGem()
Definition:
TotemTestGem.cc:48
TotemTestGem::evtnum
int evtnum
Definition:
TotemTestGem.h:64
Generated for CMSSW Reference Manual by
1.8.5