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
(
const
edm::ParameterSet
&
p
) :
PhysicsList
(p) {
19
G4DataQuestionaire it(
photon
);
20
21
int
ver = p.
getUntrackedParameter
<
int
>(
"Verbosity"
, 0);
22
bool
tracking
= p.
getParameter
<
bool
>(
"TrackingCut"
);
23
bool
ssPhys = p.
getUntrackedParameter
<
bool
>(
"ExoticaPhysicsSS"
,
false
);
24
double
timeLimit = p.
getParameter
<
double
>(
"MaxTrackTime"
) * ns;
25
edm::LogInfo
(
"PhysicsList"
) <<
"You are using the simulation engine: "
26
<<
"FTFP_BERT_EMM for regular particles \n"
27
<<
"CustomPhysicsList "
<< ssPhys <<
" for exotics; "
28
<<
" tracking cut "
<< tracking <<
" t(ns)= "
<< timeLimit / ns;
29
// EM Physics
30
RegisterPhysics(
new
CMSEmStandardPhysicsLPM
(ver));
31
32
// Synchroton Radiation & GN Physics
33
RegisterPhysics(
new
G4EmExtraPhysics(ver));
34
35
// Decays
36
RegisterPhysics(
new
G4DecayPhysics(ver));
37
38
// Hadron Elastic scattering
39
RegisterPhysics(
new
G4HadronElasticPhysics(ver));
40
41
// Hadron Physics
42
RegisterPhysics(
new
G4HadronPhysicsFTFP_BERT(ver));
43
44
// Stopping Physics
45
RegisterPhysics(
new
G4StoppingPhysics(ver));
46
47
// Ion Physics
48
RegisterPhysics(
new
G4IonPhysics(ver));
49
50
// Neutron tracking cut
51
if
(tracking) {
52
G4NeutronTrackingCut* ncut =
new
G4NeutronTrackingCut(ver);
53
ncut->SetTimeLimit(timeLimit);
54
RegisterPhysics(ncut);
55
}
56
57
// Custom Physics
58
if
(ssPhys) {
59
RegisterPhysics(
new
CustomPhysicsListSS
(
"custom"
, p));
60
}
else
{
61
RegisterPhysics(
new
CustomPhysicsList
(
"custom"
, p));
62
}
63
}
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:153
CustomPhysicsListSS
Definition:
CustomPhysicsListSS.h:11
CustomPhysicsList.h
PhysicsList
Definition:
PhysicsList.h:7
CustomPhysicsList
Definition:
CustomPhysicsList.h:12
CustomPhysics::CustomPhysics
CustomPhysics(const edm::ParameterSet &p)
Definition:
CustomPhysics.cc:18
CustomPhysicsListSS.h
edm::LogInfo
Definition:
MessageLogger.h:254
muons2muons_cfi.photon
photon
Definition:
muons2muons_cfi.py:28
edm::ParameterSet
Definition:
ParameterSet.h:36
CMSEmStandardPhysicsLPM
Definition:
CMSEmStandardPhysicsLPM.h:8
CustomPhysics.h
tracking
Definition:
TempMeasurements.h:9
Generated for CMSSW Reference Manual by
1.8.11