Main Page
Namespaces
Classes
Package Documentation
SimG4Core
PhysicsLists
plugins
CMSModel.cc
Go to the documentation of this file.
1
#include "CMSModel.hh"
2
#include "
SimG4Core/PhysicsLists/interface/HadronPhysicsCMS.h
"
3
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
4
5
#include "G4DecayPhysics.hh"
6
#include "G4IonPhysics.hh"
7
#include "G4StoppingPhysics.hh"
8
#include "G4HadronElasticPhysics.hh"
9
10
#include "G4DataQuestionaire.hh"
11
12
CMSModel::CMSModel(
G4LogicalVolumeToDDLogicalPartMap
&
map
,
13
const
HepPDT::ParticleDataTable
*
table_
,
14
sim::ChordFinderSetter
*chordFinderSetter_,
15
const
edm::ParameterSet
&
p
) :
PhysicsList
(map, table_, chordFinderSetter_, p) {
16
17
G4DataQuestionaire it(
photon
);
18
19
int
ver = p.
getUntrackedParameter
<
int
>(
"Verbosity"
,0);
20
std::string
model = p.
getUntrackedParameter
<
std::string
>(
"Model"
,
"QGSP"
);
21
bool
quasiElastic = p.
getUntrackedParameter
<
bool
>(
"QuasiElastic"
,
true
);
22
edm::LogInfo
(
"PhysicsList"
) <<
"You are using the simulation engine: "
23
<< model <<
" with Flags for QuasiElastic "
24
<< quasiElastic <<
" and Verbosity Flag "
25
<< ver <<
"\n"
;
26
// Decays
27
RegisterPhysics(
new
G4DecayPhysics(ver));
28
29
// Hadron Elastic scattering
30
RegisterPhysics(
new
G4HadronElasticPhysics(ver));
31
32
// Hadron Physics
33
RegisterPhysics(
new
HadronPhysicsCMS
(model, quasiElastic));
34
35
// Stopping Physics
36
RegisterPhysics(
new
G4StoppingPhysics(ver));
37
38
// Ion Physics
39
RegisterPhysics(
new
G4IonPhysics(ver));
40
}
41
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
MessageLogger.h
HadronPhysicsCMS.h
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
sim::ChordFinderSetter
Definition:
ChordFinderSetter.h:5
ParticleDataTable
HepPDT::ParticleDataTable ParticleDataTable
Definition:
ParticleDataTable.h:8
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
HadronPhysicsCMS
Definition:
HadronPhysicsCMS.h:31
PhysicsList
Definition:
PhysicsList.h:14
DDMapper< G4LogicalVolume *, DDLogicalPart >
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
Generated for CMSSW Reference Manual by
1.8.11