<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Greetings,<br>
    <br>
    I have written a script for this. This script is in beta, I will add
    more to it later, but the output is my efficiency correction for
    single photon selection.<br>
    <br>
    Please look at my svn <br>
<a class="moz-txt-link-freetext" href="https://jlabsvn.jlab.org/svnroot/clas/users/mkunkel/clas/g12_corrections/g12_trackEfficiency.hpp">https://jlabsvn.jlab.org/svnroot/clas/users/mkunkel/clas/g12_corrections/g12_trackEfficiency.hpp</a><br>
    <br>
    you will need the histograms located in <br>
<a class="moz-txt-link-freetext" href="https://jlabsvn.jlab.org/svnroot/clas/users/mkunkel/clas/g12_corrections/EFFICIENCY_HISTS/">https://jlabsvn.jlab.org/svnroot/clas/users/mkunkel/clas/g12_corrections/EFFICIENCY_HISTS/</a><br>
    <br>
    To use, <br>
        double <font color="#ff0000">tot_eff</font> =
    clas::g12::g12_trackEfficiency(Vz, P_Ptot_fit, P_Phi_fit,
    P_Theta_fit, Ep_Ptot_fit, Ep_Phi_fit, Ep_Theta_fit, Em_Ptot_fit,
    Em_Phi_fit, Em_Theta_fit, TString DEG_or_RAD ,TString dir);<br>
    <br>
    I have only tested this with lab angles that are in degrees, but
    there is a conversion in the script, not tested though.<br>
    <br>
    I use it as <br>
        Double_t xSection_scale =
    (1.e-30*Flux_norm*density_of_target*dTheta/<font color="#ff0000">tot_eff</font>);
    <br>
    <br>
    Then I weight my event by this number.<br>
    <br>
    <pre class="moz-signature" cols="72">BR
MK
----------------------------------------
Michael C. Kunkel, PhD
Forschungszentrum Jülich
Nuclear Physics Institute and Juelich Center for Hadron Physics
Experimental Hadron Structure (IKP-1)
<a class="moz-txt-link-abbreviated" href="http://www.fz-juelich.de/ikp">www.fz-juelich.de/ikp</a></pre>
    <div class="moz-cite-prefix">On 7/2/15 4:41 PM, Akbar, Zulkaida
      wrote:<br>
    </div>
    <blockquote
cite="mid:DM2PR0501MB13740578BCCA5F1A4C728EC4E3970@DM2PR0501MB1374.namprd05.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
        <p>Sure, big thanks MK. </p>
        <p><br>
        </p>
        <p>Best Regard,</p>
        <p><br>
        </p>
        <p>Zulkaida Akbar</p>
        <br>
        <br>
        <div style="color: rgb(0, 0, 0);">
          <hr tabindex="-1" style="display:inline-block; width:98%">
          <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
              color="#000000" face="Calibri, sans-serif"><b>From:</b>
              Michael C. Kunkel <a class="moz-txt-link-rfc2396E" href="mailto:mkunkel@jlab.org"><mkunkel@jlab.org></a><br>
              <b>Sent:</b> Thursday, July 2, 2015 8:39 PM<br>
              <b>To:</b> Akbar, Zulkaida<br>
              <b>Subject:</b> Re: omega cross sections:</font>
            <div> </div>
          </div>
          <div>I do not have it in script form.<br>
            What I can do is get a package together that you can mimic,
            but you will still have to do some coding on your own.<br>
            <pre class="moz-signature" cols="72">BR
MK
----------------------------------------
Michael C. Kunkel, PhD
Forschungszentrum Jülich
Nuclear Physics Institute and Juelich Center for Hadron Physics
Experimental Hadron Structure (IKP-1)
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.fz-juelich.de/ikp">www.fz-juelich.de/ikp</a></pre>
            <div class="moz-cite-prefix">On 7/2/15 4:37 PM, Akbar,
              Zulkaida wrote:<br>
            </div>
            <blockquote type="cite">
              <div id="divtagdefaultwrapper" style="font-size:12pt;
                color:#000000; background-color:#FFFFFF;
                font-family:Calibri,Arial,Helvetica,sans-serif">
                <p>Hi MK,</p>
                <p><br>
                </p>
                <p>I select single photon for my event.</p>
                <p><br>
                </p>
                <p><br>
                </p>
                <p>Best Regard,</p>
                <p><br>
                </p>
                <p>Zulkaida Akbar</p>
                <br>
                <br>
                <div style="color:rgb(0,0,0)">
                  <hr tabindex="-1" style="display:inline-block;
                    width:98%">
                  <div id="divRplyFwdMsg" dir="ltr"><font
                      style="font-size:11pt" color="#000000"
                      face="Calibri, sans-serif"><b>From:</b> Michael C.
                      Kunkel
                      <a moz-do-not-send="true"
                        class="moz-txt-link-rfc2396E"
                        href="mailto:mkunkel@jlab.org"><mkunkel@jlab.org></a><br>
                      <b>Sent:</b> Thursday, July 2, 2015 8:36 PM<br>
                      <b>To:</b> Akbar, Zulkaida; Lei Guo<br>
                      <b>Cc:</b> Johann Goetz<br>
                      <b>Subject:</b> Re: omega cross sections:</font>
                    <div> </div>
                  </div>
                  <div>This depends, do you use all "in time" photons in
                    the event, or do you select single photons?<br>
                    <pre class="moz-signature" cols="72">BR
MK
----------------------------------------
Michael C. Kunkel, PhD
Forschungszentrum Jülich
Nuclear Physics Institute and Juelich Center for Hadron Physics
Experimental Hadron Structure (IKP-1)
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.fz-juelich.de/ikp">www.fz-juelich.de/ikp</a></pre>
                    <div class="moz-cite-prefix">On 7/2/15 4:33 PM,
                      Akbar, Zulkaida wrote:<br>
                    </div>
                    <blockquote type="cite">
                      <div id="divtagdefaultwrapper"
                        style="font-size:12pt; color:#000000;
                        background-color:#FFFFFF;
                        font-family:Calibri,Arial,Helvetica,sans-serif">
                        <p>Dear Lei and MK,</p>
                        <p><br>
                        </p>
                        <p>I am doing trigger inefficiency studies now,
                          but it is very good idea to use MK
                          inefficiency map.  Where can I get the trigger
                          inefficiency map/Routine? Thanks a Lot.</p>
                        <p><br>
                        </p>
                        <p><br>
                        </p>
                        <p>Best Regard</p>
                        <p><br>
                        </p>
                        <p>Zulkaida Akbar</p>
                        <br>
                        <br>
                        <div style="color:rgb(0,0,0)">
                          <hr tabindex="-1" style="display:inline-block;
                            width:98%">
                          <div id="divRplyFwdMsg" dir="ltr"><font
                              style="font-size:11pt" color="#000000"
                              face="Calibri, sans-serif"><b>From:</b>
                              Lei Guo
                              <a moz-do-not-send="true"
                                class="moz-txt-link-rfc2396E"
                                href="mailto:lguo@jlab.org"><lguo@jlab.org></a><br>
                              <b>Sent:</b> Thursday, July 2, 2015 8:00
                              PM<br>
                              <b>To:</b> Akbar, Zulkaida<br>
                              <b>Cc:</b> Michael C. Kunkel; Johann Goetz<br>
                              <b>Subject:</b> omega cross sections:</font>
                            <div> </div>
                          </div>
                          <div>HI, Zulkaida,
                            <div class=""><br class="">
                            </div>
                            <div class="">MK, Johann and I had a meeting
                              today going over the g12 review comments,
                              specifically related to this comments:</div>
                            <div class=""><br class="">
                            </div>
                            <div class="">"When you compare cross
                              sections to previous measurements please </div>
                            compare in the same kinematical bins. A
                            strong forward peak pushes other <br
                              class="">
                            point to the axis and it is not possible to
                            judge if they agree or not. In addition
                            <br class="">
                            to overlaying two data sets, show their
                            ratio. Even without it we see that in <br
                              class="">
                            some bins the agreement is not very good.
                            Make something similar to pull <br class="">
                            distributions as well, to see if there is a
                            bias."
                            <div class=""><br class="">
                            </div>
                            <div class="">Could you do the following
                              two </div>
                            <div class="">1. Apply MK’s track-dependent
                              correction for the normalization. It
                              should be similar to your overall 15% (or
                              is it 18% correction). MK has some routine
                              you can just call. If you want to do it
                              quickly, at least your should apply
                              separate corrections (globally) for p pi+
                              pi-</div>
                            <div class="">2. Plot the ratio of your
                              xsections over g11 and/or pull
                              distributions. If you have questions about
                              details, please contact MK/JOhann. We are
                              looking to submit the response next week,
                              so hopefully we are not ruining your long
                              weekend.</div>
                            <div class=""><br class="">
                            </div>
                            <div class="">Lei<br class="">
                              <div class=""><br
                                  class="webkit-block-placeholder">
                              </div>
                              <div class=""><br
                                  class="webkit-block-placeholder">
                              </div>
                              <div class=""><br
                                  class="webkit-block-placeholder">
                              </div>
                              <div class="">
                                <div class="">
                                  <div class="">
                                    <div class="">Lei Guo</div>
                                    <div class="">Assistant Professor</div>
                                    <div class="">Physics Department</div>
                                    <div class="">Florida International
                                      University</div>
                                    <div class="">Miami, FL</div>
                                  </div>
                                  <div class=""><br class="">
                                  </div>
                                  <div class="">email: <a
                                      moz-do-not-send="true"
                                      href="mailto:leguo@fiu.edu"
                                      class="">leguo@fiu.edu</a> or
                                    <a moz-do-not-send="true"
                                      href="mailto:lguo@jlab.org"
                                      class="">lguo@jlab.org</a></div>
                                  <div class="">Office:305-348-0234</div>
                                </div>
                              </div>
                              <br class="">
                            </div>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                    <br>
                  </div>
                </div>
              </div>
            </blockquote>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>