Main Page | Class List | File List | Class Members | File Members | Related Pages

pedMC.c File Reference

Writes a pedestal file for MC data. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Defines

#define maxChamber   32

Functions

int main (int argc, char *argv[])
 main program


Detailed Description

Writes a pedestal file for MC data.

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.

Format

The file starts with the number of chambers in the first line. After that, there are 5 * 192 * (number of chambers) channels, with one line per channel.

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
...

Generated on Wed Oct 29 10:35:18 2008 for CSCRead by  doxygen 1.3.9.1