From 9c43092fdb75be1aa1b06a20c56476172770c2ab Mon Sep 17 00:00:00 2001 From: Holly Szumila Date: Fri, 17 Feb 2017 12:08:02 -0500 Subject: [PATCH] implemented timing correction again due to svn not transferring over to git --- .../java/org/hps/recon/ecal/cluster/HitTMCSmearDriver.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/HitTMCSmearDriver.java b/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/HitTMCSmearDriver.java index 8aabe6aaa1..73002fa184 100644 --- a/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/HitTMCSmearDriver.java +++ b/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/HitTMCSmearDriver.java @@ -30,9 +30,11 @@ public void setInputHitCollection(String inputHitCollection) { // Time resolution as derived for 2016 data + //Factor 1.98 derived after running over MC. Probably due to + //lack of trigger jitter in simulation. private static double calcSmear(double energy, double time){ Random r = new Random(); - double sigT = r.nextGaussian()*Math.sqrt(Math.pow(0.188/energy, 2) + Math.pow(0.152, 2)); + double sigT = r.nextGaussian()*Math.sqrt(Math.pow(0.188/energy, 2) + Math.pow(0.152, 2))/1.98; return time + sigT; }