CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
FTFPCMS_BERT_HP_EML Class Reference

#include <FTFPCMS_BERT_HP_EML.h>

Inheritance diagram for FTFPCMS_BERT_HP_EML:
PhysicsList

Public Member Functions

 FTFPCMS_BERT_HP_EML (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 FTFPCMS_BERT_HP_EML.h.

Constructor & Destructor Documentation

FTFPCMS_BERT_HP_EML::FTFPCMS_BERT_HP_EML ( const edm::ParameterSet p)

Definition at line 17 of file FTFPCMS_BERT_HP_EML.cc.

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

17  : PhysicsList(p) {
18  int ver = p.getUntrackedParameter<int>("Verbosity", 0);
19  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics", true);
20  bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics", true);
21  bool tracking = p.getParameter<bool>("TrackingCut");
22  bool thermal = p.getUntrackedParameter<bool>("ThermalNeutrons");
23  double timeLimit = p.getParameter<double>("MaxTrackTime") * CLHEP::ns;
24  edm::LogVerbatim("PhysicsList") << "You are using the simulation engine: "
25  << "FTFP_BERT_HP_EML \n Flags for EM Physics " << emPhys << ", for Hadronic Physics "
26  << hadPhys << " and tracking cut " << tracking
27  << " t(ns)= " << timeLimit / CLHEP::ns << " ThermalNeutrons: " << thermal;
28 
29  if (emPhys) {
30  // EM Physics
31  RegisterPhysics(new G4EmStandardPhysics_option1(ver));
32 
33  // Synchroton Radiation & GN Physics
34  G4EmExtraPhysics* gn = new G4EmExtraPhysics(ver);
35  RegisterPhysics(gn);
36  }
37 
38  // Decays
39  this->RegisterPhysics(new G4DecayPhysics(ver));
40 
41  if (hadPhys) {
42  G4HadronicProcessStore::Instance()->SetVerbose(ver);
43 
44  // Hadron Elastic scattering
45  RegisterPhysics(new G4HadronElasticPhysicsHP(ver));
46 
47  // Hadron Physics
48  RegisterPhysics(new G4HadronPhysicsFTFP_BERT_HP(ver));
49 
50  // Stopping Physics
51  RegisterPhysics(new G4StoppingPhysics(ver));
52 
53  // Ion Physics
54  RegisterPhysics(new G4IonPhysics(ver));
55 
56  // Neutron tracking cut
57  if (tracking) {
58  G4NeutronTrackingCut* ncut = new G4NeutronTrackingCut(ver);
59  ncut->SetTimeLimit(timeLimit);
60  RegisterPhysics(ncut);
61  }
62  if (thermal) {
63  RegisterPhysics(new G4ThermalNeutrons(ver));
64  }
65  }
66 }
Log< level::Info, true > LogVerbatim
T getUntrackedParameter(std::string const &, T const &) const
PhysicsList(const edm::ParameterSet &p)
Definition: PhysicsList.cc:3
T getParameter(std::string const &) const
Definition: ParameterSet.h:303