CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PhysicsList.cc
Go to the documentation of this file.
4 
5 #include "G4LossTableManager.hh"
6 
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);
14 }
15 
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 
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 
#define LogDebug(id)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
int m_Verbosity
Definition: PhysicsList.h:26
HepPDT::ParticleDataTable ParticleDataTable
dictionary map
Definition: Association.py:205
virtual void SetCuts()
Definition: PhysicsList.cc:24
virtual ~PhysicsList()
Definition: PhysicsList.cc:16
DDG4ProductionCuts * prodCuts
Definition: PhysicsList.h:25
PhysicsList(G4LogicalVolumeToDDLogicalPartMap &map, const HepPDT::ParticleDataTable *table_, sim::FieldBuilder *fieldBuilder_, const edm::ParameterSet &p)
Definition: PhysicsList.cc:7
Table table_
Definition: Actions.cc:22
edm::ParameterSet m_pPhysics
Definition: PhysicsList.h:24