Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:27

0001 #include "FTFPCMS_BERT_EML.h"
0002 #include "SimG4Core/PhysicsLists/interface/CMSHadronPhysicsFTFP_BERT.h"
0003 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0004 
0005 #include "G4DecayPhysics.hh"
0006 #include "G4EmExtraPhysics.hh"
0007 #include "G4IonPhysics.hh"
0008 #include "G4StoppingPhysics.hh"
0009 #include "G4HadronElasticPhysics.hh"
0010 #include "G4EmStandardPhysics_option1.hh"
0011 
0012 FTFPCMS_BERT_EML::FTFPCMS_BERT_EML(const edm::ParameterSet& p) : PhysicsList(p) {
0013   int ver = p.getUntrackedParameter<int>("Verbosity", 0);
0014   bool emPhys = p.getUntrackedParameter<bool>("EMPhysics", true);
0015   bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics", true);
0016   double minFTFP = p.getParameter<double>("EminFTFP") * CLHEP::GeV;
0017   double maxBERT = p.getParameter<double>("EmaxBERT") * CLHEP::GeV;
0018   double maxBERTpi = p.getParameter<double>("EmaxBERTpi") * CLHEP::GeV;
0019   edm::LogVerbatim("PhysicsList") << "CMS Physics List FTFP_BERT_EML: "
0020                                   << "\n Flags for EM Physics: " << emPhys << "; Hadronic Physics: " << hadPhys
0021                                   << "\n  transition energy Bertini/FTFP from " << minFTFP / CLHEP::GeV << " to "
0022                                   << maxBERT / CLHEP::GeV << ":" << maxBERTpi / CLHEP::GeV << " GeV";
0023 
0024   if (emPhys) {
0025     // EM Physics
0026     RegisterPhysics(new G4EmStandardPhysics_option1(ver));
0027 
0028     // Synchroton Radiation & GN Physics
0029     G4EmExtraPhysics* gn = new G4EmExtraPhysics(ver);
0030     RegisterPhysics(gn);
0031   }
0032 
0033   // Decays
0034   this->RegisterPhysics(new G4DecayPhysics(ver));
0035 
0036   if (hadPhys) {
0037     // Hadron Elastic scattering
0038     RegisterPhysics(new G4HadronElasticPhysics(ver));
0039 
0040     // Hadron Physics
0041     RegisterPhysics(new CMSHadronPhysicsFTFP_BERT(minFTFP, maxBERT, maxBERTpi, minFTFP, maxBERT));
0042 
0043     // Stopping Physics
0044     RegisterPhysics(new G4StoppingPhysics(ver));
0045 
0046     // Ion Physics
0047     RegisterPhysics(new G4IonPhysics(ver));
0048   }
0049 }