Commit in lcsim/src/org/lcsim/recon/tracking/seedtracker on MAIN | |||
SeedCandidate.java | +21 | -1 | 1.12 -> 1.13 |
Added print string for this class.
diff -u -r1.12 -r1.13 --- SeedCandidate.java 1 Feb 2011 22:38:59 -0000 1.12 +++ SeedCandidate.java 21 Apr 2013 23:34:44 -0000 1.13 @@ -41,6 +41,7 @@
private LinkedList<SeedLayer> _unchecked; private Set<MCParticle> _mcpset; private Set<Integer> _pdgset;
+ private boolean _debug = false;
/** * Create an empty SeedCandidate.
@@ -237,7 +238,26 @@
public double getBField() { return _bfield; }
-
+ + /* + * Print information about this SeedCandidate + */ + @Override + public String toString() { + String str = "SeedCandidate:\n"; + str += String.format("%s",this.getHelix().toString()); + List<HelicalTrackHit> hits = this.getHits(); + str += String.format("chi2=%f, strategy=%s and %d hits:\n",this.getHelix().chisqtot(),this.getSeedStrategy().getName(),hits.size()); + for (HelicalTrackHit hit : hits) { + double drphi_ms = this.getMSMap().get(hit).drphi(); + double dz_ms = this.getMSMap().get(hit).dz(); + double dz = Math.sqrt(hit.getCorrectedCovMatrix().diagonal(2)); + str += String.format("Layer=%d c_pos=%s drphi=%f drphi_ms=%f dz=%f dz_ms=%f\n",hit.Layer(),hit.getCorrectedPosition().toString() + ,hit.drphi(),drphi_ms,dz,dz_ms); + } + return str; + } +
private void UpdateMSMap(HelicalTrackHit hit) { if (_helix == null) return; if (_scatters == null) return;
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