CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QGSPCMS_BERT_EML.cc
Go to the documentation of this file.
1 #include "QGSPCMS_BERT_EML.hh"
5 
6 #include "G4DecayPhysics.hh"
7 #include "G4EmExtraPhysics.hh"
8 #include "G4IonPhysics.hh"
9 #include "G4QStoppingPhysics.hh"
10 #include "G4HadronElasticPhysics.hh"
11 #include "G4NeutronTrackingCut.hh"
12 
13 #include "G4DataQuestionaire.hh"
14 #include "HadronPhysicsQGSP_BERT.hh"
15 
16 #include <string>
17 
18 QGSPCMS_BERT_EML::QGSPCMS_BERT_EML(G4LogicalVolumeToDDLogicalPartMap& map,
20  sim::FieldBuilder *fieldBuilder_,
21  const edm::ParameterSet & p) : PhysicsList(map, table_, fieldBuilder_, p) {
22 
23  G4DataQuestionaire it(photon);
24 
25  int ver = p.getUntrackedParameter<int>("Verbosity",0);
26  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics",true);
27  bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics",true);
28  bool tracking= p.getParameter<bool>("TrackingCut");
29  std::string region = p.getParameter<std::string>("Region");
30  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
31  << "QGSP_BERT_EML 3.3 with Flags for EM Physics "
32  << emPhys << ", for Hadronic Physics "
33  << hadPhys << " and tracking cut " << tracking
34  << " with special region " << region;
35 
36  if (emPhys) {
37  // EM Physics
38  RegisterPhysics( new CMSEmStandardPhysics92("standard EM EML",ver,region));
39 
40  // Synchroton Radiation & GN Physics
41  RegisterPhysics( new G4EmExtraPhysics("extra EM"));
42  }
43 
44  // Decays
45  RegisterPhysics( new G4DecayPhysics("decay",ver) );
46 
47  if (hadPhys) {
48  // Hadron Elastic scattering
49  RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
50 
51  // Hadron Physics
52  G4bool quasiElastic=true;
53  RegisterPhysics( new HadronPhysicsQGSP_BERT("hadron",quasiElastic));
54  //RegisterPhysics( new HadronPhysicsQGSP_BERT("hadron"));
55 
56  // Stopping Physics
57  RegisterPhysics( new G4QStoppingPhysics("stopping"));
58 
59  // Ion Physics
60  RegisterPhysics( new G4IonPhysics("ion"));
61 
62  // Neutron tracking cut
63  if (tracking)
64  RegisterPhysics( new G4NeutronTrackingCut("Neutron tracking cut", ver));
65  }
66 
67  // Monopoles
68  RegisterPhysics( new CMSMonopolePhysics(table_,fieldBuilder_,p));
69 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
HepPDT::ParticleDataTable ParticleDataTable
Table table_
Definition: Actions.cc:22