CMS 3D CMS Logo

List of all members | Public Member Functions
DummyPhysics Class Reference

#include <DummyPhysics.h>

Inheritance diagram for DummyPhysics:
PhysicsList

Public Member Functions

 DummyPhysics (const edm::ParameterSet &)
 
 ~DummyPhysics () override=default
 
- Public Member Functions inherited from PhysicsList
 PhysicsList (const edm::ParameterSet &p)
 
void SetCuts () override
 
 ~PhysicsList () override
 

Detailed Description

Definition at line 7 of file DummyPhysics.h.

Constructor & Destructor Documentation

DummyPhysics::DummyPhysics ( const edm::ParameterSet p)

Definition at line 7 of file DummyPhysics.cc.

References g4SimHits_cfi::DummyEMPhysics, and edm::ParameterSet::getUntrackedParameter().

8  : PhysicsList(p) {
9 
10  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics",true);
11  int ver = p.getUntrackedParameter<int>("Verbosity",0);
12  if (emPhys) {
13  RegisterPhysics(new DummyEMPhysics(ver));
14  }
15  RegisterPhysics(new G4DecayPhysics(ver));
16  edm::LogInfo("PhysicsList") << "DummyPhysics constructed with EM Physics "
17  << emPhys << " and Decay";
18 }
T getUntrackedParameter(std::string const &, T const &) const
PhysicsList(const edm::ParameterSet &p)
Definition: PhysicsList.cc:3
DummyPhysics::~DummyPhysics ( )
overridedefault