Skip to content
Snippets Groups Projects
Commit ee4fff5e authored by matta's avatar matta
Browse files

* Change for Trigger threshold in ThinSi

parent 06fc5e14
No related branches found
No related tags found
No related merge requests found
......@@ -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
{
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment