Commit in hps-java/src/main/java/org/lcsim/hps/recon/tracking on MAIN | |||
TrackUtils.java | +7 | -7 | 1.1 -> 1.2 |
Fixed bugs!
diff -u -r1.1 -r1.2 --- TrackUtils.java 12 May 2012 22:20:44 -0000 1.1 +++ TrackUtils.java 29 May 2012 17:37:27 -0000 1.2 @@ -10,7 +10,7 @@
/** * * @author Omar Moreno <[log in to unmask]>
- * @version $Id: TrackUtils.java,v 1.1 2012/05/12 22:20:44 omoreno Exp $
+ * @version $Id: TrackUtils.java,v 1.2 2012/05/29 17:37:27 omoreno Exp $
*/ public class TrackUtils {
@@ -116,10 +116,10 @@
// Check if a track has been set if(track == null) throw new RuntimeException("Track has not been set!");
- - return this.getYC() - + Math.signum(this.getR())*Math.sqrt(this.getR()*this.getR() - Math.pow(x-this.getXC(), 2)); -
+ + // Find the y position + return this.getYC() + + Math.signum(this.getR())*Math.sqrt(this.getR()*this.getR() - Math.pow(x-this.getXC(), 2));
} /**
@@ -167,8 +167,8 @@
trackParameters[4] = this.getDoca()*Math.cos(this.getPhi0()); // y0 trackParameters[5] = track.getTrackParameter(3); // z0 trackParameters[6] = track.getTrackParameter(4); // tan(Lambda)
- trackParameters[7] = (this.getR() - this.getPhi0())*Math.sin(this.getPhi0()); // xc - trackParameters[8] = -(this.getR() - this.getPhi0())*Math.cos(this.getPhi0()); // yc
+ trackParameters[7] = (this.getR() - this.getDoca())*Math.sin(this.getPhi0()); // xc + trackParameters[8] = -(this.getR() - this.getDoca())*Math.cos(this.getPhi0()); // yc
} /**
Use REPLY-ALL to reply to list
To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1