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 "G4SystemOfUnits.hh" 61 : G4VPhysicsConstructor(
"CMSEmStandard_emm") {
63 G4EmParameters* param = G4EmParameters::Instance();
65 param->SetVerbose(ver);
66 param->SetApplyCuts(
true);
67 param->SetStepFunction(0.8, 1 * CLHEP::mm);
68 param->SetMscRangeFactor(0.2);
69 param->SetMscStepLimitType(fMinimal);
70 SetPhysicsType(bElectromagnetic);
71 double tcut =
p.getParameter<
double>(
"G4TrackingCut") * CLHEP::MeV;
72 param->SetLowestElectronEnergy(tcut);
73 param->SetLowestMuHadEnergy(tcut);
80 G4EmBuilder::ConstructMinimalEmSet();
85 edm::LogVerbatim(
"PhysicsList") <<
"### " << GetPhysicsName() <<
" Construct Processes";
92 G4PhysicsListHelper*
ph = G4PhysicsListHelper::GetPhysicsListHelper();
93 G4LossTableManager* man = G4LossTableManager::Instance();
96 G4MuBremsstrahlung* mub =
nullptr;
97 G4MuPairProduction* mup =
nullptr;
98 G4hBremsstrahlung* pib =
nullptr;
99 G4hPairProduction* pip =
nullptr;
100 G4hBremsstrahlung* kb =
nullptr;
101 G4hPairProduction* kp =
nullptr;
102 G4hBremsstrahlung* pb =
nullptr;
103 G4hPairProduction*
pp =
nullptr;
106 G4MuMultipleScattering* mumsc =
nullptr;
107 G4hMultipleScattering* pimsc =
nullptr;
108 G4hMultipleScattering* kmsc =
nullptr;
109 G4hMultipleScattering* pmsc =
nullptr;
110 G4hMultipleScattering* hmsc =
nullptr;
113 G4CoulombScattering* muss =
nullptr;
114 G4CoulombScattering* piss =
nullptr;
115 G4CoulombScattering* kss =
nullptr;
118 G4double highEnergyLimit = 100 * MeV;
120 G4Region* aRegion = G4RegionStore::GetInstance()->GetRegion(
"HcalRegion",
false);
121 G4Region* bRegion = G4RegionStore::GetInstance()->GetRegion(
"HGCalRegion",
false);
123 edm::LogVerbatim(
"PhysicsList") <<
"CMSEmStandardPhysicsLPM: HcalRegion " << aRegion <<
"; HGCalRegion " << bRegion;
125 G4ParticleTable*
table = G4ParticleTable::GetParticleTable();
131 G4PhotoElectricEffect* pee =
new G4PhotoElectricEffect();
133 if (G4EmParameters::Instance()->GeneralProcessActive()) {
135 sp->AddEmProcess(pee);
136 sp->AddEmProcess(
new G4ComptonScattering());
137 sp->AddEmProcess(
new G4GammaConversion());
138 man->SetGammaGeneralProcess(sp);
139 ph->RegisterProcess(sp, particle);
142 ph->RegisterProcess(pee, particle);
143 ph->RegisterProcess(
new G4ComptonScattering(), particle);
144 ph->RegisterProcess(
new G4GammaConversion(), particle);
148 G4eIonisation* eioni =
new G4eIonisation();
150 G4eMultipleScattering* msc =
new G4eMultipleScattering;
151 G4UrbanMscModel* msc1 =
new G4UrbanMscModel();
152 G4WentzelVIModel* msc2 =
new G4WentzelVIModel();
153 msc1->SetHighEnergyLimit(highEnergyLimit);
154 msc2->SetLowEnergyLimit(highEnergyLimit);
155 msc->SetEmModel(msc1);
156 msc->SetEmModel(msc2);
159 if (
nullptr != aRegion ||
nullptr != bRegion) {
160 G4UrbanMscModel* msc3 =
new G4UrbanMscModel();
161 msc3->SetHighEnergyLimit(highEnergyLimit);
162 msc3->SetLocked(
true);
164 if (
nullptr != aRegion) {
165 msc->AddEmModel(-1, msc3, aRegion);
167 if (
nullptr != bRegion) {
168 msc->AddEmModel(-1, msc3, bRegion);
172 G4eCoulombScatteringModel* ssm =
new G4eCoulombScatteringModel();
173 G4CoulombScattering*
ss =
new G4CoulombScattering();
175 ss->SetMinKinEnergy(highEnergyLimit);
176 ssm->SetLowEnergyLimit(highEnergyLimit);
177 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
179 ph->RegisterProcess(msc, particle);
180 ph->RegisterProcess(eioni, particle);
181 ph->RegisterProcess(
new G4eBremsstrahlung(), particle);
182 ph->RegisterProcess(
ss, particle);
185 G4eIonisation* eioni =
new G4eIonisation();
187 G4eMultipleScattering* msc =
new G4eMultipleScattering;
188 G4UrbanMscModel* msc1 =
new G4UrbanMscModel();
189 G4WentzelVIModel* msc2 =
new G4WentzelVIModel();
190 msc1->SetHighEnergyLimit(highEnergyLimit);
191 msc2->SetLowEnergyLimit(highEnergyLimit);
192 msc->SetEmModel(msc1);
193 msc->SetEmModel(msc2);
196 if (
nullptr != aRegion ||
nullptr != bRegion) {
197 G4UrbanMscModel* msc3 =
new G4UrbanMscModel();
198 msc3->SetHighEnergyLimit(highEnergyLimit);
199 msc3->SetLocked(
true);
201 if (
nullptr != aRegion) {
202 msc->AddEmModel(-1, msc3, aRegion);
204 if (
nullptr != bRegion) {
205 msc->AddEmModel(-1, msc3, bRegion);
209 G4eCoulombScatteringModel* ssm =
new G4eCoulombScatteringModel();
210 G4CoulombScattering*
ss =
new G4CoulombScattering();
212 ss->SetMinKinEnergy(highEnergyLimit);
213 ssm->SetLowEnergyLimit(highEnergyLimit);
214 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
216 ph->RegisterProcess(msc, particle);
217 ph->RegisterProcess(eioni, particle);
218 ph->RegisterProcess(
new G4eBremsstrahlung(), particle);
219 ph->RegisterProcess(
new G4eplusAnnihilation(), particle);
220 ph->RegisterProcess(
ss, particle);
223 if (
nullptr == mub) {
224 mub =
new G4MuBremsstrahlung();
225 mup =
new G4MuPairProduction();
226 mumsc =
new G4MuMultipleScattering();
227 mumsc->SetEmModel(
new G4WentzelVIModel());
228 muss =
new G4CoulombScattering();
230 ph->RegisterProcess(mumsc, particle);
231 ph->RegisterProcess(
new G4MuIonisation(), particle);
232 ph->RegisterProcess(mub, particle);
233 ph->RegisterProcess(mup, particle);
234 ph->RegisterProcess(muss, particle);
237 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
238 ph->RegisterProcess(
new G4ionIonisation(), particle);
241 if (
nullptr == hmsc) {
242 hmsc =
new G4hMultipleScattering(
"ionmsc");
244 ph->RegisterProcess(hmsc, particle);
245 ph->RegisterProcess(
new G4ionIonisation(), particle);
248 if (
nullptr == pib) {
249 pib =
new G4hBremsstrahlung();
250 pip =
new G4hPairProduction();
251 pimsc =
new G4hMultipleScattering();
252 pimsc->SetEmModel(
new G4WentzelVIModel());
253 piss =
new G4CoulombScattering();
255 ph->RegisterProcess(pimsc, particle);
256 ph->RegisterProcess(
new G4hIonisation(), particle);
257 ph->RegisterProcess(pib, particle);
258 ph->RegisterProcess(pip, particle);
259 ph->RegisterProcess(piss, particle);
263 kb =
new G4hBremsstrahlung();
264 kp =
new G4hPairProduction();
265 kmsc =
new G4hMultipleScattering();
266 kmsc->SetEmModel(
new G4WentzelVIModel());
267 kss =
new G4CoulombScattering();
269 ph->RegisterProcess(kmsc, particle);
270 ph->RegisterProcess(
new G4hIonisation(), particle);
271 ph->RegisterProcess(kb, particle);
272 ph->RegisterProcess(kp, particle);
273 ph->RegisterProcess(kss, particle);
277 pb =
new G4hBremsstrahlung();
278 pp =
new G4hPairProduction();
280 pmsc =
new G4hMultipleScattering();
281 pmsc->SetEmModel(
new G4WentzelVIModel());
283 ph->RegisterProcess(pmsc, particle);
284 ph->RegisterProcess(
new G4hIonisation(), particle);
285 ph->RegisterProcess(pb, particle);
286 ph->RegisterProcess(
pp, particle);
287 ph->RegisterProcess(
new G4CoulombScattering(), particle);
289 }
else if (particle->GetPDGCharge() != 0.0) {
290 if (
nullptr == hmsc) {
291 hmsc =
new G4hMultipleScattering(
"ionmsc");
293 ph->RegisterProcess(hmsc, particle);
294 ph->RegisterProcess(
new G4hIonisation(), particle);
297 edm::LogVerbatim(
"PhysicsList") <<
"CMSEmStandardPhysicsLPM: EM physics is instantiated";
Log< level::Info, true > LogVerbatim
~CMSEmStandardPhysicsLPM() override
void ConstructParticle() override
CMSEmStandardPhysicsLPM(G4int ver, const edm::ParameterSet &p)
void ConstructProcess() override
const std::vector< G4String > & PartNames() const