89 edm::LogVerbatim(
"PhysicsList") <<
"### " << GetPhysicsName() <<
" Construct EM Processes";
96 G4EmBuilder::PrepareEMPhysics();
98 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
100 G4hMultipleScattering* hmsc =
new G4hMultipleScattering(
"ionmsc");
101 G4NuclearStopping* pnuc(
nullptr);
104 G4double highEnergyLimit = G4EmParameters::Instance()->MscEnergyLimit();
106 const G4Region* aRegion = G4RegionStore::GetInstance()->GetRegion(
"HcalRegion",
false);
107 const G4Region* bRegion = G4RegionStore::GetInstance()->GetRegion(
"HGCalRegion",
false);
110 G4ParticleDefinition* particle = G4Gamma::Gamma();
112 G4PhotoElectricEffect* pee =
new G4PhotoElectricEffect();
114 if (G4EmParameters::Instance()->GeneralProcessActive()) {
115 G4GammaGeneralProcess* sp =
new G4GammaGeneralProcess();
116 sp->AddEmProcess(pee);
117 sp->AddEmProcess(
new G4ComptonScattering());
118 sp->AddEmProcess(
new G4GammaConversion());
119 G4LossTableManager::Instance()->SetGammaGeneralProcess(sp);
120 ph->RegisterProcess(sp, particle);
123 ph->RegisterProcess(pee, particle);
124 ph->RegisterProcess(
new G4ComptonScattering(), particle);
125 ph->RegisterProcess(
new G4GammaConversion(), particle);
131 G4eIonisation* eioni =
new G4eIonisation();
133 G4UrbanMscModel* msc1 =
new G4UrbanMscModel();
134 G4WentzelVIModel* msc2 =
new G4WentzelVIModel();
135 msc1->SetHighEnergyLimit(highEnergyLimit);
136 msc2->SetLowEnergyLimit(highEnergyLimit);
139 G4UrbanMscModel* msc3 =
nullptr;
140 if (
nullptr != aRegion ||
nullptr != bRegion) {
141 msc3 =
new G4UrbanMscModel();
142 msc3->SetHighEnergyLimit(highEnergyLimit);
148 msc3->SetLocked(
true);
151 #if G4VERSION_NUMBER >= 1110 152 G4TransportationWithMscType transportationWithMsc = G4EmParameters::Instance()->TransportationWithMsc();
153 if (transportationWithMsc != G4TransportationWithMscType::fDisabled) {
154 G4ProcessManager* procManager = particle->GetProcessManager();
156 G4VProcess* removed = procManager->RemoveProcess(0);
157 if (removed->GetProcessName() !=
"Transportation") {
158 G4Exception(
"CMSEmStandardPhysics::ConstructProcess",
161 "replaced process is not G4Transportation!");
163 G4TransportationWithMsc* transportWithMsc =
165 if (transportationWithMsc == G4TransportationWithMscType::fMultipleSteps) {
166 transportWithMsc->SetMultipleSteps(
true);
168 transportWithMsc->AddMscModel(msc1);
169 transportWithMsc->AddMscModel(msc2);
170 if (
nullptr != aRegion) {
171 transportWithMsc->AddMscModel(msc3, -1, aRegion);
173 if (
nullptr != bRegion) {
174 transportWithMsc->AddMscModel(msc3, -1, bRegion);
176 procManager->AddProcess(transportWithMsc, -1, 0, 0);
181 G4eMultipleScattering* msc =
new G4eMultipleScattering;
182 msc->SetEmModel(msc1);
183 msc->SetEmModel(msc2);
184 if (
nullptr != aRegion) {
185 msc->AddEmModel(-1, msc3, aRegion);
187 if (
nullptr != bRegion) {
188 msc->AddEmModel(-1, msc3, bRegion);
190 ph->RegisterProcess(msc, particle);
194 G4eCoulombScatteringModel* ssm =
new G4eCoulombScatteringModel();
195 G4CoulombScattering*
ss =
new G4CoulombScattering();
197 ss->SetMinKinEnergy(highEnergyLimit);
198 ssm->SetLowEnergyLimit(highEnergyLimit);
199 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
201 ph->RegisterProcess(eioni, particle);
202 ph->RegisterProcess(
new G4eBremsstrahlung(), particle);
203 ph->RegisterProcess(
ss, particle);
206 particle = G4Positron::Positron();
207 eioni =
new G4eIonisation();
209 msc1 =
new G4UrbanMscModel();
210 msc2 =
new G4WentzelVIModel();
211 msc1->SetHighEnergyLimit(highEnergyLimit);
212 msc2->SetLowEnergyLimit(highEnergyLimit);
215 if (
nullptr != aRegion ||
nullptr != bRegion) {
216 msc3 =
new G4UrbanMscModel();
217 msc3->SetHighEnergyLimit(highEnergyLimit);
223 msc3->SetLocked(
true);
226 #if G4VERSION_NUMBER >= 1110 227 if (transportationWithMsc != G4TransportationWithMscType::fDisabled) {
228 G4ProcessManager* procManager = particle->GetProcessManager();
230 G4VProcess* removed = procManager->RemoveProcess(0);
231 if (removed->GetProcessName() !=
"Transportation") {
232 G4Exception(
"CMSEmStandardPhysics::ConstructProcess",
235 "replaced process is not G4Transportation!");
237 G4TransportationWithMsc* transportWithMsc =
239 if (transportationWithMsc == G4TransportationWithMscType::fMultipleSteps) {
240 transportWithMsc->SetMultipleSteps(
true);
242 transportWithMsc->AddMscModel(msc1);
243 transportWithMsc->AddMscModel(msc2);
244 if (
nullptr != aRegion) {
245 transportWithMsc->AddMscModel(msc3, -1, aRegion);
247 if (
nullptr != bRegion) {
248 transportWithMsc->AddMscModel(msc3, -1, bRegion);
250 procManager->AddProcess(transportWithMsc, -1, 0, 0);
255 G4eMultipleScattering* msc =
new G4eMultipleScattering;
256 msc->SetEmModel(msc1);
257 msc->SetEmModel(msc2);
258 if (
nullptr != aRegion) {
259 msc->AddEmModel(-1, msc3, aRegion);
261 if (
nullptr != bRegion) {
262 msc->AddEmModel(-1, msc3, bRegion);
264 ph->RegisterProcess(msc, particle);
268 ssm =
new G4eCoulombScatteringModel();
269 ss =
new G4CoulombScattering();
271 ss->SetMinKinEnergy(highEnergyLimit);
272 ssm->SetLowEnergyLimit(highEnergyLimit);
273 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
275 ph->RegisterProcess(eioni, particle);
276 ph->RegisterProcess(
new G4eBremsstrahlung(), particle);
277 ph->RegisterProcess(
new G4eplusAnnihilation(), particle);
278 ph->RegisterProcess(
ss, particle);
281 particle = G4GenericIon::GenericIon();
282 G4ionIonisation* ionIoni =
new G4ionIonisation();
283 ph->RegisterProcess(hmsc, particle);
284 ph->RegisterProcess(ionIoni, particle);
287 G4EmBuilder::ConstructCharged(hmsc, pnuc);
Log< level::Info, true > LogVerbatim
G4MscStepLimitType fStepLimitType