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

Constructor & Destructor Documentation

◆ QGSPCMS_FTFP_BERT_EMY()

QGSPCMS_FTFP_BERT_EMY::QGSPCMS_FTFP_BERT_EMY ( const edm::ParameterSet p)

Definition at line 17 of file QGSPCMS_FTFP_BERT_EMY.cc.

References AlCaHLTBitMon_ParallelJobs::p.

17  : PhysicsList(p) {
18  int ver = p.getUntrackedParameter<int>("Verbosity", 0);
19  bool emPhys = p.getUntrackedParameter<bool>("EMPhysics", true);
20  bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics", true);
21  bool tracking = p.getParameter<bool>("TrackingCut");
22  double timeLimit = p.getParameter<double>("MaxTrackTime") * CLHEP::ns;
23  double minFTFP = p.getParameter<double>("EminFTFP") * CLHEP::GeV;
24  double maxBERT = p.getParameter<double>("EmaxBERT") * CLHEP::GeV;
25  double minQGSP = p.getParameter<double>("EminQGSP") * CLHEP::GeV;
26  double maxFTFP = p.getParameter<double>("EmaxFTFP") * CLHEP::GeV;
27  double maxBERTpi = p.getParameter<double>("EmaxBERTpi") * CLHEP::GeV;
28  edm::LogVerbatim("PhysicsList") << "You are using the simulation engine: "
29  << "QGSP_FTFP_BERT_EMY \n Flags for EM Physics " << emPhys
30  << ", for Hadronic Physics " << hadPhys << " and tracking cut " << tracking
31  << " t(ns)= " << timeLimit / CLHEP::ns << "\n transition energy Bertini/FTFP from "
32  << minFTFP / CLHEP::GeV << " to " << maxBERTpi / CLHEP::GeV << ":"
33  << maxBERT / CLHEP::GeV << " GeV"
34  << "\n transition energy FTFP/QGSP from " << minQGSP / CLHEP::GeV << " to "
35  << maxFTFP / CLHEP::GeV << " GeV";
36 
37  if (emPhys) {
38  // EM Physics
39  RegisterPhysics(new G4EmStandardPhysics_option3(ver));
40  G4EmParameters::Instance()->SetMscStepLimitType(fUseSafetyPlus);
41 
42  // Synchroton Radiation & GN Physics
43  G4EmExtraPhysics* gn = new G4EmExtraPhysics(ver);
44  RegisterPhysics(gn);
45  }
46 
47  // Decays
48  RegisterPhysics(new G4DecayPhysics(ver));
49 
50  if (hadPhys) {
51  G4HadronicProcessStore::Instance()->SetVerbose(ver);
52 
53  // Hadron Elastic scattering
54  RegisterPhysics(new G4HadronElasticPhysics(ver));
55 
56  // Hadron Physics
57  RegisterPhysics(new HadronPhysicsQGSPCMS_FTFP_BERT(minFTFP, maxBERT, minQGSP, maxFTFP, maxBERTpi));
58 
59  // Stopping Physics
60  RegisterPhysics(new G4StoppingPhysics(ver));
61 
62  // Ion Physics
63  RegisterPhysics(new G4IonPhysics(ver));
64 
65  // Neutron tracking cut
66  if (tracking) {
67  G4NeutronTrackingCut* ncut = new G4NeutronTrackingCut(ver);
68  ncut->SetTimeLimit(timeLimit);
69  RegisterPhysics(ncut);
70  }
71  }
72 }
Log< level::Info, true > LogVerbatim
PhysicsList(const edm::ParameterSet &p)
Definition: PhysicsList.cc:3