Index: fact/tools/pyscripts/pyfact/extractor.py
===================================================================
--- fact/tools/pyscripts/pyfact/extractor.py	(revision 13027)
+++ fact/tools/pyscripts/pyfact/extractor.py	(revision 13028)
@@ -41,4 +41,27 @@
         pass
 
+
+class WindowIntegrator(object):
+    """ Integrates in a given intergration window around the given position
+    """
+    
+    def __init__(self, min=13, max=23 , name = 'WindowIntegrator'):
+        """ initialize integration Window
+        """
+        self.min = min
+        self.max = max
+        self.name = name
+        
+    def __call__(self, data, pos):
+        integral = np.empty( data.shape[0] )
+        for pixel in range( data.shape[0] ):
+            integral[pixel] = data[pixel, (pos[pixel]-self.min):(pos[pixel]+self.max)].sum()
+        return integral
+
+    def __str__(self):
+        s = self.name + '\n'
+        s += 'window:\n'
+        s += '(min,max) = (' + str(self.min) + ',' + str(self.max) + ')'
+        return s    
 
 class FixedWindowIntegrator(object):
