Commit 2ccaeea78e048b2bbfec908f49e6122cff09b34c

Authored by Jürgen Knödlseder
1 parent 4e90453a

Remove expcube, psfcube and bkgcube parameters.

Showing 1 changed file with 7 additions and 7 deletions
cscripts/cspull.py
... ... @@ -102,9 +102,9 @@ class cspull(ctools.cscript):
102 102 pars.append(gammalib.GApplicationPar("inobs","f","h","NONE","","","Event list, counts cube, or observation definition file"))
103 103 pars.append(gammalib.GApplicationPar("inmodel","f","a","$CTOOLS/share/models/crab.xml","","","Source model"))
104 104 pars.append(gammalib.GApplicationPar("outfile","f","a","pull.dat","","","Output file name"))
105   - pars.append(gammalib.GApplicationPar("expcube","s","a","NONE","","","Exposure cube file (only needed for stacked analysis)"))
106   - pars.append(gammalib.GApplicationPar("psfcube","s","a","NONE","","","PSF cube file (only needed for stacked analysis)"))
107   - pars.append(gammalib.GApplicationPar("bkgcube","s","a","NONE","","","Background cube file (only needed for stacked analysis)"))
  105 + #pars.append(gammalib.GApplicationPar("expcube","s","a","NONE","","","Exposure cube file (only needed for stacked analysis)"))
  106 + #pars.append(gammalib.GApplicationPar("psfcube","s","a","NONE","","","PSF cube file (only needed for stacked analysis)"))
  107 + #pars.append(gammalib.GApplicationPar("bkgcube","s","a","NONE","","","Background cube file (only needed for stacked analysis)"))
108 108 pars.append(gammalib.GApplicationPar("caldb","s","a","prod2","","","Calibration database"))
109 109 pars.append(gammalib.GApplicationPar("irf","s","a","South_50h","","","Instrument response function"))
110 110 pars.append(gammalib.GApplicationPar("deadc","r","h","0.95","0","1","Deadtime correction factor"))
... ... @@ -359,10 +359,10 @@ class cspull(ctools.cscript):
359 359 debug=self.m_debug, \
360 360 chatter=self.m_chatter)
361 361  
362   - #If stacked, add stacked responses and model
363   - if self.obs.size()>0 and self.m_enumbins>0:
364   - obs[0].response(self.m_exposure,self.m_psfcube,self.m_bckcube)
365   - obs.models(self.m_stackmodels)
  362 + # If stacked, add stacked responses and model
  363 + if self.obs.size() > 0 and self.m_enumbins > 0:
  364 + obs[0].response(self.m_exposure, self.m_psfcube, self.m_bckcube)
  365 + obs.models(self.m_stackmodels)
366 366  
367 367 # Determine number of events in simulation
368 368 nevents = 0.0
... ...