CMS 3D CMS Logo

DummyPhysics.cc
Go to the documentation of this file.
1 #include "DummyPhysics.h"
3 
5 #include "G4DecayPhysics.hh"
6 
9  sim::ChordFinderSetter *chordFinderSetter_,
10  const edm::ParameterSet & p) : PhysicsList(map, table_, chordFinderSetter_, p) {
11 
12  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics",true);
13  RegisterPhysics(new G4DecayPhysics("decay"));
14  if (emPhys)
15  RegisterPhysics(new DummyEMPhysics("dummyEM"));
16  edm::LogInfo("PhysicsList") << "DummyPhysics constructed with EM Physics "
17  << emPhys << " and Decay";
18 }
19 
21 
DummyPhysics(G4LogicalVolumeToDDLogicalPartMap &, const HepPDT::ParticleDataTable *, sim::ChordFinderSetter *, const edm::ParameterSet &)
Definition: DummyPhysics.cc:7
T getUntrackedParameter(std::string const &, T const &) const
HepPDT::ParticleDataTable ParticleDataTable
~DummyPhysics() override
Definition: DummyPhysics.cc:20
Table table_