ctools
2.0.0
|
Public Member Functions | |
def | __init__ |
def | process |
def | save |
def | ebounds |
Private Member Functions | |
def | _get_parameters |
def | _insert_energy |
def | _set_ebounds |
Private Attributes | |
_ebounds | |
Generates energy boundaries for stacked analysis
Definition at line 30 of file csebins.py.
def cscripts.csebins.csebins.__init__ | ( | self, | |
argv | |||
) |
Constructor
Definition at line 36 of file csebins.py.
|
private |
Get parameters from parfile
Definition at line 51 of file csebins.py.
References ctobservation.obs(), cscripts.csobsdef.csobsdef.obs(), and cscripts.csiactobs.csiactobs.obs().
Referenced by cscripts.csmodelinfo.csmodelinfo.process(), cscripts.csobsinfo.csobsinfo.process(), cscript_like.cscript_like.process(), cscript_obs.cscript_obs.process(), cscript_base.cscript_base.process(), cscripts.csmodelmerge.csmodelmerge.process(), cscripts.csiactdata.csiactdata.process(), cscripts.cstsmapsplit.cstsmapsplit.process(), cscripts.csresmap.csresmap.process(), cscripts.csmodelsois.csmodelsois.process(), cscripts.csobsdef.csobsdef.process(), cscripts.csfindobs.csfindobs.process(), cscripts.csmodelselect.csmodelselect.process(), cscripts.csebins.csebins.process(), cscripts.cstsmapmerge.cstsmapmerge.process(), cscripts.csobsselect.csobsselect.process(), cscripts.csworkflow.csworkflow.process(), cscripts.csobs2caldb.csobs2caldb.process(), cscripts.cstsdist.cstsdist.process(), cscripts.csiactcopy.csiactcopy.process(), cscripts.cssrcdetect.cssrcdetect.process(), cscripts.cspull.cspull.process(), cscripts.csphasecrv.csphasecrv.process(), cscripts.csiactobs.csiactobs.process(), cscripts.cslightcrv.cslightcrv.process(), cscripts.csviscube.csviscube.process(), cscripts.csresspec.csresspec.process(), cscripts.csfootprint.csfootprint.process(), cscripts.csscs.csscs.process(), cscripts.csphagen.csphagen.process(), cscripts.cssens.cssens.process(), cscripts.csspec.csspec.process(), and cscripts.csroot2caldb.csroot2caldb.process().
|
private |
Set energy boundaries for one CTA observation Parameters ---------- responses : list of dict List of response dictionaries energy : float Energy to insert (TeV) comment : str Reason for energy insertion
Definition at line 87 of file csebins.py.
Referenced by cscripts.csebins.csebins._set_ebounds().
|
private |
Set energy boundaries for one CTA observation Parameters ---------- obs : `~gammalib.GObservations` CTA observation
Definition at line 152 of file csebins.py.
References cscripts.csebins.csebins._insert_energy().
Referenced by cscripts.csspec.csspec._get_parameters(), and cscripts.csebins.csebins.process().
def cscripts.csebins.csebins.ebounds | ( | self | ) |
Return energy boundaries Returns ------- ebounds : `~gammalib.GEbounds()` Energy boundaries
Definition at line 284 of file csebins.py.
References cscripts.csebins.csebins._ebounds.
def cscripts.csebins.csebins.process | ( | self | ) |
Process the script
Definition at line 243 of file csebins.py.
References cscripts.csadd2caldb.csadd2caldb._get_parameters(), cscripts.csebins.csebins._get_parameters(), cscripts.cscaldb.cscaldb._get_parameters(), cscripts.csbkgmodel.csbkgmodel._get_parameters(), cscripts.csebins.csebins._set_ebounds(), ctobservation.obs(), cscripts.csobsdef.csobsdef.obs(), and cscripts.csiactobs.csiactobs.obs().
def cscripts.csebins.csebins.save | ( | self | ) |
Save energy boundaries
Definition at line 262 of file csebins.py.
References cscripts.csmodelmerge.csmodelmerge._clobber.
|
private |
Definition at line 44 of file csebins.py.
Referenced by cscripts.csphagen.csphagen.__getstate__(), cscripts.csspec.csspec.__getstate__(), cscripts.cssens.cssens.__getstate__(), cscripts.csspec.csspec.__setstate__(), cscripts.cssens.cssens.__setstate__(), cscripts.csphagen.csphagen.__setstate__(), cscripts.csspec.csspec._fit_energy_bins(), cscripts.cssens.cssens._get_parameters(), cscripts.csphagen.csphagen._get_parameters(), cscripts.csphagen.csphagen._process_observation(), cscripts.csspec.csspec._set_ebounds(), cscripts.csspec.csspec._set_replace_src_spectrum_by_bins(), cscripts.csebins.csebins.ebounds(), cscripts.csobsinfo.csobsinfo.ebounds(), cscripts.csiactobs.csiactobs.ebounds(), and cscripts.csobsinfo.csobsinfo.process().