Skip to content

Commit

Permalink
Merge pull request #107 from mnovak42/cor-brem
Browse files Browse the repository at this point in the history
Do not set the LPM correction flag for the bremsstrahlung models explicitly.
  • Loading branch information
mnovak42 authored Oct 17, 2024
2 parents 7567be0 + 775525f commit 76b23f9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions G4HepEm/G4HepEmInit/src/G4HepEmElectronInit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,17 @@ void InitElectronData(struct G4HepEmData* hepEmData, struct G4HepEmParameters* h
G4double energyLimit = std::min(modelSB->HighEnergyLimit(), hepEmPars->fElectronBremModelLim);
modelSB->SetHighEnergyLimit(energyLimit);
modelSB->SetSecondaryThreshold(G4EmParameters::Instance()->BremsstrahlungTh());
modelSB->SetLPMFlag(false);
// get cuts for secondary gamma
const G4DataVector* theGamCuts = static_cast<const G4DataVector*>(theCoupleTable->GetEnergyCutsVector(0));
// ACTIVATE sampling tables
modelSB->Initialise(g4PartDef, *theGamCuts);
//
// 3. High energy brem. model with LPM correction:
// 3. High energy brem. model with LPM correction (LPM flag is set by G4EmParameters):
// --- used on [1GeV : E_max]
G4eBremsstrahlungRelModel* modelRB = new G4eBremsstrahlungRelModel();
modelRB->SetLowEnergyLimit(energyLimit);
modelRB->SetHighEnergyLimit(emModelEMax);
modelRB->SetSecondaryThreshold(G4EmParameters::Instance()->BremsstrahlungTh());
modelRB->SetLPMFlag(true);
modelRB->Initialise(g4PartDef, *theGamCuts);
//
// 4. Urban msc model:
Expand Down

0 comments on commit 76b23f9

Please sign in to comment.