src
SimG4Core
CustomPhysics
plugins
DBremWatcher.h
Go to the documentation of this file.
1
#ifndef SimG4Core_DBremWatcher_H
2
#define SimG4Core_DBremWatcher_H
3
4
#include "
SimG4Core/Notification/interface/Observer.h
"
5
#include "
SimG4Core/Notification/interface/BeginOfTrack.h
"
6
#include "
SimG4Core/Notification/interface/EndOfTrack.h
"
7
#include "
SimG4Core/Notification/interface/BeginOfEvent.h
"
8
#include "
SimG4Core/Notification/interface/BeginOfRun.h
"
9
#include "
SimG4Core/Notification/interface/EndOfEvent.h
"
10
#include "
SimG4Core/Watcher/interface/SimProducer.h
"
11
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
12
#include "G4ThreeVector.hh"
13
14
#include <vector>
15
#include <tuple>
16
17
class
DBremWatcher
:
public
SimProducer
,
18
public
Observer
<const BeginOfTrack *>,
19
public
Observer
<const BeginOfEvent *>,
20
public
Observer
<const BeginOfRun *>,
21
public
Observer
<const EndOfEvent *>,
22
public
Observer
<const EndOfTrack *> {
23
public
:
24
DBremWatcher
(
edm::ParameterSet
const
&
p
);
25
~DBremWatcher
()
override
;
26
void
update
(
const
BeginOfTrack
*trk)
override
;
27
void
update
(
const
BeginOfEvent
*
event
)
override
;
28
void
update
(
const
EndOfEvent
*
event
)
override
;
29
void
update
(
const
BeginOfRun
*
run
)
override
;
30
void
update
(
const
EndOfTrack
*trk)
override
;
31
void
produce
(
edm::Event
&,
const
edm::EventSetup
&)
override
;
32
33
private
:
34
std::vector<int>
pdgs_
;
35
int
MotherId
;
36
float
m_weight
;
37
double
biasFactor
;
38
bool
foundbrem
;
39
G4ThreeVector
aPrimeTraj
;
40
G4ThreeVector
finaltraj
;
41
G4ThreeVector
VertexPos
;
42
float
f_energy
;
43
};
44
45
#endif
BeginOfTrack.h
DBremWatcher::biasFactor
double biasFactor
Definition:
DBremWatcher.h:37
DBremWatcher::DBremWatcher
DBremWatcher(edm::ParameterSet const &p)
Definition:
DBremWatcher.cc:28
SimProducer.h
DBremWatcher::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition:
DBremWatcher.cc:116
BeginOfEvent.h
EndOfEvent
Definition:
EndOfEvent.h:6
DBremWatcher::aPrimeTraj
G4ThreeVector aPrimeTraj
Definition:
DBremWatcher.h:39
Observer.h
writedatasetfile.run
run
Definition:
writedatasetfile.py:27
BeginOfTrack
Definition:
BeginOfTrack.h:6
ParameterSet.h
DBremWatcher::VertexPos
G4ThreeVector VertexPos
Definition:
DBremWatcher.h:41
EndOfTrack
Definition:
EndOfTrack.h:6
DBremWatcher::m_weight
float m_weight
Definition:
DBremWatcher.h:36
BeginOfRun
Definition:
BeginOfRun.h:6
edm::EventSetup
Definition:
EventSetup.h:56
DBremWatcher
Definition:
DBremWatcher.h:17
Observer
Definition:
Observer.h:23
DBremWatcher::finaltraj
G4ThreeVector finaltraj
Definition:
DBremWatcher.h:40
DBremWatcher::foundbrem
bool foundbrem
Definition:
DBremWatcher.h:38
BeginOfEvent
Definition:
BeginOfEvent.h:6
EndOfEvent.h
SimProducer
Definition:
SimProducer.h:64
DBremWatcher::update
void update(const BeginOfTrack *trk) override
This routine will be called when the appropriate signal arrives.
Definition:
DBremWatcher.cc:55
EndOfTrack.h
edm::ParameterSet
Definition:
ParameterSet.h:47
DBremWatcher::MotherId
int MotherId
Definition:
DBremWatcher.h:35
DBremWatcher::f_energy
float f_energy
Definition:
DBremWatcher.h:42
BeginOfRun.h
edm::Event
Definition:
Event.h:73
DBremWatcher::pdgs_
std::vector< int > pdgs_
Definition:
DBremWatcher.h:34
DBremWatcher::~DBremWatcher
~DBremWatcher() override
Definition:
DBremWatcher.cc:53
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
event
Definition:
event.py:1
Generated for CMSSW Reference Manual by
1.8.14