Hello Kyle,
Which version of the reconstruction are you analyzing?
Norman
List<Track> tracks = null;
if(event.hasCollection(Track.class, "GBLTracks")) {
tracks = event.get(Track.class, "GBLTracks");
} else {
tracks = new ArrayList<Track>(0);
}
for(Track track : tracks) {
double[] p = track.getTrackStates().get(TrackState.AtCalorimeter).getMomentum();
System.out.printf("p = <%5.3f, %5.3f, %5.3f%n", p[0], p[1], p[2]);
}
java.lang.IndexOutOfBoundsException: Index 4 out-of-bounds for length 3
Use REPLY-ALL to reply to list
To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1