Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:27

0001 #include "DummyPhysics.h"
0002 #include "SimG4Core/PhysicsLists/interface/DummyEMPhysics.h"
0003 
0004 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0005 #include "G4DecayPhysics.hh"
0006 
0007 DummyPhysics::DummyPhysics(const edm::ParameterSet& p) : PhysicsList(p) {
0008   bool emPhys = p.getUntrackedParameter<bool>("EMPhysics", true);
0009   int ver = p.getUntrackedParameter<int>("Verbosity", 0);
0010   if (emPhys) {
0011     RegisterPhysics(new DummyEMPhysics(ver));
0012   }
0013   RegisterPhysics(new G4DecayPhysics(ver));
0014   edm::LogVerbatim("PhysicsList") << "DummyPhysics constructed with EM Physics " << emPhys << " and Decay";
0015 }