(file) Return to th.h CVS log (file) (dir) Up to [HallC] / Analyzer / CTP

 1 saw   1.1 /*-----------------------------------------------------------------------------
 2            * Copyright (c) 1993 Southeastern Universities Research Association,
 3            *                    Continuous Electron Beam Accelerator Facility
 4            *
 5            * This software was developed under a United States Government license
 6            * described in the NOTICE file included as part of this distribution.
 7            *
 8            * Stephen A. Wood, 12000 Jefferson Ave., Newport News, VA 23606
 9            * Email: saw@cebaf.gov  Tel: (804) 249-7367  Fax: (804) 249-5800
10            *-----------------------------------------------------------------------------
11            * 
12            * Description:
13            *  Include file with prototypes for CTP routines.
14            *	
15            * Author:  Stephen Wood, CEBAF Hall C
16            *
17            * Revision History:
18            *   $Log: th.h,v $
19 saw   1.2  *   Revision 1.6  1999/08/25 13:16:05  saw
20            *   *** empty log message ***
21            *
22            *   Revision 1.5  1996/01/30 15:39:45  saw
23            *   Add new prototypes: group calls, class calls used by groups
24            *
25 saw   1.1  *	  Revision 1.4  1995/08/03  13:47:48  saw
26            *	  Add Error code for integer overflow
27            *
28            *	  Revision 1.3  1994/11/07  14:40:22  saw
29            *	  Add error code S_TH_UNREG
30            *
31            *	  Revision 1.2  1994/09/27  20:34:46  saw
32            *	  Define STDERR to be stdout
33            *
34            *	  Revision 1.1  1993/05/11  15:10:08  saw
35            *	  Initial revision
36            *
37            */
38           
39           #ifndef _TH_H
40           #define _TH_H
41           /* Variable registration */
42           
43 saw   1.2 typedef int thStatus;		/* Return status type */
44 saw   1.1 
45           /* General booking routines */
46           thStatus thLoad(char *fname);
47           thStatus thOBook();
48           thStatus thBook();
49           
50           
51           /* Test package routines */
52           typedef enum {
53             WALK_DISPLAY, WALK_CLEAR_FLAGS, WALK_CLEAR_SCALERS, WALK_EXECUTE,
54             WALK_REMOVE, WALK_INCREMENT_SCALERS} WALKOP;
55           
56           thStatus thWalkTree(char *block_name, WALKOP walkop);
57           thStatus thExecuteTests(char *block_name);
58           thStatus thClearTestFlags(char *block_name);
59           thStatus thClearTestScalers(char *block_name);
60           thStatus thIncTestScalers(char *block_name);
61           /*#define thExecuteTests(block_name) thWalkTree(block_name,WALK_EXECUTE)*/
62           /*#define thIncTestScalers(block_name) \
63             thWalkTree(block_name,WALK_INCREMENT_SCALERS)*/
64           #define thDisplayTests(block_name) thWalkTree(block_name,WALK_DISPLAY)
65 saw   1.1 #define thRemoveTests(block_name) thWalkTree(block_name,WALK_REMOVE)
66           /*#define thClearTestFlags(block_name) \
67             thWalkTree(block_name,WALK_CLEAR_FLAGS)*/
68           /*#define thClearTestScalers(block_name) \
69             thWalkTree(block_name,WALK_CLEAR_SCALERS)*/
70           thStatus thExecuteGroup(char *group_name);
71           thStatus thClearGroup(char *group_name);
72           thStatus thClearScalersGroup(char *group_name);
73           thStatus thIncrementScalersGroup(char *group_name);
74 saw   1.2 thStatus thWriteGroup(char *group_name);
75           thStatus thCloseGroup(char *group_name);
76 saw   1.1 
77           /* Histogram package routines */
78           thStatus thExecuteHists(char *block_name);
79           thStatus thClearHists(char *block_name);
80           int thGetHistID(char *name);
81           thStatus thHistAliasWrite(char *fname);
82           
83           #ifndef S_SUCCESS
84           #define S_SUCCESS 0
85           #define S_FAILURE -1
86           #endif
87           #define S_TH_UNREG 1            /* Unregistered variable in test expression */
88           #define S_INTOVF 2
89           
90           #endif
91           #define STDERR stdout

Analyzer/Replay: Mark Jones, Documents: Stephen Wood
Powered by
ViewCVS 0.9.2-cvsgraph-1.4.0