CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FTFPCMS_BERT_EML.cc
Go to the documentation of this file.
1 #include "FTFPCMS_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 "HadronPhysicsFTFP_BERT.hh"
15 
16 #include <string>
17 
18 FTFPCMS_BERT_EML::FTFPCMS_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  << "FTFP_BERT_EML 1.0 with Flags for EM Physics "
32  << emPhys << " and for Hadronic Physics "
33  << emPhys << ", for Hadronic Physics "
34  << hadPhys << " and tracking cut " << tracking
35  << " with special region " << region;
36 
37  if (emPhys) {
38  // EM Physics
39  RegisterPhysics( new CMSEmStandardPhysics92("standard EM EML",ver,region));
40 
41  // Synchroton Radiation & GN Physics
42  RegisterPhysics( new G4EmExtraPhysics("extra EM"));
43  }
44 
45  // Decays
46  this->RegisterPhysics( new G4DecayPhysics("decay",ver) );
47 
48  if (hadPhys) {
49  // Hadron Elastic scattering
50  RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
51 
52  // Hadron Physics
53  G4bool quasiElastic=false;
54  RegisterPhysics( new HadronPhysicsFTFP_BERT("hadron",quasiElastic));
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 }
70 
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
HepPDT::ParticleDataTable ParticleDataTable
Table table_
Definition: Actions.cc:22