CMS 3D CMS Logo

List of all members | Public Member Functions
CustomPhysics Class Reference

#include <CustomPhysics.h>

Inheritance diagram for CustomPhysics:
PhysicsList

Public Member Functions

 CustomPhysics (const edm::ParameterSet &p)
 
- Public Member Functions inherited from PhysicsList
 PhysicsList (const edm::ParameterSet &p)
 
void SetCuts () override
 
 ~PhysicsList () override
 

Detailed Description

Definition at line 7 of file CustomPhysics.h.

Constructor & Destructor Documentation

CustomPhysics::CustomPhysics ( const edm::ParameterSet p)

Definition at line 18 of file CustomPhysics.cc.

References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), and muons2muons_cfi::photon.

19  : PhysicsList(p) {
20 
21  G4DataQuestionaire it(photon);
22 
23  int ver = p.getUntrackedParameter<int>("Verbosity",0);
24  bool tracking= p.getParameter<bool>("TrackingCut");
25  bool ssPhys = p.getUntrackedParameter<bool>("ExoticaPhysicsSS",false);
26  double timeLimit = p.getParameter<double>("MaxTrackTime")*ns;
27  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
28  << "FTFP_BERT_EMM for regular particles \n"
29  << "CustomPhysicsList " << ssPhys << " for exotics; "
30  << " tracking cut " << tracking << " t(ns)= " << timeLimit/ns;
31  // EM Physics
32  RegisterPhysics(new CMSEmStandardPhysicsLPM(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 G4HadronPhysicsFTFP_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  if (tracking) {
54  G4NeutronTrackingCut* ncut= new G4NeutronTrackingCut(ver);
55  ncut->SetTimeLimit(timeLimit);
56  RegisterPhysics(ncut);
57  }
58 
59  // Custom Physics
60  if(ssPhys) {
61  RegisterPhysics(new CustomPhysicsListSS("custom",p));
62  } else {
63  RegisterPhysics(new CustomPhysicsList("custom",p));
64  }
65 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
PhysicsList(const edm::ParameterSet &p)
Definition: PhysicsList.cc:3