4 #include "G4SystemOfUnits.hh"
5 #include "G4ParticleDefinition.hh"
6 #include "G4EmParameters.hh"
7 #include "G4EmBuilder.hh"
9 #include "G4ComptonScattering.hh"
10 #include "G4GammaConversion.hh"
11 #include "G4PhotoElectricEffect.hh"
12 #include "G4LivermorePhotoElectricModel.hh"
14 #include "G4MscStepLimitType.hh"
16 #include "G4eMultipleScattering.hh"
17 #include "G4hMultipleScattering.hh"
18 #include "G4eCoulombScatteringModel.hh"
19 #include "G4CoulombScattering.hh"
20 #include "G4WentzelVIModel.hh"
21 #include "G4UrbanMscModel.hh"
23 #include "G4eIonisation.hh"
24 #include "G4eBremsstrahlung.hh"
25 #include "G4eplusAnnihilation.hh"
28 #include "G4hIonisation.hh"
29 #include "G4ionIonisation.hh"
31 #include "G4ParticleTable.hh"
33 #include "G4Electron.hh"
34 #include "G4Positron.hh"
35 #include "G4GenericIon.hh"
37 #include "G4PhysicsListHelper.hh"
38 #include "G4BuilderType.hh"
39 #include "G4GammaGeneralProcess.hh"
40 #include "G4LossTableManager.hh"
42 #include "G4RegionStore.hh"
43 #include "G4Region.hh"
47 : G4VPhysicsConstructor(
"CMSEmStandard_emm"),
verbose(ver) {
48 G4EmParameters* param = G4EmParameters::Instance();
51 param->SetApplyCuts(
true);
52 param->SetStepFunction(0.8, 1 * CLHEP::mm);
53 param->SetMscRangeFactor(0.2);
54 param->SetMscStepLimitType(fMinimal);
55 SetPhysicsType(bElectromagnetic);
59 fLambdaLimit =
p.getParameter<
double>(
"G4MscLambdaLimit") * CLHEP::mm;
62 if (msc ==
"UseSafetyPlus") {
65 if (msc ==
"Minimal") {
74 G4EmBuilder::ConstructMinimalEmSet();
79 edm::LogVerbatim(
"PhysicsList") <<
"### " << GetPhysicsName() <<
" Construct EM Processes";
85 G4EmBuilder::PrepareEMPhysics();
87 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
89 G4hMultipleScattering* hmsc =
new G4hMultipleScattering(
"ionmsc");
90 G4NuclearStopping* pnuc(
nullptr);
93 G4double highEnergyLimit = G4EmParameters::Instance()->MscEnergyLimit();
95 const G4Region* aRegion = G4RegionStore::GetInstance()->GetRegion(
"HcalRegion",
false);
96 const G4Region* bRegion = G4RegionStore::GetInstance()->GetRegion(
"HGCalRegion",
false);
99 G4ParticleDefinition* particle = G4Gamma::Gamma();
101 G4PhotoElectricEffect* pee =
new G4PhotoElectricEffect();
102 pee->SetEmModel(
new G4LivermorePhotoElectricModel());
104 if (G4EmParameters::Instance()->GeneralProcessActive()) {
105 G4GammaGeneralProcess* sp =
new G4GammaGeneralProcess();
106 sp->AddEmProcess(pee);
107 sp->AddEmProcess(
new G4ComptonScattering());
108 sp->AddEmProcess(
new G4GammaConversion());
109 G4LossTableManager::Instance()->SetGammaGeneralProcess(sp);
110 ph->RegisterProcess(sp, particle);
113 ph->RegisterProcess(pee, particle);
114 ph->RegisterProcess(
new G4ComptonScattering(), particle);
115 ph->RegisterProcess(
new G4GammaConversion(), particle);
121 G4eIonisation* eioni =
new G4eIonisation();
123 G4eMultipleScattering* msc =
new G4eMultipleScattering;
124 G4UrbanMscModel* msc1 =
new G4UrbanMscModel();
125 G4WentzelVIModel* msc2 =
new G4WentzelVIModel();
126 G4UrbanMscModel* msc3 =
new G4UrbanMscModel();
127 msc1->SetHighEnergyLimit(highEnergyLimit);
128 msc2->SetLowEnergyLimit(highEnergyLimit);
129 msc3->SetHighEnergyLimit(highEnergyLimit);
135 msc3->SetLocked(
true);
136 msc->SetEmModel(msc1);
137 msc->SetEmModel(msc2);
138 if (
nullptr != aRegion) {
139 msc->AddEmModel(-1, msc3, aRegion);
141 if (
nullptr != bRegion) {
142 msc->AddEmModel(-1, msc3, bRegion);
145 G4eCoulombScatteringModel* ssm =
new G4eCoulombScatteringModel();
146 G4CoulombScattering*
ss =
new G4CoulombScattering();
148 ss->SetMinKinEnergy(highEnergyLimit);
149 ssm->SetLowEnergyLimit(highEnergyLimit);
150 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
152 ph->RegisterProcess(msc, particle);
153 ph->RegisterProcess(eioni, particle);
154 ph->RegisterProcess(
new G4eBremsstrahlung(), particle);
155 ph->RegisterProcess(
ss, particle);
158 particle = G4Positron::Positron();
159 eioni =
new G4eIonisation();
161 msc =
new G4eMultipleScattering();
162 msc1 =
new G4UrbanMscModel();
163 msc2 =
new G4WentzelVIModel();
164 msc3 =
new G4UrbanMscModel();
165 msc1->SetHighEnergyLimit(highEnergyLimit);
166 msc2->SetLowEnergyLimit(highEnergyLimit);
167 msc3->SetHighEnergyLimit(highEnergyLimit);
173 msc3->SetLocked(
true);
174 msc->SetEmModel(msc1);
175 msc->SetEmModel(msc2);
176 if (
nullptr != aRegion) {
177 msc->AddEmModel(-1, msc3, aRegion);
179 if (
nullptr != bRegion) {
180 msc->AddEmModel(-1, msc3, bRegion);
183 ssm =
new G4eCoulombScatteringModel();
184 ss =
new G4CoulombScattering();
186 ss->SetMinKinEnergy(highEnergyLimit);
187 ssm->SetLowEnergyLimit(highEnergyLimit);
188 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
190 ph->RegisterProcess(msc, particle);
191 ph->RegisterProcess(eioni, particle);
192 ph->RegisterProcess(
new G4eBremsstrahlung(), particle);
193 ph->RegisterProcess(
new G4eplusAnnihilation(), particle);
194 ph->RegisterProcess(
ss, particle);
197 particle = G4GenericIon::GenericIon();
198 G4ionIonisation* ionIoni =
new G4ionIonisation();
199 ph->RegisterProcess(hmsc, particle);
200 ph->RegisterProcess(ionIoni, particle);
203 G4EmBuilder::ConstructCharged(hmsc, pnuc);