The CST Hit Finding is called in Hits&Cluster as well as in Monitor mode. It is performed only if the FADC is selected and if the Sigmas have been initialized correctly (see Sec. 2.4). It consists of a two-pass algorithm processing the Raw Data of every strip. The main loop runs over one halfladder, i.e. 640 strips.
In a first pass the Common Mode for every APC (i.e. 128 strips) is calculated. This is done by just taking the mean raw data value from all strips (We call it CM128). To minimize large contributions from ``hit strips'', the pulse height is then evaluated as
In a second pass the pulse height is evaluated again (eventually with a correct Common Mode):
Bit 14 of the raw data word of a hit strip is used as a hit flag to be checked by the updating routine, see Sec.2.4. As long as the above conditions are true for neighbouring strips, the as well as the are summed up and stored. If the first non-hit strip is reached, the for the candidate strips is checked:
where the is the number of strips belonging to the cluster candidate. For and values of 1 and 25 resp. are used at present.If the above statement is true, a hit word is written to the Hit Buffer for each of the strips.