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::FieldBuilder *fieldBuilder_, 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 13 of file PhysicsList.h.

Constructor & Destructor Documentation

PhysicsList::PhysicsList ( G4LogicalVolumeToDDLogicalPartMap map,
const HepPDT::ParticleDataTable table_,
sim::FieldBuilder fieldBuilder_,
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:26
const edm::ParameterSet m_pPhysics
Definition: PhysicsList.h:24
DDG4ProductionCuts * prodCuts
Definition: PhysicsList.h:25
PhysicsList::~PhysicsList ( )
virtual

Definition at line 17 of file PhysicsList.cc.

References 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)
int m_Verbosity
Definition: PhysicsList.h:26
DDG4ProductionCuts * prodCuts
Definition: PhysicsList.h:25

Member Function Documentation

void PhysicsList::SetCuts ( )
virtual

Definition at line 25 of file PhysicsList.cc.

References edm::ParameterSet::getParameter(), m_pPhysics, m_Verbosity, prodCuts, reco::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
int m_Verbosity
Definition: PhysicsList.h:26
const edm::ParameterSet m_pPhysics
Definition: PhysicsList.h:24
DDG4ProductionCuts * prodCuts
Definition: PhysicsList.h:25
return(e1-e2)*(e1-e2)+dp *dp

Member Data Documentation

const edm::ParameterSet PhysicsList::m_pPhysics
private

Definition at line 24 of file PhysicsList.h.

Referenced by PhysicsList(), and SetCuts().

int PhysicsList::m_Verbosity
private

Definition at line 26 of file PhysicsList.h.

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

DDG4ProductionCuts* PhysicsList::prodCuts
private

Definition at line 25 of file PhysicsList.h.

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