Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
SimG4Core
PhysicsLists
plugins
LHEPCMS.cc
Go to the documentation of this file.
1
#include "LHEPCMS.hh"
2
#include "
SimG4Core/PhysicsLists/interface/CMSEmStandardPhysics.h
"
3
#include "
SimG4Core/PhysicsLists/interface/CMSMonopolePhysics.h
"
4
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
5
6
#include "G4DecayPhysics.hh"
7
#include "G4EmExtraPhysics.hh"
8
#include "G4IonPhysics.hh"
9
#include "G4HadronElasticPhysics.hh"
10
11
#include "G4DataQuestionaire.hh"
12
#include "HadronPhysicsLHEP.hh"
13
14
LHEPCMS::LHEPCMS(
G4LogicalVolumeToDDLogicalPartMap
&
map
,
15
const
HepPDT::ParticleDataTable
*
table_
,
16
sim::FieldBuilder
*fieldBuilder_,
17
const
edm::ParameterSet
&
p
) :
PhysicsList
(map, table_, fieldBuilder_, p) {
18
19
G4DataQuestionaire it(photon);
20
21
int
ver = p.
getUntrackedParameter
<
int
>(
"Verbosity"
,0);
22
bool
emPhys = p.
getUntrackedParameter
<
bool
>(
"EMPhysics"
,
true
);
23
bool
hadPhys = p.
getUntrackedParameter
<
bool
>(
"HadPhysics"
,
true
);
24
edm::LogInfo
(
"PhysicsList"
) <<
"You are using the simulation engine: "
25
<<
"LHEP 4.2 with Flags for EM Physics "
26
<< emPhys <<
" and for Hadronic Physics "
27
<< hadPhys <<
"\n"
;
28
29
if
(emPhys) {
30
// EM Physics
31
RegisterPhysics(
new
CMSEmStandardPhysics
(
"standard EM"
,ver));
32
33
// Synchroton Radiation & GN Physics
34
RegisterPhysics(
new
G4EmExtraPhysics(
"extra EM"
));
35
}
36
37
// General Physics - i.e. decay
38
RegisterPhysics(
new
G4DecayPhysics(
"decay"
));
39
40
if
(hadPhys) {
41
// Hadron Elastic scattering
42
RegisterPhysics(
new
G4HadronElasticPhysics(
"LElastic"
,ver,
false
));
43
44
// Hadron Physics
45
RegisterPhysics(
new
HadronPhysicsLHEP(
"hadron"
));
46
47
// Ion Physics
48
RegisterPhysics(
new
G4IonPhysics(
"ion"
));
49
}
50
51
// Monopoles
52
RegisterPhysics(
new
CMSMonopolePhysics
(table_,fieldBuilder_,p));
53
}
54
55
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
MessageLogger.h
ParticleDataTable
HepPDT::ParticleDataTable ParticleDataTable
Definition:
ParticleDataTable.h:9
CMSEmStandardPhysics
Definition:
CMSEmStandardPhysics.h:7
sim::FieldBuilder
Definition:
FieldBuilder.h:19
PhysicsList
Definition:
PhysicsList.h:13
python.multivaluedict.map
def map
Definition:
multivaluedict.py:125
DDMapper< G4LogicalVolume *, DDLogicalPart >
CMSEmStandardPhysics.h
edm::LogInfo
Definition:
MessageLogger.h:214
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
CMSMonopolePhysics
Definition:
CMSMonopolePhysics.h:15
CMSMonopolePhysics.h
edm::ParameterSet
Definition:
ParameterSet.h:35
table_
Table table_
Definition:
Actions.cc:22
Generated for CMSSW Reference Manual by
1.8.5