ctools 2.1.0.dev
Loading...
Searching...
No Matches
cscripts.csebins.csebins Class Reference
Inheritance diagram for cscripts.csebins.csebins:

Public Member Functions

 __init__ (self, *argv)
 
 process (self)
 
 save (self)
 
 ebounds (self)
 

Protected Member Functions

 _get_parameters (self)
 
 _insert_energy (self, responses, energy, comment)
 
 _set_ebounds (self, obs)
 

Protected Attributes

 _ebounds
 

Detailed Description

Generates energy boundaries for stacked analysis

Definition at line 30 of file csebins.py.

Constructor & Destructor Documentation

◆ __init__()

cscripts.csebins.csebins.__init__ ( self,
* argv )
Constructor

Definition at line 36 of file csebins.py.

Member Function Documentation

◆ _get_parameters()

cscripts.csebins.csebins._get_parameters ( self)
protected
Get parameters from parfile

Definition at line 51 of file csebins.py.

References cscripts.csiactobs.csiactobs.obs(), cscripts.csobsdef.csobsdef.obs(), ctobservation.obs(), and ctobservation.obs().

Referenced by cscripts.csadd2caldb.csadd2caldb.process(), cscripts.csbkgmodel.csbkgmodel.process(), cscripts.cscaldb.cscaldb.process(), cscripts.csebins.csebins.process(), cscripts.csfindobs.csfindobs.process(), cscripts.csfootprint.csfootprint.process(), cscripts.csiactcopy.csiactcopy.process(), cscripts.csiactdata.csiactdata.process(), cscripts.csiactobs.csiactobs.process(), cscripts.cslightcrv.cslightcrv.process(), cscripts.csmodelinfo.csmodelinfo.process(), cscripts.csmodelmerge.csmodelmerge.process(), cscripts.csmodelselect.csmodelselect.process(), cscripts.csmodelsois.csmodelsois.process(), cscripts.csobs2caldb.csobs2caldb.process(), cscripts.csobsdef.csobsdef.process(), cscripts.csobsinfo.csobsinfo.process(), cscripts.csobsselect.csobsselect.process(), cscripts.csphagen.csphagen.process(), cscripts.csphasecrv.csphasecrv.process(), cscripts.cspull.cspull.process(), cscripts.csresmap.csresmap.process(), cscripts.csresspec.csresspec.process(), cscripts.csroot2caldb.csroot2caldb.process(), cscripts.csscs.csscs.process(), cscripts.cssens.cssens.process(), cscripts.csspec.csspec.process(), cscripts.cssrcdetect.cssrcdetect.process(), cscripts.cstsdist.cstsdist.process(), cscripts.cstsmapmerge.cstsmapmerge.process(), cscripts.cstsmapsplit.cstsmapsplit.process(), cscripts.csviscube.csviscube.process(), and cscripts.csworkflow.csworkflow.process().

◆ _insert_energy()

cscripts.csebins.csebins._insert_energy ( self,
responses,
energy,
comment )
protected
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.

References cscripts.csebins.csebins._ebounds, cscripts.csiactobs.csiactobs._ebounds, cscripts.csobsinfo.csobsinfo._ebounds, cscripts.csphagen.csphagen._ebounds, cscripts.cssens.cssens._ebounds, and cscripts.csspec.csspec._ebounds.

Referenced by cscripts.csebins.csebins._set_ebounds().

◆ _set_ebounds()

cscripts.csebins.csebins._set_ebounds ( self,
obs )
protected

◆ ebounds()

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, cscripts.csiactobs.csiactobs._ebounds, cscripts.csobsinfo.csobsinfo._ebounds, cscripts.csphagen.csphagen._ebounds, cscripts.cssens.cssens._ebounds, and cscripts.csspec.csspec._ebounds.

◆ process()

cscripts.csebins.csebins.process ( self)
Process the script

Definition at line 243 of file csebins.py.

References cscripts.csadd2caldb.csadd2caldb._get_parameters(), cscripts.csbkgmodel.csbkgmodel._get_parameters(), cscripts.cscaldb.cscaldb._get_parameters(), cscripts.csebins.csebins._get_parameters(), cscripts.csfindobs.csfindobs._get_parameters(), cscripts.csfootprint.csfootprint._get_parameters(), cscripts.csiactcopy.csiactcopy._get_parameters(), cscripts.csiactdata.csiactdata._get_parameters(), cscripts.csiactobs.csiactobs._get_parameters(), cscripts.cslightcrv.cslightcrv._get_parameters(), cscripts.csmodelinfo.csmodelinfo._get_parameters(), cscripts.csmodelmerge.csmodelmerge._get_parameters(), cscripts.csmodelselect.csmodelselect._get_parameters(), cscripts.csmodelsois.csmodelsois._get_parameters(), cscripts.csobs2caldb.csobs2caldb._get_parameters(), cscripts.csobsdef.csobsdef._get_parameters(), cscripts.csobsinfo.csobsinfo._get_parameters(), cscripts.csobsselect.csobsselect._get_parameters(), cscripts.csphagen.csphagen._get_parameters(), cscripts.csphasecrv.csphasecrv._get_parameters(), cscripts.cspull.cspull._get_parameters(), cscripts.csresmap.csresmap._get_parameters(), cscripts.csresspec.csresspec._get_parameters(), cscripts.csroot2caldb.csroot2caldb._get_parameters(), cscripts.csscs.csscs._get_parameters(), cscripts.cssens.cssens._get_parameters(), cscripts.csspec.csspec._get_parameters(), cscripts.cssrcdetect.cssrcdetect._get_parameters(), cscripts.cstsdist.cstsdist._get_parameters(), cscripts.cstsmapmerge.cstsmapmerge._get_parameters(), cscripts.cstsmapsplit.cstsmapsplit._get_parameters(), cscripts.csviscube.csviscube._get_parameters(), cscripts.csworkflow.csworkflow._get_parameters(), cscripts.csebins.csebins._set_ebounds(), cscripts.csspec.csspec._set_ebounds(), cscripts.csiactobs.csiactobs.obs(), cscripts.csobsdef.csobsdef.obs(), ctobservation.obs(), and ctobservation.obs().

◆ save()

Member Data Documentation

◆ _ebounds


The documentation for this class was generated from the following file: