CMS 3D CMS Logo

List of all members | Public Member Functions
QGSPCMS_BERT_HP_EML Class Reference

#include <QGSPCMS_BERT_HP_EML.h>

Inheritance diagram for QGSPCMS_BERT_HP_EML:
PhysicsList

Public Member Functions

 QGSPCMS_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 QGSPCMS_BERT_HP_EML.h.

Constructor & Destructor Documentation

QGSPCMS_BERT_HP_EML::QGSPCMS_BERT_HP_EML ( const edm::ParameterSet p)

Definition at line 16 of file QGSPCMS_BERT_HP_EML.cc.

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

16  : PhysicsList(p) {
17  G4DataQuestionaire it(photon);
18 
19  int ver = p.getUntrackedParameter<int>("Verbosity", 0);
20  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics", true);
21  bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics", true);
22  bool tracking = p.getParameter<bool>("TrackingCut");
23  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
24  << "QGSP_BERT_HP_EML \n Flags for EM Physics " << emPhys << ", for Hadronic Physics "
25  << hadPhys << " and tracking cut " << tracking;
26 
27  if (emPhys) {
28  // EM Physics
29  RegisterPhysics(new CMSEmStandardPhysics(ver));
30 
31  // Synchroton Radiation & GN Physics
32  G4EmExtraPhysics* gn = new G4EmExtraPhysics(ver);
33  RegisterPhysics(gn);
34  }
35 
36  // Decays
37  this->RegisterPhysics(new G4DecayPhysics(ver));
38 
39  if (hadPhys) {
40  G4HadronicProcessStore::Instance()->SetVerbose(ver);
41 
42  // Hadron Elastic scattering
43  RegisterPhysics(new G4HadronElasticPhysicsHP(ver));
44 
45  // Hadron Physics
46  RegisterPhysics(new G4HadronPhysicsQGSP_BERT_HP(ver));
47 
48  // Stopping Physics
49  RegisterPhysics(new G4StoppingPhysics(ver));
50 
51  // Ion Physics
52  RegisterPhysics(new G4IonPhysics(ver));
53 
54  // Neutron tracking cut
55  if (tracking) {
56  RegisterPhysics(new G4NeutronTrackingCut(ver));
57  }
58  }
59 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
PhysicsList(const edm::ParameterSet &p)
Definition: PhysicsList.cc:3