6 #include "G4EmParameters.hh" 7 #include "G4ParticleTable.hh" 9 #include "G4ParticleDefinition.hh" 10 #include "G4LossTableManager.hh" 12 #include "G4ComptonScattering.hh" 13 #include "G4GammaConversion.hh" 14 #include "G4PhotoElectricEffect.hh" 16 #include "G4hMultipleScattering.hh" 17 #include "G4eMultipleScattering.hh" 18 #include "G4MuMultipleScattering.hh" 19 #include "G4CoulombScattering.hh" 20 #include "G4eCoulombScatteringModel.hh" 21 #include "G4WentzelVIModel.hh" 22 #include "G4UrbanMscModel.hh" 24 #include "G4eIonisation.hh" 25 #include "G4eBremsstrahlung.hh" 26 #include "G4eplusAnnihilation.hh" 27 #include "G4UAtomicDeexcitation.hh" 29 #include "G4MuIonisation.hh" 30 #include "G4MuBremsstrahlung.hh" 31 #include "G4MuPairProduction.hh" 33 #include "G4hIonisation.hh" 34 #include "G4ionIonisation.hh" 35 #include "G4hBremsstrahlung.hh" 36 #include "G4hPairProduction.hh" 39 #include "G4Electron.hh" 40 #include "G4Positron.hh" 41 #include "G4MuonPlus.hh" 42 #include "G4MuonMinus.hh" 43 #include "G4PionPlus.hh" 44 #include "G4PionMinus.hh" 45 #include "G4KaonPlus.hh" 46 #include "G4KaonMinus.hh" 47 #include "G4Proton.hh" 48 #include "G4AntiProton.hh" 49 #include "G4GenericIon.hh" 51 #include "G4PhysicsListHelper.hh" 52 #include "G4BuilderType.hh" 53 #include "G4RegionStore.hh" 54 #include "G4Region.hh" 55 #include "G4GammaGeneralProcess.hh" 56 #include "G4EmBuilder.hh" 58 #include <CLHEP/Units/SystemOfUnits.h> 61 : G4VPhysicsConstructor(
"CMSEmStandard_emm") {
64 G4EmParameters* param = G4EmParameters::Instance();
66 param->SetVerbose(ver);
67 param->SetApplyCuts(
true);
68 param->SetStepFunction(0.8, 1 * CLHEP::mm);
69 param->SetMscRangeFactor(0.2);
70 param->SetMscStepLimitType(fMinimal);
71 SetPhysicsType(bElectromagnetic);
72 double tcut =
p.getParameter<
double>(
"G4TrackingCut") * CLHEP::MeV;
73 param->SetLowestElectronEnergy(tcut);
74 param->SetLowestMuHadEnergy(tcut);
79 G4EmBuilder::ConstructMinimalEmSet();
84 edm::LogVerbatim(
"PhysicsList") <<
"### " << GetPhysicsName() <<
" Construct Processes";
91 G4PhysicsListHelper*
ph = G4PhysicsListHelper::GetPhysicsListHelper();
92 G4LossTableManager* man = G4LossTableManager::Instance();
95 G4MuBremsstrahlung* mub =
nullptr;
96 G4MuPairProduction* mup =
nullptr;
97 G4hBremsstrahlung* pib =
nullptr;
98 G4hPairProduction* pip =
nullptr;
99 G4hBremsstrahlung* kb =
nullptr;
100 G4hPairProduction* kp =
nullptr;
101 G4hBremsstrahlung* pb =
nullptr;
102 G4hPairProduction*
pp =
nullptr;
105 G4MuMultipleScattering* mumsc =
nullptr;
106 G4hMultipleScattering* pimsc =
nullptr;
107 G4hMultipleScattering* kmsc =
nullptr;
108 G4hMultipleScattering* pmsc =
nullptr;
109 G4hMultipleScattering* hmsc =
nullptr;
112 G4CoulombScattering* muss =
nullptr;
113 G4CoulombScattering* piss =
nullptr;
114 G4CoulombScattering* kss =
nullptr;
117 G4double highEnergyLimit = 100 * CLHEP::MeV;
119 G4Region* aRegion = G4RegionStore::GetInstance()->GetRegion(
"HcalRegion",
false);
120 G4Region* bRegion = G4RegionStore::GetInstance()->GetRegion(
"HGCalRegion",
false);
122 edm::LogVerbatim(
"PhysicsList") <<
"CMSEmStandardPhysicsLPM: HcalRegion " << aRegion <<
"; HGCalRegion " << bRegion;
124 G4ParticleTable*
table = G4ParticleTable::GetParticleTable();
130 G4PhotoElectricEffect* pee =
new G4PhotoElectricEffect();
132 if (G4EmParameters::Instance()->GeneralProcessActive()) {
134 sp->AddEmProcess(pee);
135 sp->AddEmProcess(
new G4ComptonScattering());
136 sp->AddEmProcess(
new G4GammaConversion());
137 man->SetGammaGeneralProcess(sp);
138 ph->RegisterProcess(sp, particle);
141 ph->RegisterProcess(pee, particle);
142 ph->RegisterProcess(
new G4ComptonScattering(), particle);
143 ph->RegisterProcess(
new G4GammaConversion(), particle);
147 G4eIonisation* eioni =
new G4eIonisation();
149 G4eMultipleScattering* msc =
new G4eMultipleScattering;
150 G4UrbanMscModel* msc1 =
new G4UrbanMscModel();
151 G4WentzelVIModel* msc2 =
new G4WentzelVIModel();
152 msc1->SetHighEnergyLimit(highEnergyLimit);
153 msc2->SetLowEnergyLimit(highEnergyLimit);
154 msc->SetEmModel(msc1);
155 msc->SetEmModel(msc2);
158 if (
nullptr != aRegion ||
nullptr != bRegion) {
159 G4UrbanMscModel* msc3 =
new G4UrbanMscModel();
160 msc3->SetHighEnergyLimit(highEnergyLimit);
161 msc3->SetLocked(
true);
163 if (
nullptr != aRegion) {
164 msc->AddEmModel(-1, msc3, aRegion);
166 if (
nullptr != bRegion) {
167 msc->AddEmModel(-1, msc3, bRegion);
171 G4eCoulombScatteringModel* ssm =
new G4eCoulombScatteringModel();
172 G4CoulombScattering*
ss =
new G4CoulombScattering();
174 ss->SetMinKinEnergy(highEnergyLimit);
175 ssm->SetLowEnergyLimit(highEnergyLimit);
176 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
178 ph->RegisterProcess(msc, particle);
179 ph->RegisterProcess(eioni, particle);
180 ph->RegisterProcess(
new G4eBremsstrahlung(), particle);
181 ph->RegisterProcess(
ss, particle);
184 G4eIonisation* eioni =
new G4eIonisation();
186 G4eMultipleScattering* msc =
new G4eMultipleScattering;
187 G4UrbanMscModel* msc1 =
new G4UrbanMscModel();
188 G4WentzelVIModel* msc2 =
new G4WentzelVIModel();
189 msc1->SetHighEnergyLimit(highEnergyLimit);
190 msc2->SetLowEnergyLimit(highEnergyLimit);
191 msc->SetEmModel(msc1);
192 msc->SetEmModel(msc2);
195 if (
nullptr != aRegion ||
nullptr != bRegion) {
196 G4UrbanMscModel* msc3 =
new G4UrbanMscModel();
197 msc3->SetHighEnergyLimit(highEnergyLimit);
198 msc3->SetLocked(
true);
200 if (
nullptr != aRegion) {
201 msc->AddEmModel(-1, msc3, aRegion);
203 if (
nullptr != bRegion) {
204 msc->AddEmModel(-1, msc3, bRegion);
208 G4eCoulombScatteringModel* ssm =
new G4eCoulombScatteringModel();
209 G4CoulombScattering*
ss =
new G4CoulombScattering();
211 ss->SetMinKinEnergy(highEnergyLimit);
212 ssm->SetLowEnergyLimit(highEnergyLimit);
213 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
215 ph->RegisterProcess(msc, particle);
216 ph->RegisterProcess(eioni, particle);
217 ph->RegisterProcess(
new G4eBremsstrahlung(), particle);
218 ph->RegisterProcess(
new G4eplusAnnihilation(), particle);
219 ph->RegisterProcess(
ss, particle);
222 if (
nullptr == mub) {
223 mub =
new G4MuBremsstrahlung();
224 mup =
new G4MuPairProduction();
225 mumsc =
new G4MuMultipleScattering();
226 mumsc->SetEmModel(
new G4WentzelVIModel());
227 muss =
new G4CoulombScattering();
229 ph->RegisterProcess(mumsc, particle);
230 ph->RegisterProcess(
new G4MuIonisation(), particle);
231 ph->RegisterProcess(mub, particle);
232 ph->RegisterProcess(mup, particle);
233 ph->RegisterProcess(muss, particle);
236 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
237 ph->RegisterProcess(
new G4ionIonisation(), particle);
240 if (
nullptr == hmsc) {
241 hmsc =
new G4hMultipleScattering(
"ionmsc");
243 ph->RegisterProcess(hmsc, particle);
244 ph->RegisterProcess(
new G4ionIonisation(), particle);
247 if (
nullptr == pib) {
248 pib =
new G4hBremsstrahlung();
249 pip =
new G4hPairProduction();
250 pimsc =
new G4hMultipleScattering();
251 pimsc->SetEmModel(
new G4WentzelVIModel());
252 piss =
new G4CoulombScattering();
254 ph->RegisterProcess(pimsc, particle);
255 ph->RegisterProcess(
new G4hIonisation(), particle);
256 ph->RegisterProcess(pib, particle);
257 ph->RegisterProcess(pip, particle);
258 ph->RegisterProcess(piss, particle);
262 kb =
new G4hBremsstrahlung();
263 kp =
new G4hPairProduction();
264 kmsc =
new G4hMultipleScattering();
265 kmsc->SetEmModel(
new G4WentzelVIModel());
266 kss =
new G4CoulombScattering();
268 ph->RegisterProcess(kmsc, particle);
269 ph->RegisterProcess(
new G4hIonisation(), particle);
270 ph->RegisterProcess(kb, particle);
271 ph->RegisterProcess(kp, particle);
272 ph->RegisterProcess(kss, particle);
276 pb =
new G4hBremsstrahlung();
277 pp =
new G4hPairProduction();
279 pmsc =
new G4hMultipleScattering();
280 pmsc->SetEmModel(
new G4WentzelVIModel());
282 ph->RegisterProcess(pmsc, particle);
283 ph->RegisterProcess(
new G4hIonisation(), particle);
284 ph->RegisterProcess(pb, particle);
285 ph->RegisterProcess(
pp, particle);
286 ph->RegisterProcess(
new G4CoulombScattering(), particle);
288 }
else if (particle->GetPDGCharge() != 0.0) {
289 if (
nullptr == hmsc) {
290 hmsc =
new G4hMultipleScattering(
"ionmsc");
292 ph->RegisterProcess(hmsc, particle);
293 ph->RegisterProcess(
new G4hIonisation(), particle);
296 edm::LogVerbatim(
"PhysicsList") <<
"CMSEmStandardPhysicsLPM: EM physics is instantiated";
Log< level::Info, true > LogVerbatim
void ConstructParticle() override
CMSEmStandardPhysicsLPM(G4int ver, const edm::ParameterSet &p)
void ConstructProcess() override
const std::vector< G4String > & PartNames() const