Commit in hps-java/src/main/java/org/lcsim/hps/recon/tracking on MAIN | |||
HpsHelicalTrackFit.java | +57 | added 1.1 |
HelicalTrackFit subclass which allows a user to set an MC particle associated with the HelicalTrackFit
diff -N HpsHelicalTrackFit.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ HpsHelicalTrackFit.java 20 Oct 2012 06:13:39 -0000 1.1 @@ -0,0 +1,57 @@
+package org.lcsim.hps.recon.tracking; + +//--- java ---// +import java.util.Map; + +//--- hep ---// +import hep.physics.matrix.SymmetricMatrix; + +import org.lcsim.event.MCParticle; +//--- lcsim ---// +import org.lcsim.fit.helicaltrack.HelicalTrackFit; +import org.lcsim.fit.helicaltrack.HelicalTrackHit; +import org.lcsim.fit.helicaltrack.MultipleScatter; + +/** + * + * @author Omar Moreno + * @version $Id: HpsHelicalTrackFit.java,v 1.1 2012/10/20 06:13:39 omoreno Exp $ + */ +public class HpsHelicalTrackFit extends HelicalTrackFit { + + MCParticle mcParticle; + + /** + * Constructor + * @param parameters : an array of helix parameters + * @param covariance : covariance matrix of the helix fit + * @param chiSquared : chi squared of the circle fit + * @param ndf : number of degrees of freedom for the circle fit + * @param sMap : a map containing the x-y path lengths + * @param msMap : a map containing the multiple scattering uncertainties + * @param mcParticle : the MC particle associated with the fit + */ + public HpsHelicalTrackFit(double[] parameters, SymmetricMatrix covariance, double[] chiSquared, int[] ndf, + Map<HelicalTrackHit, Double> sMap, Map<HelicalTrackHit, MultipleScatter> msMap, MCParticle mcParticle){ + super(parameters, covariance, chiSquared, ndf, sMap, msMap); + + // Set the MC particle associated with this fit + this.setMCParticle(mcParticle); + } + + /** + * Get the MC Particle associated with the HelicalTrackFit + * @return mcParticle : + */ + public MCParticle getMCParticle(){ + return this.mcParticle; + } + + /** + * Set the MC Particle associated with the HelicalTrackFit + * @param mcParticle : + */ + public void setMCParticle(MCParticle mcParticle){ + this.mcParticle = mcParticle; + } +}
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