SimG4Core
PhysicsLists
plugins
FTFPCMS_BERT_EMN.cc
Go to the documentation of this file.
1
#include "
FTFPCMS_BERT_EMN.h
"
2
#include "
SimG4Core/PhysicsLists/interface/CMSEmStandardPhysicsXS.h
"
3
#include "
SimG4Core/PhysicsLists/interface/CMSHadronPhysicsFTFP_BERT.h
"
4
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
5
6
#include "G4DecayPhysics.hh"
7
#include "G4EmExtraPhysics.hh"
8
#include "G4IonPhysics.hh"
9
#include "G4StoppingPhysics.hh"
10
#include "G4HadronElasticPhysics.hh"
11
12
FTFPCMS_BERT_EMN::FTFPCMS_BERT_EMN
(
const
edm::ParameterSet
&
p
) :
PhysicsList
(
p
) {
13
int
ver =
p
.getUntrackedParameter<
int
>(
"Verbosity"
, 0);
14
bool
emPhys =
p
.getUntrackedParameter<
bool
>(
"EMPhysics"
,
true
);
15
bool
hadPhys =
p
.getUntrackedParameter<
bool
>(
"HadPhysics"
,
true
);
16
double
minFTFP =
p
.getParameter<
double
>(
"EminFTFP"
) *
CLHEP::GeV
;
17
double
maxBERT =
p
.getParameter<
double
>(
"EmaxBERT"
) *
CLHEP::GeV
;
18
double
maxBERTpi =
p
.getParameter<
double
>(
"EmaxBERTpi"
) *
CLHEP::GeV
;
19
edm::LogVerbatim
(
"PhysicsList"
) <<
"CMS Physics List FTFP_BERT_EMN: "
20
<<
"\n Flags for EM Physics: "
<< emPhys <<
"; Hadronic Physics: "
<< hadPhys
21
<<
"\n transition energy Bertini/FTFP from "
<< minFTFP /
CLHEP::GeV
<<
" to "
22
<< maxBERT /
CLHEP::GeV
<<
":"
<< maxBERTpi /
CLHEP::GeV
<<
" GeV"
;
23
24
if
(emPhys) {
25
// EM Physics
26
RegisterPhysics(
new
CMSEmStandardPhysicsXS
(ver,
p
));
27
28
// Synchroton Radiation & GN Physics
29
G4EmExtraPhysics* gn =
new
G4EmExtraPhysics(ver);
30
RegisterPhysics(gn);
31
}
32
33
// Decays
34
this->RegisterPhysics(
new
G4DecayPhysics(ver));
35
36
if
(hadPhys) {
37
// Hadron Elastic scattering
38
RegisterPhysics(
new
G4HadronElasticPhysics(ver));
39
40
// Hadron Physics
41
RegisterPhysics(
new
CMSHadronPhysicsFTFP_BERT
(minFTFP, maxBERT, maxBERTpi, minFTFP, maxBERT));
42
43
// Stopping Physics
44
RegisterPhysics(
new
G4StoppingPhysics(ver));
45
46
// Ion Physics
47
RegisterPhysics(
new
G4IonPhysics(ver));
48
}
49
}
MessageLogger.h
FTFPCMS_BERT_EMN.h
CMSHadronPhysicsFTFP_BERT.h
PhysicsList
Definition:
PhysicsList.h:7
edm::ParameterSet
Definition:
ParameterSet.h:47
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
CMSEmStandardPhysicsXS
Definition:
CMSEmStandardPhysicsXS.h:19
GeV
const double GeV
Definition:
MathUtil.h:16
FTFPCMS_BERT_EMN::FTFPCMS_BERT_EMN
FTFPCMS_BERT_EMN(const edm::ParameterSet &p)
Definition:
FTFPCMS_BERT_EMN.cc:12
CMSHadronPhysicsFTFP_BERT
Definition:
CMSHadronPhysicsFTFP_BERT.h:23
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition:
MessageLogger.h:128
CMSEmStandardPhysicsXS.h
Generated for CMSSW Reference Manual by
1.8.16