Strip detector Code algorithm
The program is data driven, in the sense that a top subroutine looks through
the input data and calls routines to process those detectors it finds.
Each of the 5 sorts of record calls an appropriate routine. E.g., for
APV5 data:
- Event - APV5_USER
- Start of Burst - APV5_SOB
- End of Burst - APV5_EOB
- Start of Run - APV5_SOR
- End of Run - APV5_ROR
In addition, for detectors other than the telescope, a routine APV5_HBN is
called. In this, the data to be included in the ntuple DST is declared.
For raw data processing, each routine is passed the entire data record written
online and a pointer to the start of their data within it. In DST processing
the pointer is set to -1, and the detectors should ge the data from the common
block declared in APV5_HBN.
It is up to each detector to decide how to react to the data.
All detectors used so far have read-out all channels in a digital form for each
event, and for these detectors the following steps are done for each event:
- Conversion of input to real format
- Bad channel identification
- Pedestal subtraction
- Common mode correction
- Hit search
- histograming and analysis using tracks.
- Calculation of pedestals and RMS for use above.
For binary detectors most of the above is redundant, but the alignment and
here
Comments to :
Bill Murray