1 saw 1.1 /*-----------------------------------------------------------------------------
2 * Copyright (c) 1993-1996 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 * Structures, defs, and prototypes for internal use by CTP.
14 *
15 * Author: Stephen Wood, CEBAF Hall C
16 *
17 * Revision History:
18 * $Log: thInternal.h,v $
|
19 saw 1.2 * Revision 1.8 1999/08/25 13:16:06 saw
20 * *** empty log message ***
21 *
22 * Revision 1.7 1999/03/01 19:54:48 saw
23 * Add weighted histograms
24 *
25 * Revision 1.6 1996/01/30 15:44:49 saw
26 * Add prototypes of calls needed by groups, add DEFAULTGRPSTR and ALLGRPSTR
|
27 saw 1.1 *
28 * Revision 1.5 1995/08/03 13:53:43 saw
29 * Add parameters for #, real, integer, double
30 *
31 * Revision 1.4 1994/09/27 20:07:54 saw
32 * Add SCALERSTR definition
33 *
34 * Revision 1.3 1994/07/21 20:48:27 saw
35 * Add "gethit" and "report" string definitions
36 *
37 * Revision 1.2 1993/11/22 21:21:07 saw
38 * Add QUOTECHARS definitions.
39 *
40 * Revision 1.1 1993/05/11 17:37:30 saw
41 * Initial revision
42 *
43 */
44
45 #ifndef _TH_INTERNAL_H
46 #define _TH_INTERNAL_H
47
48 saw 1.1 #ifndef _DAVAR_H
49 #include "daVar.h"
50 #endif
51
52 thStatus thLoadParameters(daVarStruct *var);
53 thStatus thBookGethits(daVarStruct *var);
54 thStatus thBookTests(daVarStruct *var);
55 thStatus thBookHists(daVarStruct *var);
56 thStatus thBookReports(daVarStruct *var);
57 thStatus thExecuteTestsV(daVarStruct *var);
58 thStatus thClearTestFlagsV(daVarStruct *var);
59 thStatus thClearTestScalersV(daVarStruct *var);
60 thStatus thIncTestScalersV(daVarStruct *var);
61 thStatus thExecuteHistsV(daVarStruct *var);
62 thStatus thClearHistsV(daVarStruct *var);
63 thStatus thExecuteaGethitBlock(daVarStruct *var);
|
64 saw 1.2 #ifdef ROOTTREE
65 thStatus thBookTree(daVarStruct *var);
66 thStatus thFillTreeV(daVarStruct *var);
67 thStatus thClearTreeV(daVarStruct *var);
68 thStatus thWriteTreeV(daVarStruct *var);
69 thStatus thCloseTreeV(daVarStruct *var);
70 #endif
|
71 saw 1.1
72 extern daVarStatus thWHandler();
73 extern daVarStatus thRHandler();
74
75 #define BEGINSTR "begin"
76 #define ENDSTR "end"
77 #define BLOCKSTR "block"
78 #define GROUPSTR "group"
79 #define DEFAULTGRPSTR "default"
80 #define ALLGRPSTR "all"
81 #define COMCHAR ';'
82 #define SPECIALCHAR '#'
83
84 /* Double and single quote chars */
85 #define QUOTECHAR1 0x22
86 #define QUOTECHAR2 0x27
87 #define PARMSTR "parm"
88 #define TESTSTR "test"
89 #define HISTSTR "hist"
90 #define UHISTSTR "uhist"
91 #define NTUPLESTR "ntup"
92 saw 1.1 #define EVENTSTR "event"
93 #define GETHITSTR "gethit"
94 #define REPORTSTR "report"
|
95 saw 1.2 #define TREESTR "tree"
|
96 saw 1.1 #define SCALERSTR "scaler"
97 #define REAL "real"
98 #define INTEGER "integer"
99 #define DOUBLE "double"
100
101 #define HTITLECHAR '$'
|
102 saw 1.2 #define WEIGHTCHAR '#'
|
103 saw 1.1
104 #define TH_SCALER "scaler"
105 #define TH_ND "nd"
106 #define TH_NX "nx"
107 #define TH_NY "ny"
108 #define TH_XMI "xmi"
109 #define TH_XMA "xma"
110 #define TH_YMI "ymi"
111 #define TH_YMA "yma"
112 #define TH_CONTEN "conten"
113 #define TH_X "x"
114 #define TH_Y "y"
115 #define TH_TEST "test"
116
117 #endif
118
|