mirg_h

/*
** Copyright 1998, Universities Research Association.  All rights reserved.
** $Id: mirg.h,v 1.4 2006/02/01 16:47:38 devoy Exp $
*/
/****************************************************************************/
/* mirg.h
**
**	Function prototypes, types, and constants needed by users of the
**	ul_mirg library routines.
*/
/****************************************************************************/

#ifndef MIRG_DEFINED
#define MIRG_DEFINED

/****************************************************************************/
/*
**	Macros.
*/
/****************************************************************************/

#define MIRG_MAX_TIMES		((size_t)36)	/* Theoretical maximum.	*/
#define MIRG_ACTIVE_FILE	(-1)

/****************************************************************************/
/*
**	Function prototypes.
*/
/****************************************************************************/

#ifdef __cplusplus
extern "C" {
#endif

extern int mirg_cnv_time_energy(float time_v, float *energy, float *slope,
				int reset, int file_number);

extern int mirg_cnv_energy_time(float energy, float *time_v, size_t max_ret,
				size_t *num_ret, float *slope,
				int reset, int file_number);

extern int mirg_max_energy(float *energy, int reset, int file_number);

extern int mirg_min_energy(float *energy, int reset, int file_number);

extern int mirg_max_time(float *time_v, int reset, int file_number);

extern int mirg_min_time(float *time_v, int reset, int file_number);

#ifdef __cplusplus
}
#endif

/****************************************************************************/
/*
**	Equivalent name definitions.
*/
/****************************************************************************/

#define MIRG_CNV_TIME_ENERGY	mirg_cnv_time_energy
#define MIRG_CNV_ENERGY_TIME	mirg_cnv_energy_time
#define MIRG_MAX_ENERGY		mirg_max_energy
#define MIRG_MIN_ENERGY		mirg_min_energy
#define MIRG_MAX_TIME		mirg_max_time
#define MIRG_MIN_TIME		mirg_min_time

#endif