|
Last change
on this file since 12369 was 12356, checked in by neise, 14 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 | |
|---|
| 1 | README of FACT svntools/rootmacros
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 | fbsl.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
|
|---|
| 22 | overviews are stored in a root file.
|
|---|
| 23 | the 4 ints: firstevent, nevents, firstpixel, npixel can be used to calculate
|
|---|
| 24 | only for a subset
|
|---|
| 25 | the last bool can be set to true, which will open 2 Canvases with overview
|
|---|
| 26 | histograms.
|
|---|
| 27 |
|
|---|
| 28 | for automatic production of baseline analysis one can call this macro like
|
|---|
| 29 | this:
|
|---|
| 30 | e.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.