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

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