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 "G4PionMinus.hh"
26 #include "G4PionPlus.hh"
27 #include "G4KaonMinus.hh"
28 #include "G4KaonPlus.hh"
29 #include "G4Proton.hh"
30 #include "G4AntiProton.hh"
32 #include "G4EmProcessOptions.hh"
33 #include "G4PhysicsListHelper.hh"
34 #include "G4SystemOfUnits.hh"
35 #include "G4UAtomicDeexcitation.hh"
36 #include "G4LossTableManager.hh"
39 : G4VPhysicsConstructor(name), theParSet(p)
56 G4LeptonConstructor pLeptonConstructor;
57 pLeptonConstructor.ConstructParticle();
59 G4MesonConstructor pMesonConstructor;
60 pMesonConstructor.ConstructParticle();
62 G4BaryonConstructor pBaryonConstructor;
63 pBaryonConstructor.ConstructParticle();
65 G4ShortLivedConstructor pShortLivedConstructor;
66 pShortLivedConstructor.ConstructParticle();
68 G4IonConstructor pConstructor;
69 pConstructor.ConstructParticle();
80 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
81 if(gem || ghad || gemHad || ghadHad) {
83 <<
"ParametrisedEMPhysics: GFlash Construct for e+-: "
84 << gem <<
" " << ghad <<
" for hadrons: " << gemHad <<
" " << ghadHad;
86 G4FastSimulationManagerProcess * theFastSimulationManagerProcess =
87 new G4FastSimulationManagerProcess();
91 ph->RegisterProcess(theFastSimulationManagerProcess, G4Positron::Positron());
93 if(gemHad || ghadHad) {
94 ph->RegisterProcess(theFastSimulationManagerProcess, G4Proton::Proton());
95 ph->RegisterProcess(theFastSimulationManagerProcess, G4AntiProton::AntiProton());
96 ph->RegisterProcess(theFastSimulationManagerProcess, G4PionPlus::PionPlus());
97 ph->RegisterProcess(theFastSimulationManagerProcess, G4PionMinus::PionMinus());
98 ph->RegisterProcess(theFastSimulationManagerProcess, G4KaonPlus::KaonPlus());
99 ph->RegisterProcess(theFastSimulationManagerProcess, G4KaonMinus::KaonMinus());
104 G4RegionStore::GetInstance()->GetRegion(
"EcalRegion");
108 <<
"ParametrisedEMPhysics::ConstructProcess: "
109 <<
"EcalRegion is not defined, GFlash will not be enabled for ECAL!";
128 if(ghad || ghadHad) {
130 G4RegionStore::GetInstance()->GetRegion(
"HcalRegion");
133 <<
"ParametrisedEMPhysics::ConstructProcess: "
134 <<
"HcalRegion is not defined, GFlash will not be enabled for HCAL!";
155 G4EmProcessOptions opt;
157 opt.SetVerbose(verb - 1);
161 <<
"ParametrisedEMPhysics::ConstructProcess: bremsstrahlung threshold Eth= "
162 << bremth/
GeV <<
" GeV";
163 opt.SetBremsstrahlungTh(bremth);
166 const G4int NREG = 6;
167 const G4String rname[NREG] = {
"EcalRegion",
"HcalRegion",
"MuonIron",
168 "PreshowerRegion",
"CastorRegion",
169 "DefaultRegionForTheWorld"};
170 G4double rrfact[NREG] = { 1.0 };
174 if(energyLim > 0.0) {
181 for(
int i=0;
i<NREG; ++
i) {
182 if(rrfact[
i] < 1.0) {
183 opt.ActivateSecondaryBiasing(
"eIoni",rname[
i],rrfact[i],energyLim);
184 opt.ActivateSecondaryBiasing(
"hIoni",rname[i],rrfact[i],energyLim);
186 <<
"ParametrisedEMPhysics: Russian Roulette"
187 <<
" for e- Prob= " << rrfact[
i]
189 <<
" inside " << rname[
i];
199 if(eLimiter || rLimiter) {
214 G4VAtomDeexcitation* de =
new G4UAtomicDeexcitation();
215 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()