CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
PhysicsList Class Reference

#include <PhysicsList.h>

Inheritance diagram for PhysicsList:
CustomPhysics GFlash LaserOpticalPhysics

Public Member Functions

 PhysicsList (G4LogicalVolumeToDDLogicalPartMap &map, const HepPDT::ParticleDataTable *table_, sim::ChordFinderSetter *chordFinderSetter_, const edm::ParameterSet &p)
 
virtual void SetCuts ()
 
virtual ~PhysicsList ()
 

Private Attributes

const edm::ParameterSet m_pPhysics
 
int m_Verbosity
 
DDG4ProductionCutsprodCuts
 

Detailed Description

Definition at line 15 of file PhysicsList.h.

Constructor & Destructor Documentation

PhysicsList::PhysicsList ( G4LogicalVolumeToDDLogicalPartMap map,
const HepPDT::ParticleDataTable table_,
sim::ChordFinderSetter chordFinderSetter_,
const edm::ParameterSet p 
)

Definition at line 8 of file PhysicsList.cc.

References edm::ParameterSet::getUntrackedParameter(), m_pPhysics, m_Verbosity, and prodCuts.

12  : G4VModularPhysicsList(), m_pPhysics(p), prodCuts(0) {
13  m_Verbosity = m_pPhysics.getUntrackedParameter<int>("Verbosity",0);
15 }
T getUntrackedParameter(std::string const &, T const &) const
int m_Verbosity
Definition: PhysicsList.h:28
const edm::ParameterSet m_pPhysics
Definition: PhysicsList.h:26
DDG4ProductionCuts * prodCuts
Definition: PhysicsList.h:27
PhysicsList::~PhysicsList ( )
virtual

Definition at line 17 of file PhysicsList.cc.

References GeV, LogDebug, m_Verbosity, and prodCuts.

17  {
18  if (m_Verbosity > 1)
19  LogDebug("Physics") << " G4BremsstrahlungThreshold was "
20  << G4LossTableManager::Instance()->BremsstrahlungTh()/GeV
21  << " GeV ";
22  if (prodCuts!=0) delete prodCuts;
23 }
#define LogDebug(id)
const double GeV
Definition: MathUtil.h:16
int m_Verbosity
Definition: PhysicsList.h:28
DDG4ProductionCuts * prodCuts
Definition: PhysicsList.h:27

Member Function Documentation

void PhysicsList::SetCuts ( )
virtual

Definition at line 25 of file PhysicsList.cc.

References edm::ParameterSet::getParameter(), GeV, m_pPhysics, m_Verbosity, prodCuts, mathSSE::return(), and DDG4ProductionCuts::update().

25  {
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 }
T getParameter(std::string const &) const
const double GeV
Definition: MathUtil.h:16
int m_Verbosity
Definition: PhysicsList.h:28
return((rh^lh)&mask)
const edm::ParameterSet m_pPhysics
Definition: PhysicsList.h:26
DDG4ProductionCuts * prodCuts
Definition: PhysicsList.h:27

Member Data Documentation

const edm::ParameterSet PhysicsList::m_pPhysics
private

Definition at line 26 of file PhysicsList.h.

Referenced by PhysicsList(), and SetCuts().

int PhysicsList::m_Verbosity
private

Definition at line 28 of file PhysicsList.h.

Referenced by PhysicsList(), SetCuts(), and ~PhysicsList().

DDG4ProductionCuts* PhysicsList::prodCuts
private

Definition at line 27 of file PhysicsList.h.

Referenced by PhysicsList(), SetCuts(), and ~PhysicsList().