Commit in hps-java/src/main/java/org/lcsim/hps/recon/tracking on MAIN | |||
HPSHelicalTrackHitDriver.java | +10 | -8 | 1.11 -> 1.12 |
another tweak to HelicalTrackHitDriver
diff -u -r1.11 -r1.12 --- HPSHelicalTrackHitDriver.java 6 Aug 2012 21:15:21 -0000 1.11 +++ HPSHelicalTrackHitDriver.java 6 Aug 2012 21:43:05 -0000 1.12 @@ -12,6 +12,7 @@
import hep.physics.vec.VecOp; import java.util.ArrayList;
+import java.util.Arrays;
import java.util.HashMap; import java.util.List; import java.util.Map;
@@ -127,6 +128,8 @@
// Create a List of LCRelations to relate HelicalTrackHits to the original hits List<LCRelation> hitrelations = new ArrayList<LCRelation>();
+ List<HelicalTrackCross> stereoCrosses = new ArrayList<HelicalTrackCross>(); +
for (String _colname : _colnames) { if (!event.hasCollection(SiTrackerHit.class, _colname)) {
@@ -221,10 +224,7 @@
// Add the stereo hits to our list of HelicalTrackHits helhits.addAll(stereohits);
- //mg...6/24/11 add new set of helical track hits that are rotated to from jlab to tracking frame - if (_doTranformToTracking) { - addRotatedHitsToEvent(event, stereohits); - }
+ stereoCrosses.addAll(stereohits);
//add LCRelation for strip hits for (HelicalTrackCross cross : stereohits) { for (HelicalTrackStrip strip : cross.getStrips()) {
@@ -233,6 +233,11 @@
} }
+ //mg...6/24/11 add new set of helical track hits that are rotated to from jlab to tracking frame + if (_doTranformToTracking) { + addRotatedHitsToEvent(event, stereoCrosses); + } +
// Create the LCRelations between HelicalTrackHits and MC particles List<LCRelation> mcrelations = new ArrayList<LCRelation>(); for (HelicalTrackHit hit : helhits) {
@@ -260,10 +265,7 @@
} public void setCollectionNames(String[] collectionNames) {
- _colnames.clear(); - for (String colname : collectionNames) { - _colnames.add(colname); - }
+ _colnames = Arrays.asList(collectionNames);
} /**
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