Problem 881

Summary: G4VEnergyLossProcess SetLossFluctuations(false) gives no energy loss at all
Product: Geant4 Reporter: rikard.sandstrom
Component: processes/electromagneticAssignee: Michel.Maire
Status: RESOLVED INVALID    
Severity: normal    
Priority: P2    
Version: 8.1   
Hardware: PC   
OS: Linux   

Description rikard.sandstrom 2006-07-26 09:02:04 CEST
When we are running reference particles we do not want the particle to scatter
nor have fluctuations in the energy loss. In order to accomplish this we call
G4VEnergyLossProces::SetLossFluctuations. The problem is that if you remove all
fluctuations you do not get any energy loss at all. For muons at around 200
MeV/c, it seemed safest to keep the fluctuations for bremsstrahlung, and remove
them from more dominating processes.

  std::string process[3] = {"msc", "muIoni", "muPairProd"};
  std::string muon[2]     = {"mu+", "mu-"};
  G4ProcessTable * procTable = G4ProcessTable::GetProcessTable();
  ...
        ((G4VEnergyLossProcess*)procTable->FindProcess(process[j],
muon[i]))->SetLossFluctuations(isActive);
  ...
Comment 1 Michel.Maire 2006-09-01 09:44:59 CEST
you can control de/dx in examples/extended/electromagnetic
For instance TestEm5 with the macro dedx1.mac or TestEm3 with dedx.mac