<html>
  <head>
    <title>XML Documentation for ECAL DB numbering</title>
    <link rel="stylesheet" type="text/css" href="style.css"/>
  </head>
  <body>

	<div id=titleWindow> How to read this page:</div>


      <div class="numbering">
        <p>Part::"Name_of_part"</p>
        <p>Id Names::["id1_name","id2_name","id3_name"]</p>
        <p>Description::"Description of part and numbering scheme"</p>
        <p>Logic_ids::numbering logic in form of %10d number (X XXX XXX XXX with spaces separating the channel ids); channel ids used in logic (ordered)</p>
        <p>Channel_ids::[id1: range, id2: range, id3: range]</p>
        <p>Number of channels::number of channels of current part when DB is filled</p>
      </div>

<ul>
	<li> NOTE #1: if z side is needed, assignment to logicId will be <br>
	z side = -1 --> sideIndex = 0;<br>
	z side = 1 --> sideIndex = 2;<br>
	</li>

	<li> NOTE #2: general idea for EE logicIds: a lower number (from 2 000 000 000 onwards) means that the part is bigger :) <br>Hierarchy: 

	<table>
		<tr> <td> TCC </td> <td> 1 XXX </td>
		<tr> <td> Whole Endcap	</td> <td>2 000 000 000 </td>
		<tr> <td> Sides </td> <td> 2 000 000 01X </td>
		<tr> <td> Dees </td> <td> 2 000 000 1XX </td>
		<tr> <td> Sectors </td> <td> 2 000 000 XXX Note: dee and sector logicIds don't overlap - 1st of the 3 free digits is 0 or 2 for sectors (=sideIndex) </td>
		<tr> <td> DCC </td> <td> 2 000 001 XXX </td>
		<tr> <td> Crystal number </td> <td> 2 01X XXX XXX </td>
		<tr> <td> Crystal hashed </td> <td> 2 02X XXX XXX </td>
		<tr> <td> Readout tower </td> <td> 2 000 0XX XXX </td>
		<tr> <td> Trigger tower </td> <td> 2 000 0XX XXX </td>
		<tr> <td> Readout tower strip </td> <td> 2 001 XXX XXX </td>
		<tr> <td> Trigger tower strip </td> <td> 2 001 XXX XXX </td>
		<tr> <td> Readout tower xtal strip </td> <td> 2 00X XXX XXX Note: trigger/readout tower (and xtal) strip logicIds don't overlap - 1st of the 7 free digits is 1 for trigger (=TCC), 6 for readout (=DCC) </td>
		<tr> <td> Trigger tower xtal strip </td> <td> 2 00X XXX XXX </td>
	</table>

	<li>

	<li>
NOTE #3: ... = consecutive numbers

	</li>
	<li>
NOTE #4  ~..= almost consecutive numbers (e.g. crystal number for x,y)
	</li>
	</ul>

  </body>
</html>
