diff --git a/NPSimulation/include/ThinSiScorers.hh b/NPSimulation/include/ThinSiScorers.hh index fb2b72c5dbae243eb2392e3bfcec7b7191ce69f1..33563f2026d9173af4bb56181f35e615eef79ed8 100644 --- a/NPSimulation/include/ThinSiScorers.hh +++ b/NPSimulation/include/ThinSiScorers.hh @@ -28,6 +28,9 @@ #include "G4THitsMap.hh" namespace THINSI { + //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... + // This Threshold is used in the above scorer. Any energy deposit under this threshold will not create an entry. + const double TriggerThreshold = 0.1*keV ; class PSStripNumber : public G4VPrimitiveScorer { diff --git a/NPSimulation/src/ThinSiScorers.cc b/NPSimulation/src/ThinSiScorers.cc index ec0371438c1848e43ed74a3ca29eb0fc18ce9556..eef8dfd3b3d4fe5f39e92ac1606c7c4aa4be2c26 100644 --- a/NPSimulation/src/ThinSiScorers.cc +++ b/NPSimulation/src/ThinSiScorers.cc @@ -57,7 +57,7 @@ G4bool PSStripNumber::ProcessHits(G4Step* aStep, G4TouchableHistory*) //Rare case where particle is close to edge of silicon plan if (X == m_NumberOfStrip+1) X = m_NumberOfStrip; G4double edep = aStep->GetTotalEnergyDeposit(); - if (edep < 100*keV) return FALSE; + if (edep < TriggerThreshold) return FALSE; G4int index = aStep->GetTrack()->GetTrackID(); G4int S = X ; EvtMap->set(index+DetNbr, S);