From 619994730789b54aa138d97468bc550c5a502b59 Mon Sep 17 00:00:00 2001 From: EBerzin <66688168+EBerzin@users.noreply.github.com> Date: Fri, 27 Sep 2024 11:57:01 -0700 Subject: [PATCH] Change default trigger thresholds (#1469) * added optimized 8 GeV trigger thresholds * Directly write 4 GeV thresholds Co-authored-by: Tamas Vami * Make thresholds floats in simpleTrigger * Use the correct numbers for 4 GeV case * added Megan's 4GeV thresholds --------- Co-authored-by: Tamas Vami --- Recon/python/simpleTrigger.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Recon/python/simpleTrigger.py b/Recon/python/simpleTrigger.py index 57fdff5be..d0f70644f 100644 --- a/Recon/python/simpleTrigger.py +++ b/Recon/python/simpleTrigger.py @@ -40,7 +40,10 @@ def __init__(self, name, beamEnergy) : super().__init__(name,'recon::TriggerProcessor','Recon') self.beamEnergy = beamEnergy - self.thresholds = [ self.beamEnergy/4000.*1500.0, self.beamEnergy/4000.*1000. + self.beamEnergy, self.beamEnergy/4000.*500. + 2*self.beamEnergy, self.beamEnergy/4000.*100. + 3*self.beamEnergy ] + if (self.beamEnergy == 4000.): + self.thresholds = [ 1500., 5000., 8200., 11800. ] + else: + self.thresholds = [ 3000., 10790., 18540., 26250. ] self.mode = 0 self.start_layer = 0 self.end_layer = 20