Main Page
Namespaces
Classes
Package Documentation
SimG4Core
CustomPhysics
interface
RHStopTracer.h
Go to the documentation of this file.
1
#ifndef SimG4Core_RHStopTracer_H
2
#define SimG4Core_RHStopTracer_H
3
4
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
5
6
#include "
SimG4Core/Watcher/interface/SimProducer.h
"
7
#include "
SimG4Core/Notification/interface/Observer.h
"
8
9
class
BeginOfRun
;
10
class
BeginOfEvent
;
11
class
BeginOfTrack
;
12
class
EndOfTrack
;
13
class
G4Step;
14
class
G4ParticleDefinition;
15
16
class
RHStopTracer
:
public
SimProducer
,
17
public
Observer
<const BeginOfRun *>,
18
public
Observer
<const BeginOfEvent *>,
19
public
Observer
<const BeginOfTrack *>,
20
public
Observer
<const EndOfTrack *>
21
{
22
public
:
23
RHStopTracer
(
edm::ParameterSet
const
&
p
);
24
virtual
~RHStopTracer
();
25
void
update
(
const
BeginOfRun
*);
26
void
update
(
const
BeginOfEvent
*);
27
void
update
(
const
BeginOfTrack
*);
28
void
update
(
const
EndOfTrack
*);
29
void
produce
(
edm::Event
&,
const
edm::EventSetup
&);
30
private
:
31
struct
StopPoint
{
32
StopPoint
(
const
std::string
& fName,
double
fX,
double
fY,
double
fZ,
double
fT,
int
fId,
double
fMass,
double
fCharge)
33
:
name
(fName),
x
(fX),
y
(fY),
z
(fZ),
t
(fT),
id
(fId),
mass
(fMass),
charge
(fCharge)
34
{}
35
std::string
name
;
36
double
x
;
37
double
y
;
38
double
z
;
39
double
t
;
40
int
id
;
41
double
mass
;
42
double
charge
;
43
};
44
bool
mStopRegular
;
45
double
mTraceEnergy
;
46
std::string
mTraceParticleName
;
47
const
G4ParticleDefinition*
mParticle
;
48
std::vector <StopPoint>
mStopPoints
;
49
};
50
51
#endif
RHStopTracer::StopPoint::z
double z
Definition:
RHStopTracer.h:38
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
RHStopTracer::update
void update(const BeginOfRun *)
This routine will be called when the appropriate signal arrives.
Definition:
RHStopTracer.cc:45
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
SimProducer.h
Observer.h
RHStopTracer::mParticle
const G4ParticleDefinition * mParticle
Definition:
RHStopTracer.h:47
RHStopTracer::StopPoint::name
std::string name
Definition:
RHStopTracer.h:35
BeginOfTrack
Definition:
BeginOfTrack.h:6
ParameterSet.h
EndOfTrack
Definition:
EndOfTrack.h:6
RHStopTracer::StopPoint::StopPoint
StopPoint(const std::string &fName, double fX, double fY, double fZ, double fT, int fId, double fMass, double fCharge)
Definition:
RHStopTracer.h:32
RHStopTracer::~RHStopTracer
virtual ~RHStopTracer()
Definition:
RHStopTracer.cc:42
RHStopTracer::mTraceEnergy
double mTraceEnergy
Definition:
RHStopTracer.h:45
RHStopTracer
Definition:
RHStopTracer.h:16
BeginOfRun
Definition:
BeginOfRun.h:6
RHStopTracer::StopPoint::id
int id
Definition:
RHStopTracer.h:40
RHStopTracer::StopPoint
Definition:
RHStopTracer.h:31
edm::EventSetup
Definition:
EventSetup.h:45
RHStopTracer::mTraceParticleName
std::string mTraceParticleName
Definition:
RHStopTracer.h:46
RHStopTracer::RHStopTracer
RHStopTracer(edm::ParameterSet const &p)
Definition:
RHStopTracer.cc:20
Observer
Definition:
Observer.h:24
RHStopTracer::produce
void produce(edm::Event &, const edm::EventSetup &)
Definition:
RHStopTracer.cc:99
RHStopTracer::StopPoint::t
double t
Definition:
RHStopTracer.h:39
RHStopTracer::StopPoint::y
double y
Definition:
RHStopTracer.h:37
BeginOfEvent
Definition:
BeginOfEvent.h:6
RHStopTracer::mStopRegular
bool mStopRegular
Definition:
RHStopTracer.h:44
SimProducer
Definition:
SimProducer.h:66
RHStopTracer::StopPoint::charge
double charge
Definition:
RHStopTracer.h:42
RHStopTracer::StopPoint::x
double x
Definition:
RHStopTracer.h:36
edm::ParameterSet
Definition:
ParameterSet.h:36
RHStopTracer::StopPoint::mass
double mass
Definition:
RHStopTracer.h:41
edm::Event
Definition:
Event.h:66
RHStopTracer::mStopPoints
std::vector< StopPoint > mStopPoints
Definition:
RHStopTracer.h:48
Generated for CMSSW Reference Manual by
1.8.11