<div dir="ltr">I have not gotten any replies on this, are there currently no good way of measuring the track length through a volume?<div><br></div><div>Best Regards</div><div>Andreas Samnøy</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 2, 2019 at 12:19 PM Andreas Tefre Samnøy <<a href="mailto:andreas.samnoy@gmail.com">andreas.samnoy@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Everyone<div><br></div><div>I was wondering if it is possible to use the TrackLengthActor to find the track length inside a specific volume, and not the track length in the entire simulation. I tried to attach the actor to the volume I want to measure the track length within (pixel), and then I add a particle filter for protons since I only want to know the track length of protons within the pixel volume. The script I have used below does not seem to give me the track length of protons inside the pixel volume, it seems to give the entire track lengths of protons in the simulation. Is it possible to do what I want?</div><div><br></div><div>/gate/actor/addActor  TrackLengthActor                                           protonTrackActor<br>/gate/actor/protonTrackActor/attachTo                                         pixel<br>/gate/actor/protonTrackActor/addFilter                         particleFilter<br>/gate/actor/protonTrackActor/particleFilter/addParticle        proton<br><br>/gate/actor/protonTrackActor/save                            protonTrack_{absorberThickness}.root<br>/gate/actor/protonTrackActor/setLmin                              0 mm<br>/gate/actor/protonTrackActor/setLmax                              1 mm<br>/gate/actor/protonTrackActor/setNumberOfBins                  100<br></div><div><br></div><div><br></div><div>Best Regards </div><div>Andreas</div></div>
</blockquote></div>