Newer
Older
FairShipTools / Katerina / doc / html / RecoSettings_8py_source.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>Python: RecoSettings.py Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Python
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">RecoSettings.py</div>  </div>
</div><!--header-->
<div class="contents">
<a href="RecoSettings_8py.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"><a class="line" href="namespaceRecoSettings.html">    1</a></span>&#160;<span class="keyword">import</span> ROOT,os,sys,getopt</div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="keyword">import</span> rootUtils <span class="keyword">as</span> ut</div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="keyword">import</span> shipunit <span class="keyword">as</span> u</div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="stringliteral">&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="stringliteral">Parameter settings for reconstruction</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="stringliteral">&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">## min number of hits to produce a track</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="namespaceRecoSettings.html#a36fb727bda7429281f793cfe6c4b62db">    9</a></span>&#160;trackMinNofHits     = 25</div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="namespaceRecoSettings.html#ad8f599c5bebcc1f5b2d2f3f81f274157">   10</a></span>&#160;trackMinNofStations = 3</div>
<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="namespaceRecoSettings.html#a9867b5410074609b969ce6bc9220989c">   11</a></span>&#160;chi2CutOff          = 4.</div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="namespaceRecoSettings.html#a181f0e075d208d7c02b849aa5642449e">   12</a></span>&#160;dy                  = 10.0</div>
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="namespaceRecoSettings.html#acf79d43ce91fb625c09b782f847ce1ef">   13</a></span>&#160;VertexMaxZcut       = 2500*u.cm</div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="namespaceRecoSettings.html#ab97bbaa78e2e7d6dde698072ab25c07e">   14</a></span>&#160;VertexExtrSteps     = 5</div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="namespaceRecoSettings.html#af32eddd8f00f7a4ef2ae2444767a88be">   15</a></span>&#160;PDG = ROOT.TDatabasePDG.Instance()</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="namespaceRecoSettings.html#aa7af3e34857fc86f30ffbbaa1ce4f817">   17</a></span>&#160;<span class="keyword">def </span><a class="code" href="namespaceRecoSettings.html#aa7af3e34857fc86f30ffbbaa1ce4f817">chargePDG</a>(pdg):</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;  <span class="keywordflow">if</span> <span class="keywordflow">not</span> PDG.GetParticle(pdg): <span class="keywordflow">return</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;  <span class="keywordflow">return</span> PDG.GetParticle(pdg).Charge()/(3.)</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="namespaceRecoSettings.html#a5d559dea0f8f68b24bc28e20ac5963dc">   21</a></span>&#160;<span class="keyword">def </span><a class="code" href="namespaceRecoSettings.html#a5d559dea0f8f68b24bc28e20ac5963dc">checkEllipticAcc</a>(vec):</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;  Rsq    = (vec.X()/(2.45*u.m) )**2 + (vec.Y()/((dy/2.-0.05)*u.m) )**2</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;  <span class="keywordflow">return</span> ( Rsq&lt;1 )</div>
<div class="ttc" id="namespaceRecoSettings_html_aa7af3e34857fc86f30ffbbaa1ce4f817"><div class="ttname"><a href="namespaceRecoSettings.html#aa7af3e34857fc86f30ffbbaa1ce4f817">RecoSettings.chargePDG</a></div><div class="ttdeci">def chargePDG</div><div class="ttdef"><b>Definition:</b> <a href="RecoSettings_8py_source.html#l00017">RecoSettings.py:17</a></div></div>
<div class="ttc" id="namespaceRecoSettings_html_a5d559dea0f8f68b24bc28e20ac5963dc"><div class="ttname"><a href="namespaceRecoSettings.html#a5d559dea0f8f68b24bc28e20ac5963dc">RecoSettings.checkEllipticAcc</a></div><div class="ttdeci">def checkEllipticAcc</div><div class="ttdef"><b>Definition:</b> <a href="RecoSettings_8py_source.html#l00021">RecoSettings.py:21</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>