Bsoft 2.1.4
Bernard's software package
ps_model.h File Reference

Header file for postscript tools dealing with models. More...

#include "rwmodel.h"

Functions

int ps_model_views (Bstring &filename, Bmodel *model, int combined)
 Postscript plot of the distribution of model views. More...
 
int ps_model_symmetry_views (Bstring &filename, Bmodel *model, string &symmetry_string, int combined)
 Postscript plot of the distribution of model views. More...
 
int ps_model_fom_histogram (Bstring &filename, Bmodel *model)
 Postscript plot of the model component FOM histogram. More...
 
int ps_model_occupancy (Bmodel *model, double cutoff, int bins, int nfit, vector< double > &distrib, vector< double > &prob, double R, Bstring &filename)
 Generates a postscript plot for a model occupancy analysis. More...
 

Detailed Description

Header file for postscript tools dealing with models.

Author
Bernard Heymann
Date
Created: 20090203
Modified: 20190201

Function Documentation

◆ ps_model_fom_histogram()

int ps_model_fom_histogram ( Bstring filename,
Bmodel model 
)

Postscript plot of the model component FOM histogram.

Parameters
&filenameoutput postscript file name.
*modelmodel parameter structure.
Returns
int 0, error if <0.

◆ ps_model_occupancy()

int ps_model_occupancy ( Bmodel model,
double  cutoff,
int  bins,
int  nfit,
vector< double > &  distrib,
vector< double > &  prob,
double  R,
Bstring filename 
)

Generates a postscript plot for a model occupancy analysis.

Author
Daniel Nemecek
Bernard Heymann
Parameters
*modelmodel.
cutoffcoverage cutoff (if 0 don't show).
binsnumber of bins for histograms.
nfitnumber of binomial distributions to fit.
*distribdistribution array ((3+nfit)*(ncomp+1)).
*probweight and probability array (2*nfit).
Rbinomial fit residual.
&filenamepostscript file name.
Returns
int 0, <0 on error.
The distribution and probability arrays must already be allocated
and the content calculated with model_occupancy_distribution.

◆ ps_model_symmetry_views()

int ps_model_symmetry_views ( Bstring filename,
Bmodel model,
string &  symmetry_string,
int  combined 
)

Postscript plot of the distribution of model views.

Parameters
&filenameoutput postscript file name.
*modelmodel parameter structure.
&symmetry_stringsymmetry.
combinedflag to show all models combined.
Returns
int 0, error if <0.

◆ ps_model_views()

int ps_model_views ( Bstring filename,
Bmodel model,
int  combined 
)

Postscript plot of the distribution of model views.

Parameters
&filenameoutput postscript file name.
*modelmodel parameter structure.
combinedflag to show all models combined.
Returns
int 0, error if <0.