CMS 3D CMS Logo

QGSPCMS_BERT_EML.cc
Go to the documentation of this file.
1 #include "QGSPCMS_BERT_EML.h"
4 
5 #include "G4DecayPhysics.hh"
6 #include "G4EmExtraPhysics.hh"
7 #include "G4IonPhysics.hh"
8 #include "G4StoppingPhysics.hh"
9 #include "G4HadronElasticPhysics.hh"
10 #include "G4NeutronTrackingCut.hh"
11 #include "G4HadronicProcessStore.hh"
12 
13 #include "G4DataQuestionaire.hh"
14 #include "G4HadronPhysicsQGSP_BERT.hh"
15 
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  << "QGSP_BERT_EMY with Flags for EM Physics "
27  << emPhys << ", for Hadronic Physics "
28  << hadPhys << " and tracking cut " << tracking;
29 
30  if (emPhys) {
31  // EM Physics
32  RegisterPhysics( new CMSEmStandardPhysics(ver));
33 
34  // Synchroton Radiation & GN Physics
35  G4EmExtraPhysics* gn = new G4EmExtraPhysics(ver);
36  RegisterPhysics(gn);
37  }
38 
39  // Decays
40  this->RegisterPhysics( new G4DecayPhysics(ver) );
41 
42  if (hadPhys) {
43  G4HadronicProcessStore::Instance()->SetVerbose(ver);
44 
45  // Hadron Elastic scattering
46  RegisterPhysics( new G4HadronElasticPhysics(ver));
47 
48  // Hadron Physics
49  RegisterPhysics( new G4HadronPhysicsQGSP_BERT(ver));
50 
51  // Stopping Physics
52  RegisterPhysics( new G4StoppingPhysics(ver));
53 
54  // Ion Physics
55  RegisterPhysics( new G4IonPhysics(ver));
56 
57  // Neutron tracking cut
58  if (tracking) {
59  RegisterPhysics( new G4NeutronTrackingCut(ver));
60  }
61  }
62 }
63 
QGSPCMS_BERT_EML(const edm::ParameterSet &p)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const