Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
SimG4Core
Physics
src
PhysicsList.cc
Go to the documentation of this file.
1
#include "
SimG4Core/Physics/interface/PhysicsList.h
"
2
#include "
SimG4Core/Physics/interface/DDG4ProductionCuts.h
"
3
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
4
5
#include "G4LossTableManager.hh"
6
7
PhysicsList::PhysicsList
(
G4LogicalVolumeToDDLogicalPartMap
&
map
,
8
const
HepPDT::ParticleDataTable
*
table_
,
9
sim::FieldBuilder
*fieldBuilder_,
10
const
edm::ParameterSet
&
p
)
11
: G4VModularPhysicsList(), m_pPhysics(p), prodCuts(0) {
12
m_Verbosity
=
m_pPhysics
.
getUntrackedParameter
<
int
>(
"Verbosity"
,0);
13
prodCuts
=
new
DDG4ProductionCuts
(map,
m_Verbosity
);
14
}
15
16
PhysicsList::~PhysicsList
() {
17
if
(
m_Verbosity
> 1)
18
LogDebug
(
"Physics"
) <<
" G4BremsstrahlungThreshold was "
19
<< G4LossTableManager::Instance()->BremsstrahlungTh()/GeV
20
<<
" GeV "
;
21
if
(
prodCuts
!=0)
delete
prodCuts
;
22
}
23
24
void
PhysicsList::SetCuts
() {
25
26
SetDefaultCutValue(
m_pPhysics
.
getParameter
<
double
>(
"DefaultCutValue"
)*cm);
27
SetCutsWithDefault();
28
29
G4LossTableManager::Instance()->SetBremsstrahlungTh
30
(
m_pPhysics
.
getParameter
<
double
>(
"G4BremsstrahlungThreshold"
)*GeV);
31
32
if
(
m_pPhysics
.
getParameter
<
bool
>(
"CutsPerRegion"
) ) {
33
prodCuts
->
update
();
34
}
35
36
if
(
m_Verbosity
> 1) {
37
G4LossTableManager::Instance()->SetVerbose(
m_Verbosity
-1);
38
G4VUserPhysicsList::DumpCutValuesTable();
39
}
40
41
return
;
42
43
}
44
LogDebug
#define LogDebug(id)
Definition:
MessageLogger.h:501
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
PhysicsList.h
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
MessageLogger.h
DDG4ProductionCuts.h
PhysicsList::m_Verbosity
int m_Verbosity
Definition:
PhysicsList.h:26
DDG4ProductionCuts::update
void update()
Definition:
DDG4ProductionCuts.cc:42
ParticleDataTable
HepPDT::ParticleDataTable ParticleDataTable
Definition:
ParticleDataTable.h:9
sim::FieldBuilder
Definition:
FieldBuilder.h:19
Association.map
dictionary map
Definition:
Association.py:205
PhysicsList::SetCuts
virtual void SetCuts()
Definition:
PhysicsList.cc:24
DDMapper< G4LogicalVolume *, DDLogicalPart >
PhysicsList::~PhysicsList
virtual ~PhysicsList()
Definition:
PhysicsList.cc:16
hitfit::return
return
Definition:
Lepjets_Event_Jet.cc:278
PhysicsList::prodCuts
DDG4ProductionCuts * prodCuts
Definition:
PhysicsList.h:25
PhysicsList::PhysicsList
PhysicsList(G4LogicalVolumeToDDLogicalPartMap &map, const HepPDT::ParticleDataTable *table_, sim::FieldBuilder *fieldBuilder_, const edm::ParameterSet &p)
Definition:
PhysicsList.cc:7
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
edm::ParameterSet
Definition:
ParameterSet.h:35
table_
Table table_
Definition:
Actions.cc:22
DDG4ProductionCuts
Definition:
DDG4ProductionCuts.h:14
PhysicsList::m_pPhysics
edm::ParameterSet m_pPhysics
Definition:
PhysicsList.h:24
Generated for CMSSW Reference Manual by
1.8.5