Index: /fact/tools/rootmacros/PulseTemplates/FPulseOverlay.C
===================================================================
--- /fact/tools/rootmacros/PulseTemplates/FPulseOverlay.C	(revision 13539)
+++ /fact/tools/rootmacros/PulseTemplates/FPulseOverlay.C	(revision 13540)
@@ -188,7 +188,7 @@
 //----------------------------------------------------------------------------
 int FPulseOverlay(
-        const char*     datafilename        = "../../data/2011/11/09/20111109_006.fits.gz",
-        const char*     drsfilename         = "../../data/2011/11/09/20111109_003.drs.fits.gz",
-        const char*     OutRootFileName     = "../../analysis/FPulseTemplate/20111109_006/20111109_006.pulses.root",
+        const char*     datafilename        = "/fact/raw/2011/11/09/20111109_006.fits.gz",
+        const char*     drsfilename         = "/fact/raw/2011/11/09/20111109_003.drs.fits.gz",
+        const char*     OutRootFileName     = "test.root",
         bool            ProduceGraphic      = true,
         bool            spikeDebug          = false,
@@ -198,5 +198,5 @@
         int             verbosityLevel      = 1,        // different verbosity levels can be implemented here
         int             firstevent          = 1,        // Hast to be between 1 and infinity NOT 0!!!!
-        int             nevents             = -1,
+        int             nevents             = 100,
         int             firstpixel          = 0,
         int             npixel              = 1000,
@@ -475,8 +475,4 @@
                                 histoOptions
                                 );
-                    cout << "Created Pixel# Set " << pixelID
-                         << " Pixel# Get " << pixel[pixelID]->mChid
-                         << " Adress " << &pixel[pixelID] << endl;
-
                 }
 
@@ -549,13 +545,13 @@
                          << " Pixel# [Got] " << pixel[pixelID]->mChid;
                 }
-//                FillHistograms(
-//                            pixel[pixelID],
-//                            pZXings,
-//                            AmplWindowWidth,
-//                            ev,
-//                            histoOptions,
-//                            maxPulseOrder,
-//                            verbosityLevel
-//                            );
+                FillHistograms(
+                            pixel[pixelID],
+                            pZXings,
+                            AmplWindowWidth,
+                            ev,
+                            histoOptions,
+                            maxPulseOrder,
+                            verbosityLevel
+                            );
 //-----------------------------------------------------------------------------
 // Spike Debug
@@ -614,5 +610,4 @@
 //-------------------------------------
 
-
         }//End of Loop over Events
 //-------------------------------------
@@ -820,14 +815,11 @@
         )
 {
-    cout << endl << "begin Pixel " << CurrentPixel->mChid << endl;
     if (verbosityLevel > 2) cout << endl << "...filling pulse histograms" ;
     bool use_this_peak=false;
     int order_of_pulse=0;
     vector<Region>::iterator reg;
-    cout << endl << "begin for " << endl;
     //Loop over all found zerocrossings in Region
     for (reg = pZXings->begin() ; reg < pZXings->end() ; reg++)
     {
-    cout << endl << "for" << endl;
         //skip those who are at the Rim of the ROI
         if (reg->maxPos < 12 || (unsigned int) reg->maxPos > gRegionOfInterest-12)
@@ -836,5 +828,4 @@
             continue;
         }
-    cout << endl << "def" << endl;
         // Define axis range of Histogram
         int Left        = reg->maxPos - gPixelOverlayXaxisLeft;
@@ -854,6 +845,4 @@
 
         //determine order of pulse and which histogram shall be filled
-//        if (verbosityLevel > 2)
-            cout << endl << "\t...choosing Histogram" ;
         for(int order = 0; order < maxPulseOrder; order++)
         {
@@ -881,9 +870,6 @@
             }
         }
-        cout << endl << "middle" << endl;
         //Fill overlay und profile histograms
         if (use_this_peak){
-//            if (verbosityLevel > 2)
-                cout << "...filling" ;
             for ( int pos = Left; pos < Right; pos++){
 //                if ();
@@ -904,5 +890,4 @@
    }
     if (verbosityLevel > 2) cout << "...done" << endl;
-    cout << endl << "end" << endl;
 }
 // end of FillHistograms
