CMS 3D CMS Logo

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 18 of file FTFPCMS_BERT_HP_EML.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 emPhys = p.getUntrackedParameter<bool>("EMPhysics",true);
25  bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics",true);
26  bool tracking= p.getParameter<bool>("TrackingCut");
27  bool thermal = p.getUntrackedParameter<bool>("ThermalNeutrons");
28  double timeLimit = p.getParameter<double>("MaxTrackTime")*CLHEP::ns;
29  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
30  << "FTFP_BERT_HP_EML \n Flags for EM Physics "
31  << emPhys << ", for Hadronic Physics "
32  << hadPhys << " and tracking cut " << tracking
33  << " t(ns)= " << timeLimit/CLHEP::ns
34  << " ThermalNeutrons: " << thermal;
35 
36  if (emPhys) {
37  // EM Physics
38  RegisterPhysics( new CMSEmStandardPhysicsXS(ver));
39 
40  // Synchroton Radiation & GN Physics
41  G4EmExtraPhysics* gn = new G4EmExtraPhysics(ver);
42  RegisterPhysics(gn);
43  }
44 
45  // Decays
46  this->RegisterPhysics( new G4DecayPhysics(ver) );
47 
48  if (hadPhys) {
49  G4HadronicProcessStore::Instance()->SetVerbose(ver);
50 
51  // Hadron Elastic scattering
52  RegisterPhysics( new G4HadronElasticPhysicsHP(ver));
53 
54  // Hadron Physics
55  RegisterPhysics( new G4HadronPhysicsFTFP_BERT_HP(ver));
56 
57  // Stopping Physics
58  RegisterPhysics( new G4StoppingPhysics(ver));
59 
60  // Ion Physics
61  RegisterPhysics( new G4IonPhysics(ver));
62 
63  // Neutron tracking cut
64  if (tracking) {
65  G4NeutronTrackingCut* ncut= new G4NeutronTrackingCut(ver);
66  ncut->SetTimeLimit(timeLimit);
67  RegisterPhysics(ncut);
68  }
69  if(thermal) {
70  RegisterPhysics(new CMSThermalNeutrons(ver));
71  }
72  }
73 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
PhysicsList(const edm::ParameterSet &p)
Definition: PhysicsList.cc:3