CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CustomPhysics.cc
Go to the documentation of this file.
5 
6 #include "G4DecayPhysics.hh"
7 #include "G4EmExtraPhysics.hh"
8 #include "G4IonPhysics.hh"
9 #include "G4StoppingPhysics.hh"
10 #include "G4HadronElasticPhysics.hh"
11 #include "G4NeutronTrackingCut.hh"
12 
13 #include "G4DataQuestionaire.hh"
14 #include "HadronPhysicsQGSP_FTFP_BERT.hh"
15 
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  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
27  << "QQGSP_FTFP_BERT_EML with Flags for EM Physics "
28  << emPhys << " and for Hadronic Physics "
29  << hadPhys << "\n";
30 
31  // EM Physics
32  RegisterPhysics(new CMSEmStandardPhysics95msc93("EM standard msc93",ver,""));
33 
34  // Synchroton Radiation & GN Physics
35  RegisterPhysics(new G4EmExtraPhysics(ver));
36 
37  // Decays
38  RegisterPhysics(new G4DecayPhysics(ver));
39 
40  // Hadron Elastic scattering
41  RegisterPhysics(new G4HadronElasticPhysics(ver));
42 
43  // Hadron Physics
44  RegisterPhysics(new HadronPhysicsQGSP_FTFP_BERT(ver));
45 
46  // Stopping Physics
47  RegisterPhysics(new G4StoppingPhysics(ver));
48 
49  // Ion Physics
50  RegisterPhysics(new G4IonPhysics(ver));
51 
52  // Neutron tracking cut
53  RegisterPhysics( new G4NeutronTrackingCut(ver));
54 
55  // Custom Physics
56  RegisterPhysics(new CustomPhysicsList("custom",p));
57 }
T getUntrackedParameter(std::string const &, T const &) const
HepPDT::ParticleDataTable ParticleDataTable
CustomPhysics(G4LogicalVolumeToDDLogicalPartMap &map, const HepPDT::ParticleDataTable *table_, sim::FieldBuilder *fieldBuilder_, const edm::ParameterSet &p)
Table table_