CMS 3D CMS Logo

List of all members | Public Member Functions
QGSPCMS_FTFP_BERT_EMM Class Reference

#include <QGSPCMS_FTFP_BERT_EMM.h>

Inheritance diagram for QGSPCMS_FTFP_BERT_EMM:
PhysicsList

Public Member Functions

 QGSPCMS_FTFP_BERT_EMM (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_FTFP_BERT_EMM.h.

Constructor & Destructor Documentation

◆ QGSPCMS_FTFP_BERT_EMM()

QGSPCMS_FTFP_BERT_EMM::QGSPCMS_FTFP_BERT_EMM ( const edm::ParameterSet p)

Definition at line 16 of file QGSPCMS_FTFP_BERT_EMM.cc.

References AlCaHLTBitMon_ParallelJobs::p.

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