CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QGSBCMS_BERT_NOLEP1_EML.cc
Go to the documentation of this file.
1 #include "QGSBCMS_BERT_NOLEP1_EML.hh"
4 #include "SimG4Core/PhysicsLists/interface/HadronPhysicsQGSB_BERT_NOLEP1.hh"
6 
7 #include "G4DecayPhysics.hh"
8 #include "G4EmExtraPhysics.hh"
9 #include "G4IonBinaryCascadePhysics.hh"
10 #include "G4QStoppingPhysics.hh"
11 #include "G4HadronElasticPhysics.hh"
12 #include "G4NeutronTrackingCut.hh"
13 
14 #include "G4DataQuestionaire.hh"
15 
16 #include <string>
17 
18 QGSBCMS_BERT_NOLEP1_EML::QGSBCMS_BERT_NOLEP1_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  << "QGSB_BERT_NOLEP1_EML 1.0 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 HadronPhysicsQGSB_BERT_NOLEP1("hadron",quasiElastic));
54 
55  // Stopping Physics
56  RegisterPhysics( new G4QStoppingPhysics("stopping"));
57 
58  // Ion Physics
59  RegisterPhysics( new G4IonBinaryCascadePhysics("ionBIC"));
60 
61  // Neutron tracking cut
62  if (tracking)
63  RegisterPhysics( new G4NeutronTrackingCut("Neutron tracking cut", ver));
64  }
65 
66  // Monopoles
67  RegisterPhysics( new CMSMonopolePhysics(table_,fieldBuilder_,p));
68 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
HepPDT::ParticleDataTable ParticleDataTable
Table table_
Definition: Actions.cc:22