Print

Print


Hello Norman,

I uploaded some files to the JLab servers. You can find a hodoscope readout
file at:

/work/hallb/hps/mccaky/hodoscope_2pt3_466-readout.slcio

and a recon file at:

/work/hallb/hps/mccaky/hodoscope_2pt3_466-recon.slcio

The recon file should be reproducible by using the standard Monte Carlo
reconstruction file, and produces the error I mentioned when trying to
access the calorimeter track state. You need to use iss166 to access these
files, though, since they use a detector geometry that is not presently in
the trunk.

Thanks,

Kyle

On Wed, May 16, 2018 at 1:25 AM, Kyle McCarty <[log in to unmask]> wrote:

> Hello Norman,
>
> I am analyzing hodoscope Monte Carlo - the recon was created using an
> unmodified version of the "PhysicsRun2016FullReconMC.lcsim" steering
> file, though.
>
> Thanks,
>
> Kyle
>
> On Wed, May 16, 2018 at 1:01 AM, Graf, Norman A. <[log in to unmask]>
> wrote:
>
>> Hello Kyle,
>>
>>
>> Which version of the reconstruction are you analyzing?
>>
>>
>> Norman
>>
>>
>> ------------------------------
>> *From:* [log in to unmask] <[log in to unmask]>
>> on behalf of Kyle McCarty <[log in to unmask]>
>> *Sent:* Tuesday, May 15, 2018 9:22 PM
>> *To:* hps-software
>> *Subject:* Track State at the Calorimeter
>>
>> Hello hps-java,
>>
>> I am trying to get the track state for a GBL track at the calorimeter
>> face. I get the GBL tracks as normal:
>>
>> List<Track> tracks = null;
>> if(event.hasCollection(Track.class, "GBLTracks")) {
>> tracks = event.get(Track.class, "GBLTracks");
>> } else {
>> tracks = new ArrayList<Track>(0);
>> }
>>
>>
>> I then attempt to get a track state:
>>
>> for(Track track : tracks) {
>> double[] p = track.getTrackStates().get(TrackState.AtCalorimeter).getMome
>> ntum();
>> System.out.printf("p = <%5.3f, %5.3f, %5.3f%n", p[0], p[1], p[2]);
>> }
>>
>>
>> However, I get this error:
>>
>> java.lang.IndexOutOfBoundsException: Index 4 out-of-bounds for length 3
>>
>>
>> It seems that the track does not have the track state for the calorimeter
>> stored. Am I doing something wrong?
>>
>> Thanks,
>>
>> Kyle
>>
>>
>> ------------------------------
>>
>> 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
>>
>
>

########################################################################
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