CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QGSPCMS_BERT_EMLSYNC.cc
Go to the documentation of this file.
1 #include "QGSPCMS_BERT_EMLSYNC.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_EMLSYNC::QGSPCMS_BERT_EMLSYNC(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  bool srType = p.getParameter<bool>("SRType");
30  std::string region = p.getParameter<std::string>("Region");
31  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
32  << "QGSP_BERT_EMLSYNC 3.3 with Flags for EM Physics "
33  << emPhys << ", for Hadronic Physics "
34  << hadPhys << ", S.R. Type " << srType
35  << " and tracking cut " << tracking
36  << " with special region " << region;
37 
38  if (emPhys) {
39  // EM Physics
40  RegisterPhysics( new CMSEmStandardPhysicsSync("standard EM EMLSYNC",ver,srType,region));
41 
42  // Synchroton Radiation & GN Physics
43  RegisterPhysics( new G4EmExtraPhysics("extra EM"));
44  }
45 
46  // Decays
47  RegisterPhysics( new G4DecayPhysics("decay",ver) );
48 
49  if (hadPhys) {
50  // Hadron Elastic scattering
51  RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
52 
53  // Hadron Physics
54  G4bool quasiElastic=true;
55  RegisterPhysics( new HadronPhysicsQGSP_BERT("hadron",quasiElastic));
56  //RegisterPhysics( new HadronPhysicsQGSP_BERT("hadron"));
57 
58  // Stopping Physics
59  RegisterPhysics( new G4QStoppingPhysics("stopping"));
60 
61  // Ion Physics
62  RegisterPhysics( new G4IonPhysics("ion"));
63 
64  // Neutron tracking cut
65  if (tracking)
66  RegisterPhysics( new G4NeutronTrackingCut("Neutron tracking cut", ver));
67  }
68 
69  // Monopoles
70  RegisterPhysics( new CMSMonopolePhysics(table_,fieldBuilder_,p));
71 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
HepPDT::ParticleDataTable ParticleDataTable
dictionary map
Definition: Association.py:205
Table table_
Definition: Actions.cc:22