CMS 3D CMS Logo

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