Index: fact/tools/pyscripts/pyfact/hist.py
===================================================================
--- fact/tools/pyscripts/pyfact/hist.py	(revision 13090)
+++ fact/tools/pyscripts/pyfact/hist.py	(revision 13095)
@@ -10,6 +10,6 @@
 
 class histogramList( object ):
-    """ maintain a list of ROOT histograms
-    """
+    """ maintain a list of ROOT histograms """
+
     def __init__( self, name ):
         """ set the name and create empty lists """
@@ -21,4 +21,9 @@
         self.book()
 
+    def __call__(self, tag, value):
+        """ fill value in the correct histo """
+
+        self.dict[tag].Fill(value)
+
     def __del__(self):
         for h in self.list:
@@ -54,5 +59,5 @@
     Create ROOT histo 
     """
-    def __init__( self, nbins, first, last, name = 'name', title = 'title',
+    def __init__( self, name, title, nbins, first, last, 
                   xtitle = 'x', ytitle = 'y' ):
 
@@ -69,7 +74,11 @@
         
     def fill( self, x ):
-        h, b = np.histogram( x, self.nbins, self.first, self.last,
-                             new = True )
+        h, b = np.histogram( x, self.nbins, (self.first,self.last) )
+        self.b = b
         self.y += h
+
+    def __call__(self, x):
+        self.fill(x)
+
 
     def zero( self ):
@@ -81,6 +90,6 @@
             self.rh = TH1F( self.name, self.title, self.nbins,
                    self.first, self.last )
-            self.rh.GetXaxis().SetTitle( xtitle );
-            self.rh.GetYaxis().SetTitle( ytitle );
+            self.rh.GetXaxis().SetTitle( self.xtitle );
+            self.rh.GetYaxis().SetTitle( self.ytitle );
 
         for i in range( self.nbins ):
