CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CHIPSCMS.cc
Go to the documentation of this file.
1 #include "CHIPSCMS.hh"
4 
5 #include "G4DecayPhysics.hh"
6 #include "G4QPhotoNuclearPhysics.hh"
7 #include "G4QNeutrinoPhysics.hh"
8 #include "G4IonPhysics.hh"
9 #include "G4QCaptureAtRestPhysics.hh"
10 #include "G4HadronQElasticPhysics.hh"
11 #include "G4NeutronTrackingCut.hh"
12 
13 #include "G4DataQuestionaire.hh"
14 #include "HadronPhysicsCHIPS.hh"
15 
16 CHIPSCMS::CHIPSCMS(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  << "CHIPS 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 & Photo-Nuclear Physics
37  RegisterPhysics( new G4QPhotoNuclearPhysics("photo-nuclear"));
38  }
39 
40  // Neutrino-Nuclear Physics
41  RegisterPhysics( new G4QNeutrinoPhysics("weak"));
42 
43  // Decays
44  RegisterPhysics(new G4DecayPhysics("decay",ver));
45 
46  if (hadPhys) {
47  // Hadron Elastic scattering
48  RegisterPhysics( new G4HadronQElasticPhysics("elastic",ver));
49 
50  // Hadron Physics (to be replaced by G4QInelasticPhysics)
51  RegisterPhysics( new HadronPhysicsCHIPS("inelastic"));
52 
53  // Stopping Physics
54  RegisterPhysics( new G4QCaptureAtRestPhysics("nuclear_capture",ver));
55 
56  // Ion Physics
57  RegisterPhysics( new G4IonPhysics("ion"));
58 
59  // Neutron tracking cut
60  if (tracking)
61  RegisterPhysics( new G4NeutronTrackingCut("Neutron tracking cut", ver));
62  }
63 }
64 
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
HepPDT::ParticleDataTable ParticleDataTable
Table table_
Definition: Actions.cc:22