Skip to content

Commit

Permalink
fix to constants in FTCal theta correction
Browse files Browse the repository at this point in the history
  • Loading branch information
raffaelladevita committed Nov 27, 2019
1 parent 9a3eb82 commit 36a0962
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void setDirection(IndexedTable thetaTable, IndexedTable phiTable) {
if(this._Charge==-1) {
double energy = this._Energy;
double thetaCorr = Math.exp(thetaTable.getDoubleValue("thetacorr0", 1,1,0)+thetaTable.getDoubleValue("thetacorr1", 1,1,0)*energy)+
Math.exp(thetaTable.getDoubleValue("thetacorr1", 1,1,0)+thetaTable.getDoubleValue("thetacorr3", 1,1,0)*energy);
Math.exp(thetaTable.getDoubleValue("thetacorr2", 1,1,0)+thetaTable.getDoubleValue("thetacorr3", 1,1,0)*energy);
thetaCorr = Math.toRadians(thetaCorr * Math.abs(this._field));
double phiCorr = Math.exp(phiTable.getDoubleValue("phicorr0", 1,1,0)+phiTable.getDoubleValue("phicorr1", 1,1,0)*energy)+
Math.exp(phiTable.getDoubleValue("phicorr2", 1,1,0)+phiTable.getDoubleValue("phicorr3", 1,1,0)*energy)+
Expand Down

0 comments on commit 36a0962

Please sign in to comment.