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 "G4MuonNuclearProcess.hh"
35 #include "G4MuonVDNuclearModel.hh"
37 #include "G4EmProcessOptions.hh"
38 #include "G4PhysicsListHelper.hh"
39 #include "G4SystemOfUnits.hh"
40 #include "G4UAtomicDeexcitation.hh"
41 #include "G4LossTableManager.hh"
45 : G4VPhysicsConstructor(name), theParSet(p)
62 G4LeptonConstructor pLeptonConstructor;
63 pLeptonConstructor.ConstructParticle();
65 G4MesonConstructor pMesonConstructor;
66 pMesonConstructor.ConstructParticle();
68 G4BaryonConstructor pBaryonConstructor;
69 pBaryonConstructor.ConstructParticle();
71 G4ShortLivedConstructor pShortLivedConstructor;
72 pShortLivedConstructor.ConstructParticle();
74 G4IonConstructor pConstructor;
75 pConstructor.ConstructParticle();
86 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
87 if(gem || ghad || gemHad || ghadHad) {
89 <<
"ParametrisedEMPhysics: GFlash Construct for e+-: "
90 << gem <<
" " << ghad <<
" for hadrons: " << gemHad <<
" " << ghadHad;
92 G4FastSimulationManagerProcess * theFastSimulationManagerProcess =
93 new G4FastSimulationManagerProcess();
97 ph->RegisterProcess(theFastSimulationManagerProcess, G4Positron::Positron());
99 if(gemHad || ghadHad) {
100 ph->RegisterProcess(theFastSimulationManagerProcess, G4Proton::Proton());
101 ph->RegisterProcess(theFastSimulationManagerProcess, G4AntiProton::AntiProton());
102 ph->RegisterProcess(theFastSimulationManagerProcess, G4PionPlus::PionPlus());
103 ph->RegisterProcess(theFastSimulationManagerProcess, G4PionMinus::PionMinus());
104 ph->RegisterProcess(theFastSimulationManagerProcess, G4KaonPlus::KaonPlus());
105 ph->RegisterProcess(theFastSimulationManagerProcess, G4KaonMinus::KaonMinus());
110 G4RegionStore::GetInstance()->GetRegion(
"EcalRegion");
114 <<
"ParametrisedEMPhysics::ConstructProcess: "
115 <<
"EcalRegion is not defined, GFlash will not be enabled for ECAL!";
134 if(ghad || ghadHad) {
136 G4RegionStore::GetInstance()->GetRegion(
"HcalRegion");
139 <<
"ParametrisedEMPhysics::ConstructProcess: "
140 <<
"HcalRegion is not defined, GFlash will not be enabled for HCAL!";
161 G4EmProcessOptions opt;
163 opt.SetVerbose(verb - 1);
167 <<
"ParametrisedEMPhysics::ConstructProcess: bremsstrahlung threshold Eth= "
168 << bremth/
GeV <<
" GeV";
169 opt.SetBremsstrahlungTh(bremth);
172 const G4int NREG = 6;
173 const G4String rname[NREG] = {
"EcalRegion",
"HcalRegion",
"MuonIron",
174 "PreshowerRegion",
"CastorRegion",
175 "DefaultRegionForTheWorld"};
176 G4double rrfact[NREG] = { 1.0 };
180 if(energyLim > 0.0) {
187 for(
int i=0;
i<NREG; ++
i) {
188 if(rrfact[
i] < 1.0) {
189 opt.ActivateSecondaryBiasing(
"eIoni",rname[
i],rrfact[i],energyLim);
190 opt.ActivateSecondaryBiasing(
"hIoni",rname[i],rrfact[i],energyLim);
192 <<
"ParametrisedEMPhysics: Russian Roulette"
193 <<
" for e- Prob= " << rrfact[
i]
195 <<
" inside " << rname[
i];
205 if(eLimiter || rLimiter) {
220 G4VAtomDeexcitation* de =
new G4UAtomicDeexcitation();
221 G4LossTableManager::Instance()->SetAtomDeexcitation(de);
227 G4MuonNuclearProcess* muNucProcess =
new G4MuonNuclearProcess();
228 muNucProcess->RegisterMe(
new G4MuonVDNuclearModel());
229 ph->RegisterProcess(muNucProcess, G4MuonPlus::MuonPlus());
230 ph->RegisterProcess(muNucProcess, G4MuonMinus::MuonMinus());
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()