pyLikelihood: Attributes and Methods

Browsing Code in ST 09-16-01 Build Area

BinnedObs   Contains the data for fitting.
BinnedAnalysis   Includes a BinnedObs as well as fit parameters (source model).
   
  • Inherits from AnalysisBase.
  • Imports pyLikelihood
  • Imprts SrcModel
AnalysisBase   Serves as common base for all types of fits, and part of the interface with fitting code (e.g., Fortran, c (or f2c), c++code such as MINUIT
   
  • Imports pyLikelihood
  • Imports SrcModel
pyLikelihood   SWIG-produced interface to MINUIT and other Fortran/C/C++ codes.

AnalysisBase

Attributes:

maxdist
   
     
tol  
   
     
covariance
   
     
covar_is_current
   
     
tolType
   
     
optObject
   
     
paramDict
   
     
xmlFile
   
     
output

(external) Methods:

setFitTolType
   
     
fit
   
     
optimize
   
     
minosError
   
     
par_index
   
     
getExtraSourceAttributes
   
     
Ts
   
     
Flux
   
     
energyFlux
   
     
energyFluxError
   
     
fluxError
   
     
setSpectrum
   
     
deleteSource
   
     
addSource
   
     
writeCountsSpectra
   
     
saveCurrentFit
   
     
restoreBestFit
   
     
NpredValue
   
     
total_nobs
   
     
SyncSrcParams
   
     
sourceNames
   
     
oplot
   
     
plot
   
     
plotSource
   
     
normPar
   
     
freePars
   
     
setFreeFlag
   
     
params
   
     
thaw
   
     
freeze
   
     
writeXML
   
     

Directly Uses from pyLikelihood:

ABSOLUTE
   
     
RELATIVE
   
     
OptimizerFactory_instance()
   
     
ParameterVector()
   
     
DoubleVector()
   
     
StringVector()
   
     
CountsSpectra(self.logLike)
   
     
PointSource_cast(src1).getDir()
   
     

BinnedObs

Attributes:

srcMaps
   
     
expCube
   
     
binnedExpMap
   
     
irfs
   
     
countsMap
   
     
observation
   
     

(external) Methods:

state
   
     

BinnedAnalysis

Attributes:

binnedData
   
     
srcModel
   
     
optimizer
   
     
logLike -> pyLikelihood.BinnedLikelihood()
   
     
model
   
     
energies
   
     
e_vals
 
     
nobs
   
     

(external) Methods:

state
   
     

UnbinnedObs

Attributes:

sctable
   
     
checkCuts
   
     
expMap
   
     
expCube
   
     
irfs
   
     
evfiles
   
     
evt_types
   
     
observation
   
     

(external) Methods:

state
   
     

UnbinnedAnalysis

Attributes:

observation
     
     
srcModel
   
     
optimizer  
   
     
logLike
   
     
model
   
     
eMin
   
     
eMax
   
     
nee
   
     
estep
   
     
energies
   
     
e_vals
   
     
nobs
   
     
disp
   
     
resids
   
     

(external) Methods:

state
   
     
state
   
     

 


 

Owned by:  

Last updated by: Chuck Patterson 03/04/2010