-
Notifications
You must be signed in to change notification settings - Fork 0
/
mucal.h
executable file
·27 lines (23 loc) · 921 Bytes
/
mucal.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* mucal.h
* public interface for mucal.c
* boyan boyanov 2/95
*/
#ifndef MUCAL_H
#define MUCAL_H
/* the return codes for mucal */
enum {
no_error = 0, /* no error */
no_input, /* no name, no Z, no service */
no_zmatch, /* Z does not match name */
no_data, /* data not avaialble for requested material */
bad_z, /* bad Z given as input */
bad_name, /* invalid element name */
bad_energy, /* negative photon energy */
within_edge, /* photon energy within 1 eV of an edge */
m_edge_warn, /* M-edge data for a Z<30 element requested */
satan_rules=666 /* internal error of dubious origin :-) */
};
int name_z(char *name);
int mucal(char *name, int ZZ, double ephot, char unit, int pflag,
double *energy, double *xsec, double *fluo, char *errmsg);
#endif /* MUCAL_H */