14 #include "G4FastSimulationManagerProcess.hh" 15 #include "G4ProcessManager.hh" 17 #include "G4LeptonConstructor.hh" 18 #include "G4MesonConstructor.hh" 19 #include "G4BaryonConstructor.hh" 20 #include "G4ShortLivedConstructor.hh" 21 #include "G4IonConstructor.hh" 22 #include "G4RegionStore.hh" 23 #include "G4Electron.hh" 24 #include "G4Positron.hh" 25 #include "G4MuonMinus.hh" 26 #include "G4MuonPlus.hh" 27 #include "G4PionMinus.hh" 28 #include "G4PionPlus.hh" 29 #include "G4KaonMinus.hh" 30 #include "G4KaonPlus.hh" 31 #include "G4Proton.hh" 32 #include "G4AntiProton.hh" 34 #include "G4EmParameters.hh" 35 #include "G4EmProcessOptions.hh" 36 #include "G4PhysicsListHelper.hh" 37 #include "G4SystemOfUnits.hh" 38 #include "G4UAtomicDeexcitation.hh" 39 #include "G4LossTableManager.hh" 43 : G4VPhysicsConstructor(name), theParSet(p)
51 G4EmParameters* param = G4EmParameters::Instance();
53 param->SetVerbose(verb);
56 param->SetBremsstrahlungTh(bremth);
62 <<
"ParametrisedEMPhysics::ConstructProcess: bremsstrahlung threshold Eth= " 63 << bremth/
GeV <<
" GeV" 64 <<
"\n verbosity= " << verb
65 <<
" fluoFlag: " << fluo;
77 G4LeptonConstructor pLeptonConstructor;
78 pLeptonConstructor.ConstructParticle();
80 G4MesonConstructor pMesonConstructor;
81 pMesonConstructor.ConstructParticle();
83 G4BaryonConstructor pBaryonConstructor;
84 pBaryonConstructor.ConstructParticle();
86 G4ShortLivedConstructor pShortLivedConstructor;
87 pShortLivedConstructor.ConstructParticle();
89 G4IonConstructor pConstructor;
90 pConstructor.ConstructParticle();
101 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
102 if(gem || ghad || gemHad || ghadHad) {
104 <<
"ParametrisedEMPhysics: GFlash Construct for e+-: " 105 << gem <<
" " << ghad <<
" for hadrons: " << gemHad <<
" " << ghadHad;
107 G4FastSimulationManagerProcess * theFastSimulationManagerProcess =
108 new G4FastSimulationManagerProcess();
112 ph->RegisterProcess(theFastSimulationManagerProcess, G4Positron::Positron());
114 if(gemHad || ghadHad) {
115 ph->RegisterProcess(theFastSimulationManagerProcess, G4Proton::Proton());
116 ph->RegisterProcess(theFastSimulationManagerProcess, G4AntiProton::AntiProton());
117 ph->RegisterProcess(theFastSimulationManagerProcess, G4PionPlus::PionPlus());
118 ph->RegisterProcess(theFastSimulationManagerProcess, G4PionMinus::PionMinus());
119 ph->RegisterProcess(theFastSimulationManagerProcess, G4KaonPlus::KaonPlus());
120 ph->RegisterProcess(theFastSimulationManagerProcess, G4KaonMinus::KaonMinus());
125 G4RegionStore::GetInstance()->GetRegion(
"EcalRegion");
129 <<
"ParametrisedEMPhysics::ConstructProcess: " 130 <<
"EcalRegion is not defined, GFlash will not be enabled for ECAL!";
149 if(ghad || ghadHad) {
151 G4RegionStore::GetInstance()->GetRegion(
"HcalRegion");
154 <<
"ParametrisedEMPhysics::ConstructProcess: " 155 <<
"HcalRegion is not defined, GFlash will not be enabled for HCAL!";
176 const G4int NREG = 6;
177 const G4String rname[NREG] = {
"EcalRegion",
"HcalRegion",
"MuonIron",
178 "PreshowerRegion",
"CastorRegion",
179 "DefaultRegionForTheWorld"};
180 G4double rrfact[NREG] = { 1.0 };
184 if(energyLim > 0.0) {
185 G4EmProcessOptions opt;
192 for(
int i=0;
i<NREG; ++
i) {
193 if(rrfact[
i] < 1.0) {
194 opt.ActivateSecondaryBiasing(
"eIoni",rname[
i],rrfact[i],energyLim);
195 opt.ActivateSecondaryBiasing(
"hIoni",rname[i],rrfact[i],energyLim);
197 <<
"ParametrisedEMPhysics: Russian Roulette" 198 <<
" for e- Prob= " << rrfact[
i]
200 <<
" inside " << rname[
i];
210 if(eLimiter || rLimiter) {
225 G4VAtomDeexcitation* de =
new G4UAtomicDeexcitation();
226 G4LossTableManager::Instance()->SetAtomDeexcitation(de);
ElectronLimiter * theElectronLimiter
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void SetRangeCheckFlag(G4bool)
edm::ParameterSet theParSet
ElectronLimiter * thePositronLimiter
virtual void ConstructParticle()
GFlashHadronShowerModel * theEcalHadShowerModel
void SetFieldCheckFlag(G4bool)
GFlashHadronShowerModel * theHcalHadShowerModel
virtual ~ParametrisedEMPhysics()
ParametrisedEMPhysics(std::string name, const edm::ParameterSet &p)
GFlashEMShowerModel * theHcalEMShowerModel
GFlashEMShowerModel * theEcalEMShowerModel
virtual void ConstructProcess()