CMS 3D CMS Logo

List of all members | Public Member Functions
QGSPCMS_BERT Class Reference

#include <QGSPCMS_BERT.h>

Inheritance diagram for QGSPCMS_BERT:
PhysicsList

Public Member Functions

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

Constructor & Destructor Documentation

QGSPCMS_BERT::QGSPCMS_BERT ( const edm::ParameterSet p)

Definition at line 16 of file QGSPCMS_BERT.cc.

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

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