Main Page
Namespaces
Classes
Package Documentation
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/CMSEmStandardPhysicsLPM.h
"
5
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
6
7
#include "G4DecayPhysics.hh"
8
#include "G4EmExtraPhysics.hh"
9
#include "G4IonPhysics.hh"
10
#include "G4StoppingPhysics.hh"
11
#include "G4HadronElasticPhysics.hh"
12
#include "G4NeutronTrackingCut.hh"
13
14
#include "G4DataQuestionaire.hh"
15
#include "G4HadronPhysicsFTFP_BERT.hh"
16
#include "G4SystemOfUnits.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
CMSEmStandardPhysicsLPM
(ver));
35
36
// Synchroton Radiation & GN Physics
37
RegisterPhysics(
new
G4EmExtraPhysics(ver));
38
39
// Decays
40
RegisterPhysics(
new
G4DecayPhysics(ver));
41
42
// Hadron Elastic scattering
43
RegisterPhysics(
new
G4HadronElasticPhysics(ver));
44
45
// Hadron Physics
46
RegisterPhysics(
new
G4HadronPhysicsFTFP_BERT(ver));
47
48
// Stopping Physics
49
RegisterPhysics(
new
G4StoppingPhysics(ver));
50
51
// Ion Physics
52
RegisterPhysics(
new
G4IonPhysics(ver));
53
54
// Neutron tracking cut
55
if
(tracking) {
56
G4NeutronTrackingCut* ncut=
new
G4NeutronTrackingCut(ver);
57
ncut->SetTimeLimit(timeLimit);
58
RegisterPhysics(ncut);
59
}
60
61
// Custom Physics
62
if
(ssPhys) {
63
RegisterPhysics(
new
CustomPhysicsListSS
(
"custom"
,p));
64
}
else
{
65
RegisterPhysics(
new
CustomPhysicsList
(
"custom"
,p));
66
}
67
}
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
CMSEmStandardPhysicsLPM.h
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
MessageLogger.h
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
sim::ChordFinderSetter
Definition:
ChordFinderSetter.h:5
ParticleDataTable
HepPDT::ParticleDataTable ParticleDataTable
Definition:
ParticleDataTable.h:8
CustomPhysicsListSS
Definition:
CustomPhysicsListSS.h:15
CustomPhysicsList.h
PhysicsList
Definition:
PhysicsList.h:14
CustomPhysicsList
Definition:
CustomPhysicsList.h:15
DDMapper< G4LogicalVolume *, DDLogicalPart >
CustomPhysicsListSS.h
edm::LogInfo
Definition:
MessageLogger.h:216
genParticles_cff.map
map
Definition:
genParticles_cff.py:11
table_
Table table_
Definition:
ExceptionActions.cc:21
muons2muons_cfi.photon
photon
Definition:
muons2muons_cfi.py:28
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
CMSEmStandardPhysicsLPM
Definition:
CMSEmStandardPhysicsLPM.h:8
CustomPhysics.h
tracking
Definition:
TempMeasurements.h:9
Generated for CMSSW Reference Manual by
1.8.11