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::CustomPhysics ( const edm::ParameterSet p)

Definition at line 17 of file CustomPhysics.cc.

References AlCaHLTBitMon_ParallelJobs::p.

17  : PhysicsList(p) {
18  int ver = p.getUntrackedParameter<int>("Verbosity", 0);
19  bool tracking = p.getParameter<bool>("TrackingCut");
20  bool ssPhys = p.getUntrackedParameter<bool>("ExoticaPhysicsSS", false);
21  double timeLimit = p.getParameter<double>("MaxTrackTime") * ns;
22  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
23  << "FTFP_BERT_EMM for regular particles \n"
24  << "CustomPhysicsList " << ssPhys << " for exotics; "
25  << " tracking cut " << tracking << " t(ns)= " << timeLimit / ns;
26  // EM Physics
27  RegisterPhysics(new CMSEmStandardPhysics(ver, p));
28 
29  // Synchroton Radiation & GN Physics
30  RegisterPhysics(new G4EmExtraPhysics(ver));
31 
32  // Decays
33  RegisterPhysics(new G4DecayPhysics(ver));
34 
35  // Hadron Elastic scattering
36  RegisterPhysics(new G4HadronElasticPhysics(ver));
37 
38  // Hadron Physics
39  RegisterPhysics(new CMSHadronPhysicsFTFP_BERT(ver));
40 
41  // Stopping Physics
42  RegisterPhysics(new G4StoppingPhysics(ver));
43 
44  // Ion Physics
45  RegisterPhysics(new G4IonPhysics(ver));
46 
47  // Neutron tracking cut
48  if (tracking) {
49  G4NeutronTrackingCut* ncut = new G4NeutronTrackingCut(ver);
50  ncut->SetTimeLimit(timeLimit);
51  RegisterPhysics(ncut);
52  }
53 
54  // Custom Physics
55  if (ssPhys) {
56  RegisterPhysics(new CustomPhysicsListSS("custom", p));
57  } else {
58  RegisterPhysics(new CustomPhysicsList("custom", p));
59  }
60 }
PhysicsList(const edm::ParameterSet &p)
Definition: PhysicsList.cc:3
Log< level::Info, false > LogInfo