Index: /fact/tools/rootmacros/README.txt
===================================================================
--- /fact/tools/rootmacros/README.txt	(revision 12386)
+++ /fact/tools/rootmacros/README.txt	(revision 12387)
@@ -1,4 +1,5 @@
 README of FACT svntools/rootmacros
 
+	on the ISDC cluster, I used /opt/root5.18.x86_64/bin/root for testing.
 
 fbsl.C		ROOT Macro computing the baseline for each pixel
@@ -31,4 +32,34 @@
 	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.
+fpeak_cfd.C		ROOT macro creating an amplitude spektrum for each pixel
+
+int fpeak(
+  char *datafilename    = "data/20111016_013.fits.gz",
+  const char *drsfilename = "../../20111016_011.drs.fits.gz",
+  const char *OutRootFileName = "../analysis/fpeak_cdf.Coutput.root",
+  int firstevent      = 0,
+  int nevents       = -1,
+  int firstpixel      = 0,
+  int npixel        = -1,
+  bool spikeDebug = false,
+  int avg1    = 14,
+  int avg2    = 8,
+  int verbosityLevel = 1, // different verbosity levels can be implemented here
+  bool ProduceGraphic = true
+ )
+
+the peaks are search, using the constant fraction discriminator, implemented
+as a FIR filter, which outputs a waveform, which rising edge zero crossings
+show the position of a peak.
+
+the two integers 'avg1' and 'avg2' are still present for debugging... 
+two sliding average filters are beeing used, and these are the HALFwidths of
+these filters.
+
+The amplitude spektra are produced as a TH2F with the pixels on its x-Axis.
+For further analysy the ROOT macro gainfit.C may be used...
+
+
+
