Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added new and cleaned up existing PL
- Loading branch information
Showing
10 changed files
with
250 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#include "FTFPCMS_BERT_EMN.h" | ||
#include "SimG4Core/PhysicsLists/interface/CMSEmStandardPhysicsXS.h" | ||
#include "FWCore/MessageLogger/interface/MessageLogger.h" | ||
|
||
#include "G4DecayPhysics.hh" | ||
#include "G4EmExtraPhysics.hh" | ||
#include "G4IonPhysics.hh" | ||
#include "G4StoppingPhysics.hh" | ||
#include "G4HadronElasticPhysics.hh" | ||
#include "G4NeutronTrackingCut.hh" | ||
#include "G4HadronicProcessStore.hh" | ||
|
||
#include "G4DataQuestionaire.hh" | ||
#include "G4HadronPhysicsFTFP_BERT.hh" | ||
|
||
FTFPCMS_BERT_EMN::FTFPCMS_BERT_EMN(const edm::ParameterSet & p) | ||
: PhysicsList(p) { | ||
|
||
G4DataQuestionaire it(photon); | ||
|
||
int ver = p.getUntrackedParameter<int>("Verbosity",0); | ||
bool emPhys = p.getUntrackedParameter<bool>("EMPhysics",true); | ||
bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics",true); | ||
bool tracking= p.getParameter<bool>("TrackingCut"); | ||
double timeLimit = p.getParameter<double>("MaxTrackTime")*CLHEP::ns; | ||
edm::LogInfo("PhysicsList") << "You are using the simulation engine: " | ||
<< "FTFP_BERT_EMN \n Flags for EM Physics " | ||
<< emPhys << ", for Hadronic Physics " | ||
<< hadPhys << " and tracking cut " << tracking | ||
<< " t(ns)= " << timeLimit/CLHEP::ns; | ||
|
||
if (emPhys) { | ||
// EM Physics | ||
RegisterPhysics( new CMSEmStandardPhysicsXS(ver)); | ||
|
||
// Synchroton Radiation & GN Physics | ||
G4EmExtraPhysics* gn = new G4EmExtraPhysics(ver); | ||
RegisterPhysics(gn); | ||
} | ||
|
||
// Decays | ||
this->RegisterPhysics( new G4DecayPhysics(ver) ); | ||
|
||
if (hadPhys) { | ||
G4HadronicProcessStore::Instance()->SetVerbose(ver); | ||
|
||
// Hadron Elastic scattering | ||
RegisterPhysics( new G4HadronElasticPhysics(ver)); | ||
|
||
// Hadron Physics | ||
RegisterPhysics( new G4HadronPhysicsFTFP_BERT(ver)); | ||
|
||
// Stopping Physics | ||
RegisterPhysics( new G4StoppingPhysics(ver)); | ||
|
||
// Ion Physics | ||
RegisterPhysics( new G4IonPhysics(ver)); | ||
|
||
// Neutron tracking cut | ||
if (tracking) { | ||
G4NeutronTrackingCut* ncut= new G4NeutronTrackingCut(ver); | ||
ncut->SetTimeLimit(timeLimit); | ||
RegisterPhysics(ncut); | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef SimG4Core_PhysicsLists_FTFPCMS_BERT_EMN_H | ||
#define SimG4Core_PhysicsLists_FTFPCMS_BERT_EMN_H | ||
|
||
#include "SimG4Core/Physics/interface/PhysicsList.h" | ||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
|
||
class FTFPCMS_BERT_EMN: public PhysicsList { | ||
|
||
public: | ||
FTFPCMS_BERT_EMN(const edm::ParameterSet & p); | ||
}; | ||
|
||
#endif | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#include "QGSPCMS_FTFP_BERT_EMN.h" | ||
#include "SimG4Core/PhysicsLists/interface/CMSEmStandardPhysicsXS.h" | ||
#include "FWCore/MessageLogger/interface/MessageLogger.h" | ||
|
||
#include "G4DecayPhysics.hh" | ||
#include "G4EmExtraPhysics.hh" | ||
#include "G4IonPhysics.hh" | ||
#include "G4StoppingPhysics.hh" | ||
#include "G4HadronElasticPhysics.hh" | ||
#include "G4NeutronTrackingCut.hh" | ||
#include "G4HadronicProcessStore.hh" | ||
|
||
#include "G4DataQuestionaire.hh" | ||
#include "G4HadronPhysicsQGSP_FTFP_BERT.hh" | ||
|
||
QGSPCMS_FTFP_BERT_EMN::QGSPCMS_FTFP_BERT_EMN(const edm::ParameterSet & p) | ||
: PhysicsList(p) { | ||
|
||
G4DataQuestionaire it(photon); | ||
|
||
int ver = p.getUntrackedParameter<int>("Verbosity",0); | ||
bool emPhys = p.getUntrackedParameter<bool>("EMPhysics",true); | ||
bool hadPhys = p.getUntrackedParameter<bool>("HadPhysics",true); | ||
bool tracking= p.getParameter<bool>("TrackingCut"); | ||
double timeLimit = p.getParameter<double>("MaxTrackTime")*CLHEP::ns; | ||
edm::LogInfo("PhysicsList") << "You are using the simulation engine: " | ||
<< "QGSP_FTFP_BERT_EMN \n Flags for EM Physics " | ||
<< emPhys << ", for Hadronic Physics " | ||
<< hadPhys << " and tracking cut " << tracking | ||
<< " t(ns)= " << timeLimit/CLHEP::ns; | ||
|
||
if (emPhys) { | ||
// EM Physics | ||
RegisterPhysics(new CMSEmStandardPhysicsXS(ver)); | ||
|
||
// Synchroton Radiation & GN Physics | ||
G4EmExtraPhysics* gn = new G4EmExtraPhysics(ver); | ||
RegisterPhysics(gn); | ||
} | ||
|
||
// Decays | ||
RegisterPhysics(new G4DecayPhysics(ver) ); | ||
|
||
if (hadPhys) { | ||
G4HadronicProcessStore::Instance()->SetVerbose(ver); | ||
|
||
// Hadron Elastic scattering | ||
RegisterPhysics(new G4HadronElasticPhysics(ver)); | ||
|
||
// Hadron Physics | ||
RegisterPhysics(new G4HadronPhysicsQGSP_FTFP_BERT(ver)); | ||
|
||
// Stopping Physics | ||
RegisterPhysics(new G4StoppingPhysics(ver)); | ||
|
||
// Ion Physics | ||
RegisterPhysics(new G4IonPhysics(ver)); | ||
|
||
// Neutron tracking cut | ||
if (tracking) { | ||
G4NeutronTrackingCut* ncut= new G4NeutronTrackingCut(ver); | ||
ncut->SetTimeLimit(timeLimit); | ||
RegisterPhysics(ncut); | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ifndef SimG4Core_PhysicsLists_QGSPCMS_FTFP_BERT_EMN_H | ||
#define SimG4Core_PhysicsLists_QGSPCMS_FTFP_BERT_EMN_H | ||
|
||
#include "SimG4Core/Physics/interface/PhysicsList.h" | ||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
|
||
class QGSPCMS_FTFP_BERT_EMN: public PhysicsList { | ||
|
||
public: | ||
QGSPCMS_FTFP_BERT_EMN(const edm::ParameterSet & p); | ||
}; | ||
|
||
#endif | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.