SimG4Core
HelpfulWatchers
interface
MonopoleSteppingAction.h
Go to the documentation of this file.
1
#ifndef SimG4Core_HelpfulWatchers_MonopoleSteppingAction_H
2
#define SimG4Core_HelpfulWatchers_MonopoleSteppingAction_H
3
4
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
5
#include "
SimG4Core/Notification/interface/Observer.h
"
6
#include "
SimG4Core/Watcher/interface/SimWatcher.h
"
7
#include "
MagneticField/Engine/interface/MagneticField.h
"
8
#include "
MagneticField/Records/interface/IdealMagneticFieldRecord.h
"
9
10
#include "G4Step.hh"
11
#include <vector>
12
13
class
BeginOfRun
;
14
class
BeginOfTrack
;
15
16
class
MonopoleSteppingAction
:
public
SimWatcher
,
17
public
Observer
<const BeginOfRun *>,
18
public
Observer
<const BeginOfTrack *>,
19
public
Observer
<const G4Step *> {
20
public
:
21
MonopoleSteppingAction
(
edm::ParameterSet
const
&
p
);
22
~MonopoleSteppingAction
()
override
;
23
void
registerConsumes
(
edm::ConsumesCollector
)
override
;
24
void
beginRun
(
edm::EventSetup
const
&)
override
;
25
void
update
(
const
BeginOfRun
*)
override
;
26
void
update
(
const
BeginOfTrack
*)
override
;
27
void
update
(
const
G4Step *)
override
;
28
29
private
:
30
edm::ESGetToken<MagneticField, IdealMagneticFieldRecord>
tok_bFieldH_
;
31
bool
mode
,
actOnTrack
;
32
std::vector<int>
pdgCode
;
33
double
eStart
,
pxStart
,
pyStart
,
pzStart
;
34
double
dirxStart
,
diryStart
,
dirzStart
;
35
double
cMevToJ
,
cMeVToKgMByS
,
cInMByS
,
magCharge
,
bZ
;
36
};
37
38
#endif
MonopoleSteppingAction::pdgCode
std::vector< int > pdgCode
Definition:
MonopoleSteppingAction.h:32
MonopoleSteppingAction::tok_bFieldH_
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > tok_bFieldH_
Definition:
MonopoleSteppingAction.h:30
MonopoleSteppingAction::pxStart
double pxStart
Definition:
MonopoleSteppingAction.h:33
MonopoleSteppingAction::registerConsumes
void registerConsumes(edm::ConsumesCollector) override
Definition:
MonopoleSteppingAction.cc:27
Observer.h
MonopoleSteppingAction::magCharge
double magCharge
Definition:
MonopoleSteppingAction.h:35
BeginOfTrack
Definition:
BeginOfTrack.h:6
MonopoleSteppingAction::dirzStart
double dirzStart
Definition:
MonopoleSteppingAction.h:34
MagneticField.h
ParameterSet.h
MonopoleSteppingAction::dirxStart
double dirxStart
Definition:
MonopoleSteppingAction.h:34
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord >
MonopoleSteppingAction::update
void update(const BeginOfRun *) override
This routine will be called when the appropriate signal arrives.
Definition:
MonopoleSteppingAction.cc:40
SimWatcher
Definition:
SimWatcher.h:27
MonopoleSteppingAction::mode
bool mode
Definition:
MonopoleSteppingAction.h:31
MonopoleSteppingAction::diryStart
double diryStart
Definition:
MonopoleSteppingAction.h:34
MonopoleSteppingAction::MonopoleSteppingAction
MonopoleSteppingAction(edm::ParameterSet const &p)
Definition:
MonopoleSteppingAction.cc:19
MonopoleSteppingAction::cMevToJ
double cMevToJ
Definition:
MonopoleSteppingAction.h:35
BeginOfRun
Definition:
BeginOfRun.h:6
edm::EventSetup
Definition:
EventSetup.h:56
MonopoleSteppingAction::pyStart
double pyStart
Definition:
MonopoleSteppingAction.h:33
MonopoleSteppingAction::bZ
double bZ
Definition:
MonopoleSteppingAction.h:35
Observer
Definition:
Observer.h:23
MonopoleSteppingAction::cMeVToKgMByS
double cMeVToKgMByS
Definition:
MonopoleSteppingAction.h:35
MonopoleSteppingAction::beginRun
void beginRun(edm::EventSetup const &) override
Definition:
MonopoleSteppingAction.cc:32
MonopoleSteppingAction::actOnTrack
bool actOnTrack
Definition:
MonopoleSteppingAction.h:31
MonopoleSteppingAction::eStart
double eStart
Definition:
MonopoleSteppingAction.h:33
MonopoleSteppingAction::cInMByS
double cInMByS
Definition:
MonopoleSteppingAction.h:35
SimWatcher.h
edm::ParameterSet
Definition:
ParameterSet.h:47
MonopoleSteppingAction::pzStart
double pzStart
Definition:
MonopoleSteppingAction.h:33
IdealMagneticFieldRecord.h
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
MonopoleSteppingAction
Definition:
MonopoleSteppingAction.h:16
MonopoleSteppingAction::~MonopoleSteppingAction
~MonopoleSteppingAction() override
Definition:
MonopoleSteppingAction.cc:25
Generated for CMSSW Reference Manual by
1.8.14