CMS 3D CMS Logo

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