CMS 3D CMS Logo

List of all members | Public Member Functions
QGSPCMS_FTFP_BERT Class Reference

#include <QGSPCMS_FTFP_BERT.h>

Inheritance diagram for QGSPCMS_FTFP_BERT:
PhysicsList

Public Member Functions

 QGSPCMS_FTFP_BERT (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 7 of file QGSPCMS_FTFP_BERT.h.

Constructor & Destructor Documentation

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

Definition at line 17 of file QGSPCMS_FTFP_BERT.cc.

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

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