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 265 # Return observation container
266 266 return obs
267 267  
268   - def set_bkg_model(self):
  268 + def set_bkg_model(self, fitsigma=False):
269 269 """
270 270 Setup CTA background model.
271 271 """
272 272 # Define radial component
273 273 radial = GCTAModelRadialGauss(3.0)
  274 + if fitsigma:
  275 + radial["Sigma"].free()
  276 + else:
  277 + radial["Sigma"].fix()
274 278  
275 279 # Define spectral component
276 280 spectrum = GModelSpectralFunc(self.m_bkg)
... ...