Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Here are example model definitions for Likelihood. Descriptions of the spectral models are described in the Workbook. See the Likelihood tutorial. An xml file containing these examples is attached.

Code Block
titlePowerLaw
  <source name="PowerLaw_source" type="PointSource">
<!-- point source units are cm^-2 s^-1 MeV^-1 -->
    <spectrum type="PowerLaw">
      <parameter free="1" max="1000.0" min="0.001" name="Prefactor" scale="1e-09" value="1"/>
      <parameter free="1" max="-1.0" min="-5." name="Index" scale="1.0" value="-2.1"/>
      <parameter free="0" max="2000.0" min="30.0" name="Scale" scale="1.0" value="100.0"/>
    </spectrum>
    <spatialModel type="SkyDirFunction">
      <parameter free="0" max="360." min="-360." name="RA" scale="1.0" value="83.45"/>
      <parameter free="0" max="90." min="-90." name="DEC" scale="1.0" value="21.72"/>
    </spatialModel>
  </source>

...