#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Defines | |
| #define | maxChamber 32 |
Functions | |
| int | main (int argc, char *argv[]) |
| main program | |
This application writes a file with pedestal and noise data for Monte Carlo data. All pedestals are 2048 and the noise is 3 ADC counts. This file has the same format as the regualar pedestal program and can be read in CalServer for GNAM and the event display.
Each line starts with the channel ID in hex, followed by 3 characters that identify the chamber, the direction and the layer. This information is contained in the channel ID, but repeated to make the file more readable. Next on the line is the channel number in decimal. This is followed by the pedestal value and its error, and the noise value an its error. The errors are the statistical uncertainties from the gaussian fit. Here are the first few lines of such a file:
4
00005800 0X0 0 2044.468 0.046 2.870 0.034
00005801 0X0 1 2076.505 0.043 2.671 0.032
00005802 0X0 2 2042.054 0.039 2.435 0.029
00005803 0X0 3 2056.927 0.039 2.438 0.029
00005804 0X0 4 2072.017 0.039 2.411 0.029
...
1.3.9.1