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

amp.cpp File Reference

Reads csc data file and produces a tree with fit results for channels above threshold. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "TH1.h"
#include "TGraph.h"
#include "TFile.h"
#include "TF1.h"
#include "TTree.h"
#include "TProfile.h"
#include "CSCEvent.h"
#include "CSCHitList.h"
#include "CalServer.h"

Defines

#define maxSize   4000*32
 Buffer size for an entire ATLAS event.
#define maxChamber   32
 allocate space for all 32 chambers

Functions

double bipolar (Double_t *x, Double_t *parm)
 fit function for adc values
int main (int argc, char *argv[])
 main program


Detailed Description

Reads csc data file and produces a tree with fit results for channels above threshold.

This application fills a tree with data for correcting the parabolic interpolation of amplitude and peaking time.


Function Documentation

int main int  argc,
char *  argv[]
 

main program

branch structure for root tree.

event number

phi number, identifies the chamber

channel number

layer number

0 for X strips, 1 for Y strips

array of 4 adc values, pedestals are subtracted.

the uncorrected parabolic estimate of amplitude.

the uncorrected parabolic estimate of peaking time.

the corrected parabolic estimate of amplitude.

the corrected parabolic estimate of peaking time.

the parabolic estimate of the shaping time (pulse width).

Note:
this is not yet computed.

the fit result for amplitude.

the fit result for peaking time.

the fit result for width.

the chi2 fo the fit

the error on the fit result for amplitude.

the sampling phase 0 or 1 for this strip


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