#!/usr/bin/perl

$IMG_URL="http://particle.phys.uvic.ca/~web-atlas/atlas/feedthroughs/status/image/BrushedMetal.gif";
$BAS_URL="http://particle.phys.uvic.ca/~web-atlas/atlas/feedthroughs/status";

$PAGE='<html>
<body style="background-image: url(' . $IMG_URL . ')">
  <font face="Zurich BT" font size=+1 color=darkblue>

    <br> <center> <a href="' . $BAS_URL . '/status.html"> 
      Return to EndCap Signal FeedThrough Production Status </a> </center> <br>

    <br> The cross talk is measured for the three closest neighbors to the
    pulsed channel on the vacuum cable stripline, ie, for pulsed channel n, the cross 
    talk is measured for the adjacent channels n-2 and n+2, as well as for the opposite
    channel n+1 (n odd) or n-1 (n even).  The cross talk data presented in the summary 
    tables are calculated as 100 times the peak-to-peak amplitude of the cross talk 
    signal divided by the peak-to-peak amplitude of the driving signal. (i.e., the 
    percent cross talk).  The format of the cross talk data is one line for each 
    pincarrier slot: <br> <br>

    <center>
    <table border=0 cellspacing=0 cellpadding=0 cols=5 align=left width=700
      style="background-image: url(BrushedMetal.gif)">
      <tr align=center>
        <th> serial number ,  </th>
        <th> slot number ,    </th>
        <th> data directory , </th>
        <th> min cross talk , </th>
        <th> max cross talk   </th>
      </tr>
    </table>
    </center>

    <br><br> The various entries are defined as follows: <br> <br>

    <center>
    <table border=1 cellspacing=0 cellpadding=3 cols=2
      style="background-image: url(BrushedMetal.gif)">
      <tr align=left>
        <th width=100> serial number </th> 
        <td> the serial number of the feedthrough </td>
      </tr>
      <tr align=left>
        <th width=100> slot number </th> 
        <td> the pincarrier slot number 1 - 15 a/b (each of the 30 slots has 64 channels) </td>
      </tr>
      <tr align=left>
        <th width=100> data directory </th> 
        <td> the basename of the directory where the data is stored on computer disk </td>
      </tr>
      <tr align=left>
        <th width=100> min cross talk </th> 
        <td> the minimum percent cross talk measured for the 64 channels of the slot </td>
      </tr>
      <tr align=left>
        <th width=100> max cross talk </th> 
        <td> the maximum percent cross talk measured for the 64 channels of the slot </td>
      </tr>
    </table>
    </center>

    <br> Note that for the cold crosstalk tests, the pigtails from adjacent slots
    are jumpered together (e.g., pigtails A5 and B5 are jumpered together) so that
    the crosstalk is measured for two channels in series, and is consequently higher
    than that measured for single channels. <br>

    <br> The raw data can be viewed as png images by following the "View Raw Data" links.
    Note that the amplitudes of the "through" pulses (i.e., the scanned channel is the same
    as the pulsed channel) viewed from this link have been scaled up by a factor of 100 
    to match the amplitudes of the pulses when the "cross talk" pulses (i.e., the
    scanned channel is not the same as the pulsed channel) are recorded.
    Cross talk can thus be calculated as the ratio of the amplitudes of the
    "cross talk" pulses to the "through" pulses viewed in the images (or 100 times
    the ratio for percent cross talk).  Recording of the "through" pulses requred 
    100X attenuation to avoid saturation of the electronics chain. <br>

    <br> Note that there are only 13 slots measured for HEC feedthroughs since
    four of the slots are occupied by LV power cables. <br> <br>

</body>
</html>';

print "Content-type: text/html\n\n";
print $PAGE;

exit(0);
