Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
#include "G4SystemOfUnits.hh"
7
8
PhysicsList::PhysicsList
(
G4LogicalVolumeToDDLogicalPartMap
&
map
,
9
const
HepPDT::ParticleDataTable
*
table_
,
10
sim::ChordFinderSetter
*chordFinderSetter_,
11
const
edm::ParameterSet
&
p
)
12
: G4VModularPhysicsList(), m_pPhysics(p), prodCuts(0) {
13
m_Verbosity
=
m_pPhysics
.
getUntrackedParameter
<
int
>(
"Verbosity"
,0);
14
prodCuts
=
new
DDG4ProductionCuts
(map,
m_Verbosity
,
m_pPhysics
);
15
}
16
17
PhysicsList::~PhysicsList
() {
18
if
(
m_Verbosity
> 1)
19
LogDebug
(
"Physics"
) <<
" G4BremsstrahlungThreshold was "
20
<< G4LossTableManager::Instance()->BremsstrahlungTh()/GeV
21
<<
" GeV "
;
22
if
(
prodCuts
!=0)
delete
prodCuts
;
23
}
24
25
void
PhysicsList::SetCuts
() {
26
27
SetDefaultCutValue(
m_pPhysics
.
getParameter
<
double
>(
"DefaultCutValue"
)*cm);
28
SetCutsWithDefault();
29
30
G4LossTableManager::Instance()->SetBremsstrahlungTh
31
(
m_pPhysics
.
getParameter
<
double
>(
"G4BremsstrahlungThreshold"
)*GeV);
32
33
if
(
m_pPhysics
.
getParameter
<
bool
>(
"CutsPerRegion"
) ) {
34
prodCuts
->
update
();
35
}
36
37
if
(
m_Verbosity
> 1) {
38
G4LossTableManager::Instance()->SetVerbose(
m_Verbosity
-1);
39
G4VUserPhysicsList::DumpCutValuesTable();
40
}
41
42
return
;
43
44
}
45
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:28
DDG4ProductionCuts::update
void update()
Definition:
DDG4ProductionCuts.cc:44
sim::ChordFinderSetter
Definition:
ChordFinderSetter.h:8
ParticleDataTable
HepPDT::ParticleDataTable ParticleDataTable
Definition:
ParticleDataTable.h:8
mathSSE::return
return((rh^lh)&mask)
python.multivaluedict.map
def map
Definition:
multivaluedict.py:125
PhysicsList::m_pPhysics
const edm::ParameterSet m_pPhysics
Definition:
PhysicsList.h:26
PhysicsList::SetCuts
virtual void SetCuts()
Definition:
PhysicsList.cc:25
PhysicsList::PhysicsList
PhysicsList(G4LogicalVolumeToDDLogicalPartMap &map, const HepPDT::ParticleDataTable *table_, sim::ChordFinderSetter *chordFinderSetter_, const edm::ParameterSet &p)
Definition:
PhysicsList.cc:8
DDMapper< G4LogicalVolume *, DDLogicalPart >
PhysicsList::~PhysicsList
virtual ~PhysicsList()
Definition:
PhysicsList.cc:17
PhysicsList::prodCuts
DDG4ProductionCuts * prodCuts
Definition:
PhysicsList.h:27
table_
Table table_
Definition:
ExceptionActions.cc:22
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
edm::ParameterSet
Definition:
ParameterSet.h:35
DDG4ProductionCuts
Definition:
DDG4ProductionCuts.h:15
Generated for CMSSW Reference Manual by
1.8.5