README of FACT svntools/rootmacros


fbsl.C		ROOT Macro computing the baseline for each pixel
	the function is declared as:
	int fbsl( 
  	const char *datafilename    = "path-to-datafile.fits.gz",
	  const char *drsfilename = "path-to-calibfile.drs.fits.gz",
	  const char *TextOutFileName = "./appendfile.txt",
	  const char *RootOutFileName = "./datafile.root",
	  int firstevent      = 0,
	  int nevents       = -1, 
	  int firstpixel    = 0,
	  int npixel        = -1,
	  bool produceGraphic = false
	)

	the baseline and its rms is calculated for each pixel based on the data,
	given in the datafile.
	the results are appended to a textfile
	and the histograms ,which were used for caluculation, as well as some
overviews are stored in a root file.
	the 4 ints: firstevent, nevents, firstpixel, npixel can be used to calculate
only for a subset
	the last bool can be set to true, which will open 2 Canvases with overview
histograms.

	for automatic production of baseline analysis one can call this macro like
this:
e.g.
	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")'


	on the ISDC cluster, I used /opt/root5.18.x86_64/bin/root for testing.
