CMS 3D CMS Logo

List of all members | Public Member Functions
QBBCCMS Class Reference

#include <QBBCCMS.h>

Inheritance diagram for QBBCCMS:
PhysicsList

Public Member Functions

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

Detailed Description

Definition at line 7 of file QBBCCMS.h.

Constructor & Destructor Documentation

QBBCCMS::QBBCCMS ( const edm::ParameterSet p)

Definition at line 16 of file QBBCCMS.cc.

References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), and muons2muons_cfi::photon.

17  : PhysicsList(p) {
18 
19  G4DataQuestionaire it(photon);
20 
21  int ver = p.getUntrackedParameter<int>("Verbosity",0);
22  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics",true);
23  bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics",true);
24  bool tracking= p.getParameter<bool>("TrackingCut");
25  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
26  << "QBBC \n Flags for EM Physics "
27  << emPhys << " and for Hadronic Physics "
28  << hadPhys
29  << " and tracking cut " << tracking;
30 
31  if (emPhys) {
32  // EM Physics
33  RegisterPhysics( new G4EmStandardPhysics(ver));
34 
35  // Synchroton Radiation & GN Physics
36  G4EmExtraPhysics* gn = new G4EmExtraPhysics(ver);
37  RegisterPhysics(gn);
38  }
39 
40  // Decays
41  RegisterPhysics(new G4DecayPhysics(ver));
42 
43  if (hadPhys) {
44  G4HadronicProcessStore::Instance()->SetVerbose(ver);
45 
46  // Hadron Elastic scattering
47  RegisterPhysics(new G4HadronElasticPhysicsXS(ver));
48 
49  // Hadron Physics
50  RegisterPhysics( new G4HadronInelasticQBBC(ver));
51 
52  // Stopping Physics
53  RegisterPhysics(new G4StoppingPhysics(ver));
54 
55  // Ion Physics
56  RegisterPhysics(new G4IonPhysics(ver));
57 
58  // Neutron tracking cut
59  if (tracking) {
60  RegisterPhysics( new G4NeutronTrackingCut(ver));
61  }
62  }
63 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
PhysicsList(const edm::ParameterSet &p)
Definition: PhysicsList.cc:3