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