CMS 3D CMS Logo

Public Member Functions | Private Attributes

PhysicsList Class Reference

#include <PhysicsList.h>

Inheritance diagram for PhysicsList:
CustomPhysics GFlash LaserOpticalPhysics

List of all members.

Public Member Functions

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

Private Attributes

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 7 of file PhysicsList.cc.

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

  : G4VModularPhysicsList(), m_pPhysics(p),  prodCuts(0) {
  m_Verbosity = m_pPhysics.getUntrackedParameter<int>("Verbosity",0);
  prodCuts = new DDG4ProductionCuts(map, m_Verbosity);  
}
PhysicsList::~PhysicsList ( ) [virtual]

Definition at line 16 of file PhysicsList.cc.

References LogDebug, m_Verbosity, and prodCuts.

                          {
  if (m_Verbosity > 1)
    LogDebug("Physics") << " G4BremsstrahlungThreshold was " 
                        << G4LossTableManager::Instance()->BremsstrahlungTh()/GeV 
                        << " GeV ";
  if (prodCuts!=0) delete prodCuts;
}

Member Function Documentation

void PhysicsList::SetCuts ( ) [virtual]

Definition at line 24 of file PhysicsList.cc.

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

                          { 

  SetDefaultCutValue(m_pPhysics.getParameter<double>("DefaultCutValue")*cm);
  SetCutsWithDefault();

  G4LossTableManager::Instance()->SetBremsstrahlungTh
    (m_pPhysics.getParameter<double>("G4BremsstrahlungThreshold")*GeV);

  if ( m_pPhysics.getParameter<bool>("CutsPerRegion") ) {
    prodCuts->update();
  }

  if ( m_Verbosity > 1) {
    G4LossTableManager::Instance()->SetVerbose(m_Verbosity-1);
    G4VUserPhysicsList::DumpCutValuesTable();
  }

  return ;

}

Member Data Documentation

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().

Definition at line 25 of file PhysicsList.h.

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