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" 27 #include "G4hIonisation.hh" 28 #include "G4ionIonisation.hh" 30 #include "G4ParticleTable.hh" 32 #include "G4Electron.hh" 33 #include "G4Positron.hh" 34 #include "G4GenericIon.hh" 36 #include "G4PhysicsListHelper.hh" 37 #include "G4BuilderType.hh" 38 #include "G4GammaGeneralProcess.hh" 39 #include "G4LossTableManager.hh" 41 #include "G4RegionStore.hh" 42 #include "G4Region.hh" 46 : G4VPhysicsConstructor(
"CMSEmStandard_emm") {
48 G4EmParameters* param = G4EmParameters::Instance();
50 param->SetVerbose(ver);
51 param->SetApplyCuts(
true);
52 param->SetStepFunction(0.8, 1 * CLHEP::mm);
53 param->SetMscRangeFactor(0.2);
54 param->SetMscStepLimitType(fMinimal);
55 param->SetFluo(
false);
56 SetPhysicsType(bElectromagnetic);
60 fLambdaLimit =
p.getParameter<
double>(
"G4MscLambdaLimit") * CLHEP::mm;
63 if (msc ==
"UseSafetyPlus") {
66 if (msc ==
"Minimal") {
75 G4EmBuilder::ConstructMinimalEmSet();
80 edm::LogVerbatim(
"PhysicsList") <<
"### " << GetPhysicsName() <<
" Construct EM Processes";
87 G4EmBuilder::PrepareEMPhysics();
89 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
91 G4hMultipleScattering* hmsc =
new G4hMultipleScattering(
"ionmsc");
92 G4NuclearStopping* pnuc(
nullptr);
95 G4double highEnergyLimit = G4EmParameters::Instance()->MscEnergyLimit();
97 const G4Region* aRegion = G4RegionStore::GetInstance()->GetRegion(
"HcalRegion",
false);
98 const G4Region* bRegion = G4RegionStore::GetInstance()->GetRegion(
"HGCalRegion",
false);
101 G4ParticleDefinition* particle = G4Gamma::Gamma();
103 G4PhotoElectricEffect* pee =
new G4PhotoElectricEffect();
105 if (G4EmParameters::Instance()->GeneralProcessActive()) {
106 G4GammaGeneralProcess* sp =
new G4GammaGeneralProcess();
107 sp->AddEmProcess(pee);
108 sp->AddEmProcess(
new G4ComptonScattering());
109 sp->AddEmProcess(
new G4GammaConversion());
110 G4LossTableManager::Instance()->SetGammaGeneralProcess(sp);
111 ph->RegisterProcess(sp, particle);
114 ph->RegisterProcess(pee, particle);
115 ph->RegisterProcess(
new G4ComptonScattering(), particle);
116 ph->RegisterProcess(
new G4GammaConversion(), particle);
122 G4eIonisation* eioni =
new G4eIonisation();
124 G4eMultipleScattering* msc =
new G4eMultipleScattering;
125 G4UrbanMscModel* msc1 =
new G4UrbanMscModel();
126 G4WentzelVIModel* msc2 =
new G4WentzelVIModel();
127 msc1->SetHighEnergyLimit(highEnergyLimit);
128 msc2->SetLowEnergyLimit(highEnergyLimit);
129 msc->SetEmModel(msc1);
130 msc->SetEmModel(msc2);
133 if (
nullptr != aRegion ||
nullptr != bRegion) {
134 G4UrbanMscModel* msc3 =
new G4UrbanMscModel();
135 msc3->SetHighEnergyLimit(highEnergyLimit);
141 msc3->SetLocked(
true);
143 if (
nullptr != aRegion) {
144 msc->AddEmModel(-1, msc3, aRegion);
146 if (
nullptr != bRegion) {
147 msc->AddEmModel(-1, msc3, bRegion);
152 G4eCoulombScatteringModel* ssm =
new G4eCoulombScatteringModel();
153 G4CoulombScattering*
ss =
new G4CoulombScattering();
155 ss->SetMinKinEnergy(highEnergyLimit);
156 ssm->SetLowEnergyLimit(highEnergyLimit);
157 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
159 ph->RegisterProcess(msc, particle);
160 ph->RegisterProcess(eioni, particle);
161 ph->RegisterProcess(
new G4eBremsstrahlung(), particle);
162 ph->RegisterProcess(
ss, particle);
165 particle = G4Positron::Positron();
166 eioni =
new G4eIonisation();
168 msc =
new G4eMultipleScattering();
169 msc1 =
new G4UrbanMscModel();
170 msc2 =
new G4WentzelVIModel();
171 msc1->SetHighEnergyLimit(highEnergyLimit);
172 msc2->SetLowEnergyLimit(highEnergyLimit);
173 msc->SetEmModel(msc1);
174 msc->SetEmModel(msc2);
177 if (
nullptr != aRegion ||
nullptr != bRegion) {
178 G4UrbanMscModel* msc3 =
new G4UrbanMscModel();
179 msc3->SetHighEnergyLimit(highEnergyLimit);
185 msc3->SetLocked(
true);
187 if (
nullptr != aRegion) {
188 msc->AddEmModel(-1, msc3, aRegion);
190 if (
nullptr != bRegion) {
191 msc->AddEmModel(-1, msc3, bRegion);
196 ssm =
new G4eCoulombScatteringModel();
197 ss =
new G4CoulombScattering();
199 ss->SetMinKinEnergy(highEnergyLimit);
200 ssm->SetLowEnergyLimit(highEnergyLimit);
201 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
203 ph->RegisterProcess(msc, particle);
204 ph->RegisterProcess(eioni, particle);
205 ph->RegisterProcess(
new G4eBremsstrahlung(), particle);
206 ph->RegisterProcess(
new G4eplusAnnihilation(), particle);
207 ph->RegisterProcess(
ss, particle);
210 particle = G4GenericIon::GenericIon();
211 G4ionIonisation* ionIoni =
new G4ionIonisation();
212 ph->RegisterProcess(hmsc, particle);
213 ph->RegisterProcess(ionIoni, particle);
216 G4EmBuilder::ConstructCharged(hmsc, pnuc);
Log< level::Info, true > LogVerbatim
void ConstructParticle() override
void ConstructProcess() override
~CMSEmStandardPhysics() override
G4MscStepLimitType fStepLimitType
CMSEmStandardPhysics(G4int ver, const edm::ParameterSet &p)