source: fact/tools/rootmacros/README.txt@ 12356

Last change on this file since 12356 was 12356, checked in by neise, 13 years ago
adjusted fbsl for ISDC cluster .. I basically renamed a few variables and generally tidied up a bit ... not sure what actually helped... maybe its still not solved.
File size: 1.3 KB
Line 
1README of FACT svntools/rootmacros
2
3
4fbsl.C ROOT Macro computing the baseline for each pixel
5 the function is declared as:
6 int fbsl(
7 const char *datafilename = "path-to-datafile.fits.gz",
8 const char *drsfilename = "path-to-calibfile.drs.fits.gz",
9 const char *TextOutFileName = "./appendfile.txt",
10 const char *RootOutFileName = "./datafile.root",
11 int firstevent = 0,
12 int nevents = -1,
13 int firstpixel = 0,
14 int npixel = -1,
15 bool produceGraphic = false
16 )
17
18 the baseline and its rms is calculated for each pixel based on the data,
19 given in the datafile.
20 the results are appended to a textfile
21 and the histograms ,which were used for caluculation, as well as some
22overviews are stored in a root file.
23 the 4 ints: firstevent, nevents, firstpixel, npixel can be used to calculate
24only for a subset
25 the last bool can be set to true, which will open 2 Canvases with overview
26histograms.
27
28 for automatic production of baseline analysis one can call this macro like
29this:
30e.g.
31 root -l -q fbsl.C++'("/data00/fact-construction/raw/2011/10/26/20111026_036.fits.gz", "/data00/fact-construction/raw/2011/10/26/20111026_031.drs.fits.gz", "./fbsl.txt", "./20111026_036.root")'
32
33
34 on the ISDC cluster, I used /opt/root5.18.x86_64/bin/root for testing.
Note: See TracBrowser for help on using the repository browser.