CMS 3D CMS Logo

List of all members | Public Member Functions
FTFPCMS_BERT_XS_EML Class Reference

#include <FTFPCMS_BERT_XS_EML.h>

Inheritance diagram for FTFPCMS_BERT_XS_EML:
PhysicsList

Public Member Functions

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

Constructor & Destructor Documentation

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

Definition at line 19 of file FTFPCMS_BERT_XS_EML.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  bool thermal = p.getUntrackedParameter<bool>("ThermalNeutrons");
31  double timeLimit = p.getParameter<double>("MaxTrackTime")*ns;
32  edm::LogInfo("PhysicsList") << "You are using the simulation engine: "
33  << "FTFP_BERT_XS_EML \n Flags for EM Physics "
34  << emPhys << ", for Hadronic Physics "
35  << hadPhys << " and tracking cut " << tracking
36  << " t(ns)= " << timeLimit/ns
37  << " ThermalNeutrons: " << thermal;
38 
39  if (emPhys) {
40  // EM Physics
41  RegisterPhysics( new CMSEmStandardPhysicsXS(ver));
42 
43  // Synchroton Radiation & GN Physics
44  G4EmExtraPhysics* gn = new G4EmExtraPhysics(ver);
45  RegisterPhysics(gn);
46  }
47 
48  // Decays
49  this->RegisterPhysics( new G4DecayPhysics(ver) );
50 
51  if (hadPhys) {
52  G4HadronicProcessStore::Instance()->SetVerbose(ver);
53 
54  // Hadron Elastic scattering
55  RegisterPhysics( new G4HadronElasticPhysicsXS(ver));
56 
57  // Hadron Physics
58  RegisterPhysics( new G4HadronPhysicsFTFP_BERT(ver));
59 
60  // Stopping Physics
61  RegisterPhysics( new G4StoppingPhysics(ver));
62 
63  // Ion Physics
64  RegisterPhysics( new G4IonPhysics(ver));
65 
66  // Neutron tracking cut
67  if (tracking) {
68  G4NeutronTrackingCut* ncut= new G4NeutronTrackingCut(ver);
69  ncut->SetTimeLimit(timeLimit);
70  RegisterPhysics(ncut);
71  }
72  if(thermal) {
73  RegisterPhysics(new CMSThermalNeutrons(ver));
74  }
75  }
76 
77  // Monopoles
78  RegisterPhysics( new CMSMonopolePhysics(table_,chordFinderSetter_,p));
79 }
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_