Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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/CustomPhysics/interface/CustomPhysicsListSS.h
"
4
#include "
SimG4Core/PhysicsLists/interface/CMSEmStandardPhysics95msc93.h
"
5
#include "
SimG4Core/PhysicsLists/interface/CMSEmStandardPhysics.h
"
6
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
7
8
#include "G4DecayPhysics.hh"
9
#include "G4EmExtraPhysics.hh"
10
#include "G4IonPhysics.hh"
11
#include "G4StoppingPhysics.hh"
12
#include "G4HadronElasticPhysics.hh"
13
#include "G4NeutronTrackingCut.hh"
14
15
#include "G4DataQuestionaire.hh"
16
#include "G4HadronPhysicsQGSP_FTFP_BERT.hh"
17
18
CustomPhysics::CustomPhysics
(
G4LogicalVolumeToDDLogicalPartMap
&
map
,
19
const
HepPDT::ParticleDataTable
*
table_
,
20
sim::ChordFinderSetter
*chordFinderSetter_,
21
const
edm::ParameterSet
&
p
) :
PhysicsList
(map, table_, chordFinderSetter_, p) {
22
23
G4DataQuestionaire it(photon);
24
25
int
ver = p.
getUntrackedParameter
<
int
>(
"Verbosity"
,0);
26
bool
tracking= p.
getParameter
<
bool
>(
"TrackingCut"
);
27
bool
ssPhys = p.
getUntrackedParameter
<
bool
>(
"ExoticaPhysicsSS"
,
false
);
28
double
timeLimit = p.
getParameter
<
double
>(
"MaxTrackTime"
)*ns;
29
edm::LogInfo
(
"PhysicsList"
) <<
"You are using the simulation engine: "
30
<<
"QGSP_FTFP_BERT_EML for regular particles \n"
31
<<
"CustomPhysicsList "
<< ssPhys <<
" for exotics; "
32
<<
" tracking cut "
<< tracking <<
" t(ns)= "
<< timeLimit/ns;
33
// EM Physics
34
RegisterPhysics(
new
CMSEmStandardPhysics
(ver));
35
//RegisterPhysics(new CMSEmStandardPhysics95msc93("EM standard msc93",ver,""));
36
37
// Synchroton Radiation & GN Physics
38
RegisterPhysics(
new
G4EmExtraPhysics(ver));
39
40
// Decays
41
RegisterPhysics(
new
G4DecayPhysics(ver));
42
43
// Hadron Elastic scattering
44
RegisterPhysics(
new
G4HadronElasticPhysics(ver));
45
46
// Hadron Physics
47
RegisterPhysics(
new
G4HadronPhysicsQGSP_FTFP_BERT(ver));
48
49
// Stopping Physics
50
RegisterPhysics(
new
G4StoppingPhysics(ver));
51
52
// Ion Physics
53
RegisterPhysics(
new
G4IonPhysics(ver));
54
55
// Neutron tracking cut
56
if
(tracking) {
57
G4NeutronTrackingCut* ncut=
new
G4NeutronTrackingCut(ver);
58
ncut->SetTimeLimit(timeLimit);
59
RegisterPhysics(ncut);
60
}
61
62
// Custom Physics
63
if
(ssPhys) {
64
RegisterPhysics(
new
CustomPhysicsListSS
(
"custom"
,p));
65
}
else
{
66
RegisterPhysics(
new
CustomPhysicsList
(
"custom"
,p));
67
}
68
}
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
MessageLogger.h
CMSEmStandardPhysics95msc93.h
sim::ChordFinderSetter
Definition:
ChordFinderSetter.h:8
ParticleDataTable
HepPDT::ParticleDataTable ParticleDataTable
Definition:
ParticleDataTable.h:8
CustomPhysicsListSS
Definition:
CustomPhysicsListSS.h:15
CustomPhysicsList.h
CMSEmStandardPhysics
Definition:
CMSEmStandardPhysics.h:7
PhysicsList
Definition:
PhysicsList.h:15
CustomPhysicsList
Definition:
CustomPhysicsList.h:15
python.multivaluedict.map
def map
Definition:
multivaluedict.py:125
DDMapper< G4LogicalVolume *, DDLogicalPart >
CustomPhysicsListSS.h
CMSEmStandardPhysics.h
edm::LogInfo
Definition:
MessageLogger.h:214
table_
Table table_
Definition:
ExceptionActions.cc:22
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
edm::ParameterSet
Definition:
ParameterSet.h:36
CustomPhysics::CustomPhysics
CustomPhysics(G4LogicalVolumeToDDLogicalPartMap &map, const HepPDT::ParticleDataTable *table_, sim::ChordFinderSetter *chordFinderSetter_, const edm::ParameterSet &p)
Definition:
CustomPhysics.cc:18
CustomPhysics.h
Generated for CMSSW Reference Manual by
1.8.5