Skip to content

Commit

Permalink
Merge pull request #27 from JeffersonLab/iss26
Browse files Browse the repository at this point in the history
implemented timing correction again due to svn not transferring over …
  • Loading branch information
hszumila committed Feb 17, 2017
2 parents 5621ca4 + 9c43092 commit d5e6468
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d5e6468

Please sign in to comment.