Exemplo n.º 1
0
    def __init__(self,d1,d2,dataType=DataType.UNBINNED):
        if dataType == DataType.BINNED1D:
#t            print 'WARNING: Using test on binned distributions'
            first = d1 #getFrom1DHistogram( d1 )
            second= d2 #getFrom1DHistogram( d2 )
        elif dataType == DataType.UNBINNED:
            first = getFromTree( d1 )
            second = getFromTree( d2 )
        else:
            raise WringDataType()
        StatTest.__init__(self,first,second,dataType)
        if dataType == DataType.UNBINNED:
            self.gof=makeROOTgof(self.dataset1,self.dataset2)
Exemplo n.º 2
0
 def __init__(self, d1, d2, dataType=DataType.UNBINNED):
     if dataType == DataType.BINNED1D:
         print 'WARNING: Using test on binned distributions'
         first = d1  #getFrom1DHistogram( d1 )
         second = d2  #getFrom1DHistogram( d2 )
     elif dataType == DataType.UNBINNED:
         first = getFromTree(d1)
         second = getFromTree(d2)
     else:
         raise WringDataType()
     StatTest.__init__(self, first, second, dataType)
     if dataType == DataType.UNBINNED:
         self.gof = makeROOTgof(self.dataset1, self.dataset2)
Exemplo n.º 3
0
 def __init__(self,h1,h2,dataType=DataType.UNBINNED):
     if dataType == DataType.BINNED1D:
         first = getFrom1DHistogram( h1 )
         second= getFrom1DHistogram( h2 )
     elif dataType == DataType.UNBINNED:
         first = getFromTree( h1 )
         second = getFromTree( h2 )
         #print first[0:10]
         #print second[0:10]
     else:
         raise WrongDataType()
     StatTest.__init__(self,first,second,dataType)
     from Utils import makeROOTgof
     self.gof=makeROOTgof(self.dataset1,self.dataset2)
Exemplo n.º 4
0
 def __init__(self, h1, h2, dataType=DataType.UNBINNED):
     if dataType == DataType.BINNED1D:
         first = getFrom1DHistogram(h1)
         second = getFrom1DHistogram(h2)
     elif dataType == DataType.UNBINNED:
         first = getFromTree(h1)
         second = getFromTree(h2)
         #print first[0:10]
         #print second[0:10]
     else:
         raise WrongDataType()
     StatTest.__init__(self, first, second, dataType)
     from Utils import makeROOTgof
     self.gof = makeROOTgof(self.dataset1, self.dataset2)