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 #include "G4SystemOfUnits.hh"
7 
10  sim::FieldBuilder *fieldBuilder_,
11  const edm::ParameterSet & p)
12  : G4VModularPhysicsList(), m_pPhysics(p), prodCuts(0) {
13  m_Verbosity = m_pPhysics.getUntrackedParameter<int>("Verbosity",0);
15 }
16 
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 
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 
#define LogDebug(id)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
const double GeV
Definition: MathUtil.h:16
int m_Verbosity
Definition: PhysicsList.h:26
HepPDT::ParticleDataTable ParticleDataTable
return((rh^lh)&mask)
const edm::ParameterSet m_pPhysics
Definition: PhysicsList.h:24
virtual void SetCuts()
Definition: PhysicsList.cc:25
virtual ~PhysicsList()
Definition: PhysicsList.cc:17
DDG4ProductionCuts * prodCuts
Definition: PhysicsList.h:25
Table table_
PhysicsList(G4LogicalVolumeToDDLogicalPartMap &map, const HepPDT::ParticleDataTable *table_, sim::FieldBuilder *fieldBuilder_, const edm::ParameterSet &p)
Definition: PhysicsList.cc:8