Problem 881 - G4VEnergyLossProcess SetLossFluctuations(false) gives no energy loss at all
Summary: G4VEnergyLossProcess SetLossFluctuations(false) gives no energy loss at all
Status: RESOLVED INVALID
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/electromagnetic (show other problems)
Version: 8.1
Hardware: PC Linux
: P2 normal
Assignee: Michel.Maire
URL:
Depends on:
Blocks:
 
Reported: 2006-07-26 09:02 CEST by rikard.sandstrom
Modified: 2006-09-01 09:44 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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