~maddevelopers/mg5amcnlo/2.9.4

« back to all changes in this revision

Viewing changes to vendor/StdHEP/src/display/spaceP.h

pass to v2.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*******************************************************************************
 
2
*                                                                              *
 
3
* phaseP.h -- Nirvana Phase Space Event Display (private include file)         *
 
4
*                                                                              *
 
5
* Copyright (c) 1991 Universities Research Association, Inc.                   *
 
6
* All rights reserved.                                                         *
 
7
*                                                                              *
 
8
* This material resulted from work developed under a Government Contract and   *
 
9
* is subject to the following license:  The Government retains a paid-up,      *
 
10
* nonexclusive, irrevocable worldwide license to reproduce, prepare derivative *
 
11
* works, perform publicly and display publicly by or for the Government,       *
 
12
* including the right to distribute to other Government contractors.  Neither  *
 
13
* the United States nor the United States Department of Energy, nor any of     *
 
14
* their employees, makes any warrenty, express or implied, or assumes any      *
 
15
* legal liability or responsibility for the accuracy, completeness, or         *
 
16
* usefulness of any information, apparatus, product, or process disclosed, or  *
 
17
* represents that its use would not infringe privately owned rights.           *
 
18
*                                                                              *
 
19
* Fermilab Nirvana GUI Library                                                 *
 
20
* August 10, 1991                                                              *
 
21
*                                                                              *
 
22
* Written by Mark Edel                                                         *
 
23
*                                                                              *
 
24
*******************************************************************************/
 
25
/* SCCS ID: phaseP.h 1.1 4/6/92 */
 
26
 
 
27
                  
 
28
#define NATIVE_STDHEP 0 /* Std Hep file, native binary format */
 
29
#define ZEBRA_STDHEP 1 /* Std Hep file, Zebra FZ, exchange format */
 
30
#define XDR_STDHEP 2 /* Std Hep file, xdr binary format */
 
31
 
 
32
#define CHARSET (XmStringCharSet)XmSTRING_DEFAULT_CHARSET
 
33
 
 
34
#define MKSTRING(string) \
 
35
        XmStringCreateLtoR(string, XmSTRING_DEFAULT_CHARSET)
 
36
        
 
37
#define SET_ONE_RSRC(widget, name, newValue) \
 
38
{ \
 
39
    static Arg args[1] = {{name, (XtArgVal)0}}; \
 
40
    args[0].value = (XtArgVal)newValue; \
 
41
    XtSetValues(widget, args, 1); \
 
42
}       
 
43
 
 
44
#define GET_ONE_RSRC(widget, name, valueAddr) \
 
45
{ \
 
46
    static Arg args[1] = {{name, (XtArgVal)0}}; \
 
47
    args[0].value = (XtArgVal)valueAddr; \
 
48
    XtGetValues(widget, args, 1); \
 
49
}
 
50
 
 
51
#define SQR(n) ((n)*(n))
 
52
 
 
53
typedef struct  SpaceWindow {
 
54
    struct _SpaceWindow *next;
 
55
    Widget shell;
 
56
    Widget spin;
 
57
    Widget eventNumText;
 
58
    Widget eventSelectorLabel;
 
59
    Widget statsLabel;
 
60
    Widget scaleArea;
 
61
    Widget scaleLabel;
 
62
    Widget trackWindowShell;
 
63
    Widget trackWindowLabel;
 
64
    Widget vectorLengthPanel;
 
65
    Widget momtospaceSlider;
 
66
    Widget xTranslSlider;
 
67
    Widget yTransSlider;
 
68
    Widget zTranslider;
 
69
    Widget momToSpaceSlider;
 
70
    Widget longToTrSlider;
 
71
    Widget btnRotationPanel;
 
72
    Widget absRotationPanel;
 
73
    Widget absRotationLabel;
 
74
    Widget absRotFields[3];
 
75
    Widget eventTreeButton;
 
76
    Widget colorCodeButton;
 
77
    Widget dtree;
 
78
    Widget stree;
 
79
    Widget tree;
 
80
    Widget nodeWindowShell;
 
81
    Widget colorWindowShell;
 
82
    Widget dtreecolorcode;
 
83
    Widget streecolorcode;
 
84
    Widget treecolorcode;
 
85
    int *treehead;  /* too complicate to load the nodehep struct here  */
 
86
    int *treeheadcolorcode;
 
87
    int modetreedisp;
 
88
    GC scaleGC;
 
89
    GC highlightGC;
 
90
    int nEvents;
 
91
    int nMaxEvts;
 
92
    int eventNum;
 
93
    int selectedTrack;
 
94
    int *selectedNode;
 
95
    int selnodeNumTrack;
 
96
    int *selnodeTracks;
 
97
    double vectorLength;
 
98
    double buttonRotateDegrees;
 
99
    PhaseEvent event;
 
100
    PhaseEvent colorcode;
 
101
    int (*openProc)();
 
102
    void (*closeProc)();
 
103
    PhaseEvent *(*getEventProc)();
 
104
    void (*exitProc)();
 
105
    FILE file;
 
106
    int filemode;
 
107
    char *filename;
 
108
    int zebLrec;
 
109
    int xdrStream;
 
110
    char stable, unstable;
 
111
    char electrons, muons, gammas, neutrinos, quarks, hadrons, wz;
 
112
} PhaseWindow;
 
113
 
 
114
extern PhaseWindow *WindowList;
 
115
extern Display *TheDisplay;