Example #1
0
    def __init__(self,pset,psf_model):   
        PDF.__init__(self,pset)
        self._psf_model = copy.deepcopy(psf_model)
#        self._pid = [pnorm.pid(),psigma.pid()]

        x = np.linspace(-4,4,800)
        self._ive = UnivariateSpline(x,spfn.ive(0,10**x),s=0,k=2)
Example #2
0
    def __init__(self,psigma,pgamma,pnorm=None):

        pset = ParameterSet([psigma,pgamma])
        self._pid = [psigma.pid(),pgamma.pid()]
        if not pnorm is None: 
            pset.addParameter(pnorm)
            self._pid += [pnorm.pid()]
        PDF.__init__(self,pset,cname='dtheta')      
Example #3
0
 def __init__(self,spectral_model,spatial_model,ebin_edges,exp):
     pset = ParameterSet()
     pset.addSet(spectral_model.param())
     pset.addSet(spatial_model.param())
     PDF.__init__(self,pset)      
     self._ebin_edges = ebin_edges
     self._exp = exp
     self.spatial_model = spatial_model
     self.spectral_model = spectral_model
Example #4
0
 def __init__(self):
     PDF.__init__(self)
     self._models = []
Example #5
0
 def __init__(self,pnorm,pgamma):
     pset = ParameterSet([pnorm,pgamma])
     self._pid = [pnorm.pid(),pgamma.pid()]
     self._enorm = 3.0
     PDF.__init__(self,pset,cname='energy')