CMS 3D CMS Logo

List of all members | Public Member Functions
QGSPCMS_FTFP_BERT_EMY Class Reference

#include <QGSPCMS_FTFP_BERT_EMY.h>

Inheritance diagram for QGSPCMS_FTFP_BERT_EMY:
PhysicsList

Public Member Functions

 QGSPCMS_FTFP_BERT_EMY (G4LogicalVolumeToDDLogicalPartMap &map, const HepPDT::ParticleDataTable *table_, sim::ChordFinderSetter *chordFinderSetter_, const edm::ParameterSet &p)
 
- Public Member Functions inherited from PhysicsList
 PhysicsList (G4LogicalVolumeToDDLogicalPartMap &map, const HepPDT::ParticleDataTable *table_, sim::ChordFinderSetter *chordFinderSetter_, const edm::ParameterSet &p)
 
void SetCuts () override
 
 ~PhysicsList () override
 

Detailed Description

Definition at line 15 of file QGSPCMS_FTFP_BERT_EMY.h.

Constructor & Destructor Documentation

QGSPCMS_FTFP_BERT_EMY::QGSPCMS_FTFP_BERT_EMY ( G4LogicalVolumeToDDLogicalPartMap map,
const HepPDT::ParticleDataTable table_,
sim::ChordFinderSetter chordFinderSetter_,
const edm::ParameterSet p 
)

Definition at line 17 of file QGSPCMS_FTFP_BERT_EMY.cc.

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

22  : PhysicsList(map, table_, chordFinderSetter_, p) {
23 
24  G4DataQuestionaire it(photon);
25 
26  int ver = p.getUntrackedParameter<int>("Verbosity",0);
27  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics",true);
28  bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics",true);
29  bool tracking= p.getParameter<bool>("TrackingCut");
30  double timeLimit = p.getParameter<double>("MaxTrackTime")*ns;
31  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
32  << "QGSP_FTFP_BERT_EMY \n Flags for EM Physics "
33  << emPhys << ", for Hadronic Physics "
34  << hadPhys << " and tracking cut " << tracking
35  << " t(ns)= " << timeLimit/ns;
36 
37  if (emPhys) {
38  // EM Physics
39  RegisterPhysics(new G4EmStandardPhysics_option3(ver));
40 
41  // Synchroton Radiation & GN Physics
42  G4EmExtraPhysics* gn = new G4EmExtraPhysics(ver);
43  RegisterPhysics(gn);
44  }
45 
46  // Decays
47  RegisterPhysics(new G4DecayPhysics(ver) );
48 
49  if (hadPhys) {
50  G4HadronicProcessStore::Instance()->SetVerbose(ver);
51 
52  // Hadron Elastic scattering
53  RegisterPhysics(new G4HadronElasticPhysics(ver));
54 
55  // Hadron Physics
56  RegisterPhysics(new G4HadronPhysicsQGSP_FTFP_BERT(ver));
57 
58  // Stopping Physics
59  RegisterPhysics(new G4StoppingPhysics(ver));
60 
61  // Ion Physics
62  RegisterPhysics(new G4IonPhysics(ver));
63 
64  // Neutron tracking cut
65  if (tracking) {
66  G4NeutronTrackingCut* ncut= new G4NeutronTrackingCut(ver);
67  ncut->SetTimeLimit(timeLimit);
68  RegisterPhysics(ncut);
69  }
70  }
71 
72  // Monopoles
73  RegisterPhysics( new CMSMonopolePhysics(table_,chordFinderSetter_,p));
74 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
PhysicsList(G4LogicalVolumeToDDLogicalPartMap &map, const HepPDT::ParticleDataTable *table_, sim::ChordFinderSetter *chordFinderSetter_, const edm::ParameterSet &p)
Definition: PhysicsList.cc:3
Table table_