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

ext.cpp File Reference

Reads one csc data file and calculates pedestal and noise, similar to ped.cpp, but with empasis on external signals that are coherent on large groups of channels. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "TH1.h"
#include "TFile.h"
#include "TF1.h"
#include "CSCEvent.h"

Defines

#define maxSize   4000*32
#define maxChamber   32

Functions

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


Detailed Description

Reads one csc data file and calculates pedestal and noise, similar to ped.cpp, but with empasis on external signals that are coherent on large groups of channels.

This application uses the CSCEvent class to read CSC raw data and to fill histograms of pedestal values. All samples are averaged in groups of 24 channels before they are put into histograms.

For each group, the histogram is fitted to a Gaussian and the mean and sigma are saved as pedestal and noise. The results are summarized in the mean and sigma histograms and also written into a text file.


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