CMS 3D CMS Logo

DummyPhysics.cc
Go to the documentation of this file.
1 #include "DummyPhysics.h"
3 
5 #include "G4DecayPhysics.hh"
6 
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 }
19 
T getUntrackedParameter(std::string const &, T const &) const
DummyPhysics(const edm::ParameterSet &)
Definition: DummyPhysics.cc:7