Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Detectors/TPC/simulation/src/Detector.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Bool_t Detector::ProcessHits(FairVolume* vol)
const int trackPdg = fMC->TrackPid();
const bool isMonopole = (TMath::Abs(trackPdg) == 4110000 || TMath::Abs(trackPdg) == 4120000);
if (static_cast<int>(trackCharge) == 0) {
// Fall through only for monopoles when ionisation is enabled.
// Fall through only for monopoles when ionisation is enabled.
// The behaviour for the other neutral particles remains as before.
if (!isMonopole || fMC->Edep() <= 0.) {
// set a very large step size for neutral particles
Expand Down Expand Up @@ -215,7 +215,7 @@ Bool_t Detector::ProcessHits(FairVolume* vol)
if (isMonopole) {
// ---| MONOPOLE IONISATION |--------
// A magnetic monopole ionises the gas via G4mplIonisation (Ahlen stopping
// power), which is not described by the electric-charge model (no e-charge)
// power), which is not described by the electric-charge model (no e-charge)
// Ionisation electrons calculated directly from the energy deposited in this step: Nel = Edep / Wion.
// To check by TPC experts if this is actually the best way...
numberOfElectrons = static_cast<int>(fMC->Edep() / static_cast<double>(gasParam.Wion));
Expand Down
2 changes: 1 addition & 1 deletion Detectors/gconfig/src/O2MonopolePhysics.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class O2MonopolePhysics : public G4VUserPhysicsList
continue;
}
// The reference EM physics list attaches the standard hadron ionisation
// (hIoni) to the monopole, which is wrong and makes G4LossTableManager crash
// (hIoni) to the monopole, which is wrong and makes G4LossTableManager crash
// while merging the two dE/dx tables.
// Any pre-existing energy-loss process is removed so that mplIoni is the
// monopole single, correct ionisation process. This is taken from Geant4
Expand Down