<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pub023.cs.technik.fhnw.ch/wiki/index.php?action=history&amp;feed=atom&amp;title=Trigger_Rate_In_Housekeeping_Packets</id>
	<title>Trigger Rate In Housekeeping Packets - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pub023.cs.technik.fhnw.ch/wiki/index.php?action=history&amp;feed=atom&amp;title=Trigger_Rate_In_Housekeeping_Packets"/>
	<link rel="alternate" type="text/html" href="https://pub023.cs.technik.fhnw.ch/wiki/index.php?title=Trigger_Rate_In_Housekeeping_Packets&amp;action=history"/>
	<updated>2026-04-05T18:13:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://pub023.cs.technik.fhnw.ch/wiki/index.php?title=Trigger_Rate_In_Housekeeping_Packets&amp;diff=15553&amp;oldid=prev</id>
		<title>Hualin at 10:43, 25 June 2021</title>
		<link rel="alternate" type="text/html" href="https://pub023.cs.technik.fhnw.ch/wiki/index.php?title=Trigger_Rate_In_Housekeeping_Packets&amp;diff=15553&amp;oldid=prev"/>
		<updated>2021-06-25T10:43:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 10:43, 25 June 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:ASW]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Trigger rate in Housekeeping packets&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Trigger rate in Housekeeping packets&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In ASW, trigger rate is calculated in the function below:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In ASW, trigger rate is calculated in the function below:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key stix_wiki:diff::1.12:old-15552:rev-15553 --&gt;
&lt;/table&gt;</summary>
		<author><name>Hualin</name></author>
		
	</entry>
	<entry>
		<id>https://pub023.cs.technik.fhnw.ch/wiki/index.php?title=Trigger_Rate_In_Housekeeping_Packets&amp;diff=15552&amp;oldid=prev</id>
		<title>Hualin: Created page with &quot;* Trigger rate in Housekeeping packets In ASW, trigger rate is calculated in the function below:  &lt;pre&gt;    sid2-&gt;avgTrigAcc = 0;    sid2-&gt;maxTrigAcc = 0;    QLAccuDblBuffs_get...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pub023.cs.technik.fhnw.ch/wiki/index.php?title=Trigger_Rate_In_Housekeeping_Packets&amp;diff=15552&amp;oldid=prev"/>
		<updated>2021-06-25T09:53:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;* Trigger rate in Housekeeping packets In ASW, trigger rate is calculated in the function below:  &amp;lt;pre&amp;gt;    sid2-&amp;gt;avgTrigAcc = 0;    sid2-&amp;gt;maxTrigAcc = 0;    QLAccuDblBuffs_get...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* Trigger rate in Housekeeping packets&lt;br /&gt;
In ASW, trigger rate is calculated in the function below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;  &lt;br /&gt;
 sid2-&amp;gt;avgTrigAcc = 0;&lt;br /&gt;
   sid2-&amp;gt;maxTrigAcc = 0;&lt;br /&gt;
   QLAccuDblBuffs_getAndResetTrigHK(&amp;amp;(sid2-&amp;gt;avgTrigAcc), &amp;amp;(sid2-&amp;gt;maxTrigAcc));&lt;br /&gt;
void QLAccuDblBuffs_getAndResetTrigHK(uint32_t* medTrig, uint32_t* maxTrig)&lt;br /&gt;
{&lt;br /&gt;
   ASSERT(medTrig);&lt;br /&gt;
   ASSERT(maxTrig);&lt;br /&gt;
 &lt;br /&gt;
   *medTrig = 0;&lt;br /&gt;
   *maxTrig = 0;&lt;br /&gt;
 &lt;br /&gt;
   if (QLAccuDblBuffs_co.hk.trigCounter != 0)&lt;br /&gt;
   {&lt;br /&gt;
       *medTrig = utils_median(NUMBER_OF_GROUPS, NUMBER_OF_GROUPS, (uint32_t*)QLAccuDblBuffs_co.hk.trigSum) / QLAccuDblBuffs_co.hk.trigCounter;&lt;br /&gt;
 &lt;br /&gt;
       //find maximum&lt;br /&gt;
       for (uint32_t i = 0; i &amp;lt; NUMBER_OF_GROUPS; i++)&lt;br /&gt;
           if (QLAccuDblBuffs_co.hk.trigSum[i] &amp;gt; * maxTrig)&lt;br /&gt;
               *maxTrig = QLAccuDblBuffs_co.hk.trigSum[i];&lt;br /&gt;
       *maxTrig /= QLAccuDblBuffs_co.hk.trigCounter;&lt;br /&gt;
   }&lt;br /&gt;
 &lt;br /&gt;
   //reset&lt;br /&gt;
   Volatile_memset(QLAccuDblBuffs_co.hk.trigSum, 0, sizeof(QLAccuDblBuffs_co.hk.trigSum));&lt;br /&gt;
   QLAccuDblBuffs_co.hk.trigCounter = 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
MAX trigger rate of 16 detector pairs of the QL trigger accumulator ( 2 detector per group)&lt;br /&gt;
&lt;br /&gt;
QL integration time = 4 s&lt;br /&gt;
&lt;br /&gt;
Hence&lt;br /&gt;
 trigger rate of each detector = HK2 max trigger rate / (4 * 2)  = 350 /8=35&lt;br /&gt;
&lt;br /&gt;
* Trigger rate in LC&lt;br /&gt;
&lt;br /&gt;
4500 /  (4 s *32) =   32 counts / detector&lt;/div&gt;</summary>
		<author><name>Hualin</name></author>
		
	</entry>
</feed>