Take a look at the method sensorContainsTrack within the class org.lcsim.hps.users.omoreno.SvtHitEfficiency.java. If you give it the Track and the SiSensor of interest if will check if the track lies within the sensor volume. --Omar Moreno On Wed, Oct 3, 2012 at 9:47 AM, Per Ola Hansson Adrian < [log in to unmask]> wrote: > Hi, > > do we have an example of how to check if a particular track passes through > a given sensor. > > More specifically, I have a track and I have the SiSensor object, do we > have a working function that can tell me if my track went through this > volume? > > /Pelle > ######################################################################## > 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