From ee4fff5e002fce4119c8cc64671676a87e338c63 Mon Sep 17 00:00:00 2001
From: matta <matta@npt>
Date: Thu, 17 Feb 2011 21:29:36 +0000
Subject: [PATCH] * Change for Trigger threshold in ThinSi

---
 NPSimulation/include/ThinSiScorers.hh | 3 +++
 NPSimulation/src/ThinSiScorers.cc     | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/NPSimulation/include/ThinSiScorers.hh b/NPSimulation/include/ThinSiScorers.hh
index fb2b72c5d..33563f202 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 ec0371438..eef8dfd3b 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);
-- 
GitLab