Commit 7130da33b7f3bc8d27d3f0dc28ac9f0ff9b219c0

Authored by knodlseder
1 parent 6b4ca770

fix background sigma by default

Showing 1 changed file with 5 additions and 1 deletions
scripts/cstsdist.py
@@ -265,12 +265,16 @@ class cstsdist(GApplication): @@ -265,12 +265,16 @@ class cstsdist(GApplication):
265 # Return observation container 265 # Return observation container
266 return obs 266 return obs
267 267
268 - def set_bkg_model(self): 268 + def set_bkg_model(self, fitsigma=False):
269 """ 269 """
270 Setup CTA background model. 270 Setup CTA background model.
271 """ 271 """
272 # Define radial component 272 # Define radial component
273 radial = GCTAModelRadialGauss(3.0) 273 radial = GCTAModelRadialGauss(3.0)
  274 + if fitsigma:
  275 + radial["Sigma"].free()
  276 + else:
  277 + radial["Sigma"].fix()
274 278
275 # Define spectral component 279 # Define spectral component
276 spectrum = GModelSpectralFunc(self.m_bkg) 280 spectrum = GModelSpectralFunc(self.m_bkg)