CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LHEPCMS_EMV.cc
Go to the documentation of this file.
1 #include "LHEPCMS_EMV.hh"
4 
5 #include "G4EmStandardPhysics_option1.hh"
6 #include "G4DecayPhysics.hh"
7 #include "G4EmExtraPhysics.hh"
8 #include "G4IonPhysics.hh"
9 #include "G4HadronElasticPhysicsLHEP.hh"
10 #include "G4HadronicProcessStore.hh"
11 
12 #include "G4DataQuestionaire.hh"
13 #include "HadronPhysicsLHEP.hh"
14 
15 LHEPCMS_EMV::LHEPCMS_EMV(G4LogicalVolumeToDDLogicalPartMap& map,
17  sim::FieldBuilder *fieldBuilder_,
18  const edm::ParameterSet & p) : PhysicsList(map, table_, fieldBuilder_, p) {
19 
20  G4DataQuestionaire it(photon);
21 
22  int ver = p.getUntrackedParameter<int>("Verbosity",0);
23  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics",true);
24  bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics",true);
25  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
26  << "LHEP_EMV with Flags for EM Physics "
27  << emPhys << " and for Hadronic Physics "
28  << hadPhys << "\n";
29 
30  if (emPhys) {
31  // EM Physics
32  RegisterPhysics( new G4EmStandardPhysics_option1(ver));
33 
34  // Synchroton Radiation & GN Physics
35  RegisterPhysics( new G4EmExtraPhysics(ver));
36  }
37 
38  // General Physics - i.e. decay
39  RegisterPhysics( new G4DecayPhysics(ver));
40 
41  if (hadPhys) {
42  G4HadronicProcessStore::Instance()->SetVerbose(ver);
43 
44  // Hadron Elastic scattering
45  RegisterPhysics( new G4HadronElasticPhysicsLHEP(ver));
46 
47  // Hadron Physics
48  RegisterPhysics( new HadronPhysicsLHEP(ver));
49 
50  // Ion Physics
51  RegisterPhysics( new G4IonPhysics(ver));
52  }
53 
54  // Monopoles
55  RegisterPhysics( new CMSMonopolePhysics(table_,fieldBuilder_,p));
56 }
57 
58 
T getUntrackedParameter(std::string const &, T const &) const
HepPDT::ParticleDataTable ParticleDataTable
dictionary map
Definition: Association.py:205
Table table_
Definition: Actions.cc:22