|
TPCCLIB
|
Selecting parameter(s) and/or TAC(s) in PAR struct. More...
#include "tpcclibConfig.h"#include "tpcift.h"#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>#include <string.h>#include "tpcpar.h"Go to the source code of this file.
Functions | |
| int | parSelectTACs (PAR *d, const char *region_name, int reset, TPCSTATUS *status) |
| int | parSelectedTACs (PAR *d) |
| int | parSelectParameters (PAR *d, const char *par_name, int reset, TPCSTATUS *status) |
| int | parSelectedParameters (PAR *d) |
| int | parFindParameter (PAR *d, const char *par_name) |
| double | parGetParameter (PAR *d, const char *par_name, const int ti) |
| int | parGetParameterUnit (PAR *d, const char *par_name) |
| void | parValueRange (PAR *d, const int i, double *pmin, double *pmax) |
Selecting parameter(s) and/or TAC(s) in PAR struct.
Definition in file parselect.c.
| int parFindParameter | ( | PAR * | d, |
| const char * | par_name ) |
Searches PAR structure for the given parameter name (case insensitive).
| d | Pointer to PAR structure. |
| par_name | Name of the parameter. Comparison is case-insensitive, but otherwise strict match is required. |
Definition at line 219 of file parselect.c.
| double parGetParameter | ( | PAR * | d, |
| const char * | par_name, | ||
| const int | ti ) |
Searches PAR structure for the given parameter name (case insensitive).
| d | Pointer to PAR structure. |
| par_name | Name of the parameter. Comparison is case-insensitive, but otherwise strict match is required. |
| ti | TAC index [0..tacNr-1]. |
Definition at line 242 of file parselect.c.
| int parGetParameterUnit | ( | PAR * | d, |
| const char * | par_name ) |
Searches PAR structure for the given parameter name (case insensitive).
| d | Pointer to PAR structure. |
| par_name | Name of the parameter. Comparison is case-insensitive, but otherwise strict match is required. |
Definition at line 267 of file parselect.c.
| int parSelectedParameters | ( | PAR * | d | ) |
Get the number of selected parameters (sw!=0) in PAR structure.
| d | Pointer to PAR data |
Definition at line 199 of file parselect.c.
Referenced by parSelectByAnother().
| int parSelectedTACs | ( | PAR * | d | ) |
Get the number of selected TACs (sw!=0) in PAR structure.
| d | Pointer to PAR data. |
Definition at line 100 of file parselect.c.
Referenced by parSelectByAnother().
Select the parameter(s) in PAR struct that have matching name or number.
| d | Pointer to PAR structure. |
| par_name | Name of parameter, or parameter numbers (as string, for example '1-3' or '1,2,3'); string can be given with quotation marks. Enter NULL to select all parameters, or empty string to select parameters with empty name (which really should not exist). |
| reset | 1=Non-matching parameters are deselected, 0=Old selections are preserved. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 120 of file parselect.c.
Select the TAC(s) in PAR structure that have matching ID name or number.
| d | Pointer to PAR structure. |
| region_name | Name of TAC, or TAC numbers (as string, for example '1-3' or '1,2,3'); string can be given with quotation marks. Enter NULL to select all TACs, or empty string to select TACs with empty name fields (which really should not exist). |
| reset | 1=Non-matching VOIs are deselected, 0=Old selections are preserved. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 24 of file parselect.c.
| void parValueRange | ( | PAR * | d, |
| const int | i, | ||
| double * | pmin, | ||
| double * | pmax ) |
Finds the min and max parameter value in PAR structure.
| d | Pointer to PAR structure. |
| i | Parameter index [0..parNr-1]. |
| pmin | Pointer to min parameter value; NULL if not needed. |
| pmax | Pointer to max parameter value; NULL if not needed. |
Definition at line 287 of file parselect.c.