CMS 3D CMS Logo

List of all members | Public Member Functions
FTFPCMS_BERT_EMY Class Reference

#include <FTFPCMS_BERT_EMY.h>

Inheritance diagram for FTFPCMS_BERT_EMY:
PhysicsList

Public Member Functions

 FTFPCMS_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 FTFPCMS_BERT_EMY.h.

Constructor & Destructor Documentation

◆ FTFPCMS_BERT_EMY()

FTFPCMS_BERT_EMY::FTFPCMS_BERT_EMY ( const edm::ParameterSet p)

Definition at line 15 of file FTFPCMS_BERT_EMY.cc.

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

References GeV, and AlCaHLTBitMon_ParallelJobs::p.

PhysicsList::PhysicsList
PhysicsList(const edm::ParameterSet &p)
Definition: PhysicsList.cc:3
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
tracking
Definition: TempMeasurements.h:8
GeV
const double GeV
Definition: MathUtil.h:16
CMSHadronPhysicsFTFP_BERT
Definition: CMSHadronPhysicsFTFP_BERT.h:19
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128