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 prodCuts.

17  {
18  delete prodCuts;
19 }
DDG4ProductionCuts * prodCuts
Definition: PhysicsList.h:27

Member Function Documentation

void PhysicsList::SetCuts ( )
virtual

Definition at line 21 of file PhysicsList.cc.

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

21  {
22 
23  SetDefaultCutValue(m_pPhysics.getParameter<double>("DefaultCutValue")*cm);
24  SetCutsWithDefault();
25 
26  if ( m_pPhysics.getParameter<bool>("CutsPerRegion") ) {
27  prodCuts->update();
28  }
29 
30  if ( m_Verbosity > 1) {
31  G4VUserPhysicsList::DumpCutValuesTable();
32  }
33 
34  return ;
35 
36 }
T getParameter(std::string const &) const
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(), and SetCuts().

DDG4ProductionCuts* PhysicsList::prodCuts
private

Definition at line 27 of file PhysicsList.h.

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