Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
SimG4Core
CustomPhysics
plugins
RHStopTracer.h
Go to the documentation of this file.
1
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
2
3
#include "
SimG4Core/Watcher/interface/SimProducer.h
"
4
#include "
SimG4Core/Notification/interface/Observer.h
"
5
6
7
#include <boost/regex.hpp>
8
9
class
BeginOfRun
;
10
class
BeginOfEvent
;
11
class
BeginOfTrack
;
12
class
EndOfTrack
;
13
class
G4Step;
14
15
class
RHStopTracer
:
public
SimProducer
,
16
public
Observer
<const BeginOfRun *>,
17
public
Observer
<const BeginOfEvent *>,
18
public
Observer
<const BeginOfTrack *>,
19
public
Observer
<const EndOfTrack *>
20
{
21
public
:
22
RHStopTracer
(
edm::ParameterSet
const
&
p
);
23
virtual
~RHStopTracer
();
24
void
update
(
const
BeginOfRun
*);
25
void
update
(
const
BeginOfEvent
*);
26
void
update
(
const
BeginOfTrack
*);
27
void
update
(
const
EndOfTrack
*);
28
void
produce
(
edm::Event
&,
const
edm::EventSetup
&);
29
private
:
30
struct
StopPoint
{
31
StopPoint
(
const
std::string
&
fName
,
double
fX,
double
fY,
double
fZ,
double
fT,
int
fId,
double
fMass,
double
fCharge)
32
:
name
(fName),
x
(fX),
y
(fY),
z
(fZ),
t
(fT),
id
(fId),
mass
(fMass),
charge
(fCharge)
33
{}
34
std::string
name
;
35
double
x
;
36
double
y
;
37
double
z
;
38
double
t
;
39
int
id
;
40
double
mass
;
41
double
charge
;
42
};
43
bool
mStopRegular
;
44
double
mTraceEnergy
;
45
boost::regex
mTraceParticleNameRegex
;
46
std::vector <StopPoint>
mStopPoints
;
47
bool
matched
(
const
std::string
&
fName
)
const
;
48
};
RHStopTracer::StopPoint::z
double z
Definition:
RHStopTracer.h:37
RHStopTracer::update
void update(const BeginOfRun *)
This routine will be called when the appropriate signal arrives.
Definition:
RHStopTracer.cc:39
RHStopTracer::matched
bool matched(const std::string &fName) const
Definition:
RHStopTracer.cc:92
SimProducer.h
Observer.h
RHStopTracer::StopPoint::name
std::string name
Definition:
RHStopTracer.h:34
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
BeginOfTrack
Definition:
BeginOfTrack.h:6
ParameterSet.h
RHStopTracer::mTraceParticleNameRegex
boost::regex mTraceParticleNameRegex
Definition:
RHStopTracer.h:45
MainPageGenerator.fName
tuple fName
Definition:
MainPageGenerator.py:301
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:31
RHStopTracer::~RHStopTracer
virtual ~RHStopTracer()
Definition:
RHStopTracer.cc:36
RHStopTracer::mTraceEnergy
double mTraceEnergy
Definition:
RHStopTracer.h:44
RHStopTracer
Definition:
RHStopTracer.h:15
BeginOfRun
Definition:
BeginOfRun.h:6
RHStopTracer::StopPoint::id
int id
Definition:
RHStopTracer.h:39
RHStopTracer::StopPoint
Definition:
RHStopTracer.h:30
edm::EventSetup
Definition:
EventSetup.h:45
RHStopTracer::RHStopTracer
RHStopTracer(edm::ParameterSet const &p)
Definition:
RHStopTracer.cc:18
Observer
Definition:
Observer.h:24
RHStopTracer::produce
void produce(edm::Event &, const edm::EventSetup &)
Definition:
RHStopTracer.cc:96
RHStopTracer::StopPoint::t
double t
Definition:
RHStopTracer.h:38
RHStopTracer::StopPoint::y
double y
Definition:
RHStopTracer.h:36
BeginOfEvent
Definition:
BeginOfEvent.h:6
RHStopTracer::mStopRegular
bool mStopRegular
Definition:
RHStopTracer.h:43
SimProducer
Definition:
SimProducer.h:66
RHStopTracer::StopPoint::charge
double charge
Definition:
RHStopTracer.h:41
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
RHStopTracer::StopPoint::x
double x
Definition:
RHStopTracer.h:35
edm::ParameterSet
Definition:
ParameterSet.h:36
RHStopTracer::StopPoint::mass
double mass
Definition:
RHStopTracer.h:40
edm::Event
Definition:
Event.h:65
RHStopTracer::mStopPoints
std::vector< StopPoint > mStopPoints
Definition:
RHStopTracer.h:46
Generated for CMSSW Reference Manual by
1.8.5