<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear all,<div class="">the definition of the “Y” coordinate I am using in the WAB analysis can be obtained from the following code, see also <span style="font-family: Menlo; font-size: 10px;" class="">org.hps.recon.ecal.cluster.ClusterCorrectionUtilities</span></div><div class=""><span style="font-family: Menlo; font-size: 10px;" class=""><br class=""></span></div><div class=""><span style="font-family: Menlo; font-size: 10px;" class="">Bests,</span></div><div class=""><span style="font-family: Menlo; font-size: 10px;" class="">Andrea</span></div><div class=""><span style="font-family: Menlo; font-size: 10px;" class=""><br class=""></span></div><div class=""><span style="font-family: Menlo; font-size: 10px;" class=""><br class=""></span></div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">     <span style="color: rgb(127, 0, 85);" class=""><b class="">public</b></span> <span style="color: rgb(127, 0, 85);" class=""><b class="">static</b></span> <span style="color: rgb(127, 0, 85);" class=""><b class="">final</b></span> <span style="color: rgb(127, 0, 85);" class=""><b class="">double</b></span> computeYDistanceFromEdge(HPSEcal3 <span style="color: rgb(106, 62, 62);" class="">ecal</span>, <span style="color: rgb(127, 0, 85);" class=""><b class="">double</b></span> <span style="color: rgb(106, 62, 62);" class="">xpos</span>, <span style="color: rgb(127, 0, 85);" class=""><b class="">double</b></span> <span style="color: rgb(106, 62, 62);" class="">ypos</span>) {</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo; color: rgb(63, 127, 95);" class=""><span style="color: #000000" class="">        </span>// distance to beam gap edge</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">        <span style="color: #7f0055" class=""><b class="">double</b></span> <span style="color: #6a3e3e" class="">ydist</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo; color: rgb(63, 127, 95);" class=""><span style="color: #000000" class="">        </span>// Get these values from the <span style="text-decoration: underline" class="">Ecal</span> geometry:</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">        HPSEcalDetectorElement <span style="color: #6a3e3e" class="">detElement</span> = (HPSEcalDetectorElement) <span style="color: #6a3e3e" class="">ecal</span>.getDetectorElement();</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">        <span style="color: #7f0055" class=""><b class="">double</b></span> <span style="color: #6a3e3e" class="">BEAMGAPTOP</span> = 20.0;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">        <span style="color: #7f0055" class=""><b class="">try</b></span> {</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">            <span style="color: #6a3e3e" class="">BEAMGAPTOP</span> = <span style="color: #6a3e3e" class="">ecal</span>.getNode().getChild(<span style="color: #2a00ff" class="">"layout"</span>).getAttribute(<span style="color: #2a00ff" class="">"beamgapTop"</span>).getDoubleValue();</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">        } <span style="color: #7f0055" class=""><b class="">catch</b></span> (DataConversionException <span style="color: #6a3e3e" class="">e</span>) {</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">            <span style="color: #7f0055" class=""><b class="">try</b></span> {</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">                <span style="color: #6a3e3e" class="">BEAMGAPTOP</span> = <span style="color: #6a3e3e" class="">ecal</span>.getNode().getChild(<span style="color: #2a00ff" class="">"layout"</span>).getAttribute(<span style="color: #2a00ff" class="">"beamgap"</span>).getDoubleValue();</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">            } <span style="color: #7f0055" class=""><b class="">catch</b></span> (DataConversionException <span style="color: #6a3e3e" class="">ee</span>) {</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">                <span style="color: #6a3e3e" class="">ee</span>.printStackTrace();</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">            }</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">        }</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">        <span style="color: #7f0055" class=""><b class="">double</b></span> <span style="color: #6a3e3e" class="">BEAMGAPBOT</span> = -20.0;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">        <span style="color: #7f0055" class=""><b class="">try</b></span> {</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">            <span style="color: #6a3e3e" class="">BEAMGAPBOT</span> = -<span style="color: #6a3e3e" class="">ecal</span>.getNode().getChild(<span style="color: #2a00ff" class="">"layout"</span>).getAttribute(<span style="color: #2a00ff" class="">"beamgapBottom"</span>).getDoubleValue();</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">        } <span style="color: #7f0055" class=""><b class="">catch</b></span> (DataConversionException <span style="color: #6a3e3e" class="">e</span>) {</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">            <span style="color: #7f0055" class=""><b class="">try</b></span> {</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">                <span style="color: #6a3e3e" class="">BEAMGAPBOT</span> = -<span style="color: #6a3e3e" class="">ecal</span>.getNode().getChild(<span style="color: #2a00ff" class="">"layout"</span>).getAttribute(<span style="color: #2a00ff" class="">"beamgap"</span>).getDoubleValue();</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">            } <span style="color: #7f0055" class=""><b class="">catch</b></span> (DataConversionException <span style="color: #6a3e3e" class="">ee</span>) {</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">                <span style="color: #6a3e3e" class="">ee</span>.printStackTrace();</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">            }</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">        }</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">        <span style="color: #7f0055" class=""><b class="">double</b></span> <span style="color: #6a3e3e" class="">BEAMGAPTOPC</span> = <span style="color: #6a3e3e" class="">BEAMGAPTOP</span> + 13.0; <span style="color: #3f7f5f" class="">// </span><span style="text-decoration: underline ; color: #3f7f5f" class="">mm</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">        <span style="color: #7f0055" class=""><b class="">double</b></span> <span style="color: #6a3e3e" class="">BEAMGAPBOTC</span> = <span style="color: #6a3e3e" class="">BEAMGAPBOT</span> - 13.0; <span style="color: #3f7f5f" class="">// </span><span style="text-decoration: underline ; color: #3f7f5f" class="">mm</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo; color: rgb(63, 127, 95);" class=""><span style="color: #000000" class="">        </span>// x-coordinates of crystals on either side of row 1 cut out</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">        EcalCrystal <span style="color: #6a3e3e" class="">crystalM</span> = <span style="color: #6a3e3e" class="">detElement</span>.getCrystal(-11, 1);</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">        Hep3Vector <span style="color: #6a3e3e" class="">posM</span> = <span style="color: #6a3e3e" class="">crystalM</span>.getPositionFront();</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">        EcalCrystal <span style="color: #6a3e3e" class="">crystalP</span> = <span style="color: #6a3e3e" class="">detElement</span>.getCrystal(-1, 1);</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">        Hep3Vector <span style="color: #6a3e3e" class="">posP</span> = <span style="color: #6a3e3e" class="">crystalP</span>.getPositionFront();</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">        <span style="color: #7f0055" class=""><b class="">if</b></span> ((<span style="color: #6a3e3e" class="">xpos</span> < <span style="color: #6a3e3e" class="">posM</span>.x()) || (<span style="color: #6a3e3e" class="">xpos</span> > <span style="color: #6a3e3e" class="">posP</span>.x())) {</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">            <span style="color: #7f0055" class=""><b class="">if</b></span> (<span style="color: #6a3e3e" class="">ypos</span> > 0) {</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">                <span style="color: #6a3e3e" class="">ydist</span> = Math.<i class="">abs</i>(<span style="color: #6a3e3e" class="">ypos</span> - <span style="color: #6a3e3e" class="">BEAMGAPTOP</span>);</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">            } <span style="color: #7f0055" class=""><b class="">else</b></span> {</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">                <span style="color: #6a3e3e" class="">ydist</span> = Math.<i class="">abs</i>(<span style="color: #6a3e3e" class="">ypos</span> - <span style="color: #6a3e3e" class="">BEAMGAPBOT</span>);</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">            }</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">        } <span style="color: #7f0055" class=""><b class="">else</b></span> {</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">            <span style="color: #7f0055" class=""><b class="">if</b></span> (<span style="color: #6a3e3e" class="">ypos</span> > 0) {</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">                <span style="color: #7f0055" class=""><b class="">if</b></span> (<span style="color: #6a3e3e" class="">ypos</span> > (<span style="color: #0000c0" class=""><b class=""><i class="">CUTOFF_OFFSET</i></b></span> + <span style="color: #6a3e3e" class="">BEAMGAPTOP</span>)) {</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">                    <span style="color: #6a3e3e" class="">ydist</span> = Math.<i class="">abs</i>(<span style="color: #6a3e3e" class="">ypos</span> - <span style="color: #6a3e3e" class="">BEAMGAPTOP</span>);</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">                } <span style="color: #7f0055" class=""><b class="">else</b></span> {</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">                    <span style="color: #6a3e3e" class="">ydist</span> = Math.<i class="">abs</i>(<span style="color: #6a3e3e" class="">ypos</span> - <span style="color: #6a3e3e" class="">BEAMGAPTOPC</span>);</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">                }</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">            } <span style="color: #7f0055" class=""><b class="">else</b></span> {</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">                <span style="color: #7f0055" class=""><b class="">if</b></span> (<span style="color: #6a3e3e" class="">ypos</span> > (-<span style="color: #0000c0" class=""><b class=""><i class="">CUTOFF_OFFSET</i></b></span> + <span style="color: #6a3e3e" class="">BEAMGAPBOT</span>)) {</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">                    <span style="color: #6a3e3e" class="">ydist</span> = Math.<i class="">abs</i>(<span style="color: #6a3e3e" class="">ypos</span> - <span style="color: #6a3e3e" class="">BEAMGAPBOTC</span>);</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">                } <span style="color: #7f0055" class=""><b class="">else</b></span> {</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">                    <span style="color: #6a3e3e" class="">ydist</span> = Math.<i class="">abs</i>(<span style="color: #6a3e3e" class="">ypos</span> - <span style="color: #6a3e3e" class="">BEAMGAPBOT</span>);</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">                }</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">            }</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">        }</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">        <span style="color: #7f0055" class=""><b class="">return</b></span> <span style="color: #6a3e3e" class="">ydist</span>;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class="">    }</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On May 2, 2022, at 04:39, Graham, Mathew Thomas <<a href="mailto:mgraham@slac.stanford.edu" class="">mgraham@slac.stanford.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">

<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class=""><br class="">
</div>
<div class="">Hi All, </div>
<div class=""><br class="">
</div>
<div class="">Tomorrow morning is the first day of the recon/analysis workshop.  We’ll start at 8am pacific/11 am eastern and to until ~noon pacific both Monday and Tuesday. The agenda is here:</div>
<div class=""><br class="">
</div>
<div class=""><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__indico.slac.stanford.edu_event_7201_&d=DwMGaQ&c=CJqEzB1piLOyyvZjb8YUQw&r=ErLkbYGWd8oSAZ70ywHxhA&m=b64PmvdlNK3IeNQB0tzGzAKFF3pvWWLVRwe1iWhJpTAyLJRJxafLbGZx-ZNVb41I&s=O-8KkBfmx60eh4xTWxd-W4omsCu4rmHAzUaKLL6cpg0&e=" class="">https://indico.slac.stanford.edu/event/7201/</a></div>
<div class=""><br class="">
</div>
<div class="">There is a confluence page where information will go: </div>
<div class=""><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__confluence.slac.stanford.edu_pages_viewpage.action-3FpageId-3D343712287&d=DwMGaQ&c=CJqEzB1piLOyyvZjb8YUQw&r=ErLkbYGWd8oSAZ70ywHxhA&m=b64PmvdlNK3IeNQB0tzGzAKFF3pvWWLVRwe1iWhJpTAyLJRJxafLbGZx-ZNVb41I&s=g10b2rALemqxqz_MaJvHMSohbtPfcdMvjsi7MKeq7Ww&e=" class="">https://confluence.slac.stanford.edu/pages/viewpage.action?pageId=343712287</a></div>
<div class=""><br class="">
</div>
<div class="">Here is the zoom info (also on the indico page):  </div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">Topic: HPS Recon/Analysis Workshop</div>
<div class="">Time: May 2, 2022 09:00 AM Mountain Time (US and Canada)</div>
<div class=""><br class="">
</div>
<div class="">Join from PC, Mac, Linux, iOS or Android: <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__stanford.zoom.us_j_4503457308-3Fpwd-3DVFdFZGpsUHFuSDdYa0JVOWI3cENFUT09&d=DwMGaQ&c=CJqEzB1piLOyyvZjb8YUQw&r=ErLkbYGWd8oSAZ70ywHxhA&m=b64PmvdlNK3IeNQB0tzGzAKFF3pvWWLVRwe1iWhJpTAyLJRJxafLbGZx-ZNVb41I&s=sLpJW3lO5haU6QYFsjnx3RBS7yayJ82fB7rxTvBFzGs&e=" class="">
https://stanford.zoom.us/j/4503457308?pwd=VFdFZGpsUHFuSDdYa0JVOWI3cENFUT09</a></div>
<div class="">    Password: 123456</div>
<div class=""><br class="">
</div>
<div class="">Or iPhone one-tap (US Toll): +18333021536,,4503457308# or +16507249799,,4503457308#</div>
<div class=""><br class="">
</div>
<div class="">Or Telephone:</div>
<div class="">    Dial: +1 650 724 9799 (US, Canada, Caribbean Toll) or +1 833 302 1536 (US, Canada, Caribbean Toll Free)</div>
<div class="">          </div>
<div class="">    Meeting ID: 450 345 7308</div>
<div class="">    Password: 123456</div>
<div class="">    International numbers available: <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__stanford.zoom.us_u_aofI4cJNl&d=DwMGaQ&c=CJqEzB1piLOyyvZjb8YUQw&r=ErLkbYGWd8oSAZ70ywHxhA&m=b64PmvdlNK3IeNQB0tzGzAKFF3pvWWLVRwe1iWhJpTAyLJRJxafLbGZx-ZNVb41I&s=UDSIpMkjANGTvy8IynUJR9V_lNP5QLbJ8E9KNFnA0NY&e=" class="">
https://stanford.zoom.us/u/aofI4cJNl</a></div>
<div class=""><br class="">
</div>
<div class="">    Meeting ID: 450 345 7308</div>
<div class="">    Password: 123456</div>
<div class="">    SIP: <a href="mailto:4503457308@zoomcrc.com" class="">4503457308@zoomcrc.com</a></div>
<div class="">    Password: 123456</div>
<div class=""><br class="">
</div>
</div>
</div>

_______________________________________________<br class="">Hps mailing list<br class=""><a href="mailto:Hps@jlab.org" class="">Hps@jlab.org</a><br class="">https://mailman.jlab.org/mailman/listinfo/hps<br class=""></div></blockquote></div><br class=""></div></body></html>