Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
SimG4Core
PhysicsLists
plugins
QGSPCMS_BERT_EMV.cc
Go to the documentation of this file.
1
#include "QGSPCMS_BERT_EMV.hh"
2
#include "
SimG4Core/PhysicsLists/interface/CMSMonopolePhysics.h
"
3
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
4
5
#include "G4EmStandardPhysics_option1.hh"
6
#include "G4DecayPhysics.hh"
7
#include "G4EmExtraPhysics.hh"
8
#include "G4IonPhysics.hh"
9
#include "G4StoppingPhysics.hh"
10
#include "G4HadronElasticPhysics.hh"
11
#include "G4NeutronTrackingCut.hh"
12
#include "G4HadronicProcessStore.hh"
13
14
#include "G4DataQuestionaire.hh"
15
#include "G4HadronPhysicsQGSP_BERT.hh"
16
17
QGSPCMS_BERT_EMV::QGSPCMS_BERT_EMV(
G4LogicalVolumeToDDLogicalPartMap
&
map
,
18
const
HepPDT::ParticleDataTable
*
table_
,
19
sim::FieldBuilder
*fieldBuilder_,
20
const
edm::ParameterSet
&
p
) :
PhysicsList
(map, table_, fieldBuilder_, p) {
21
22
G4DataQuestionaire it(photon);
23
24
int
ver = p.
getUntrackedParameter
<
int
>(
"Verbosity"
,0);
25
bool
emPhys = p.
getUntrackedParameter
<
bool
>(
"EMPhysics"
,
true
);
26
bool
hadPhys = p.
getUntrackedParameter
<
bool
>(
"HadPhysics"
,
true
);
27
bool
tracking= p.
getParameter
<
bool
>(
"TrackingCut"
);
28
bool
munucl = p.
getParameter
<
bool
>(
"FlagMuNucl"
);
29
edm::LogInfo
(
"PhysicsList"
) <<
"You are using the simulation engine: "
30
<<
"QGSP_BERT_EMV with Flags for EM Physics "
31
<< emPhys <<
", for Hadronic Physics "
32
<< hadPhys <<
" and tracking cut "
<< tracking;
33
34
if
(emPhys) {
35
// EM Physics
36
RegisterPhysics(
new
G4EmStandardPhysics_option1(ver));
37
38
// Synchroton Radiation & GN Physics
39
G4EmExtraPhysics* gn =
new
G4EmExtraPhysics(ver);
40
if
(munucl) { G4String yes =
"on"
; gn->MuonNuclear(yes); }
41
RegisterPhysics(gn);
42
}
43
44
// Decays
45
this->RegisterPhysics(
new
G4DecayPhysics(ver) );
46
47
if
(hadPhys) {
48
G4HadronicProcessStore::Instance()->SetVerbose(ver);
49
50
// Hadron Elastic scattering
51
RegisterPhysics(
new
G4HadronElasticPhysics(ver));
52
53
// Hadron Physics
54
RegisterPhysics(
new
G4HadronPhysicsQGSP_BERT(ver));
55
56
// Stopping Physics
57
RegisterPhysics(
new
G4StoppingPhysics(ver));
58
59
// Ion Physics
60
RegisterPhysics(
new
G4IonPhysics(ver));
61
62
// Neutron tracking cut
63
if
(tracking) {
64
RegisterPhysics(
new
G4NeutronTrackingCut(ver));
65
}
66
}
67
68
// Monopoles
69
RegisterPhysics(
new
CMSMonopolePhysics
(table_,fieldBuilder_,p));
70
}
71
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
MessageLogger.h
ParticleDataTable
HepPDT::ParticleDataTable ParticleDataTable
Definition:
ParticleDataTable.h:8
sim::FieldBuilder
Definition:
FieldBuilder.h:19
PhysicsList
Definition:
PhysicsList.h:13
python.multivaluedict.map
def map
Definition:
multivaluedict.py:125
DDMapper< G4LogicalVolume *, DDLogicalPart >
edm::LogInfo
Definition:
MessageLogger.h:214
table_
Table table_
Definition:
ExceptionActions.cc:22
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
CMSMonopolePhysics
Definition:
CMSMonopolePhysics.h:15
CMSMonopolePhysics.h
edm::ParameterSet
Definition:
ParameterSet.h:35
Generated for CMSSW Reference Manual by
1.8.5