Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > 8c86774a3e53d77cc119f53a2b94a57a > files > 508

root-tutorial-5.34.14-2.fc18.noarch.rpm

/*
 * $Header$
 * $Log$
 *
 * Various routines, and global variables
 */

#ifndef __XSVARIOUS_H
#define __XSVARIOUS_H

#include <TROOT.h>
#include <TList.h>
#include <TCanvas.h>
#include <TRootEmbeddedCanvas.h>

#include "NdbMTReacDesc.h"
#include "NdbMTReactionXS.h"

#include "XSGraph.h"
#include "XSElements.h"

#ifdef __XSVARIOUS_CXX
#	define	EXT
#else
#	define	EXT	extern
#endif

/* ---------------- Global DEFINES ---------------------- */
#define PATHSEP			"/"
#define	ICONDIR			"icons" PATHSEP
#define	DBDIR			"db" PATHSEP
#define	PTBL_ICON		ICONDIR "ptable_s.xpm"
#define	ISOTOPES_DESC_FILE	DBDIR "isotopes.dat"
#define	MT_DESC_FILE		DBDIR "mt.dat"

/* ---------------- Global Variables -------------------- */
EXT	XSElements	*XSelements;
EXT	NdbMTReacDesc	*XSReactionDesc;
EXT	TList		*graphList;

// --- GUI vars ---
EXT	GCValues_t       gval;
EXT	FontStruct_t     fixedFontStruct;
EXT	FontStruct_t     blueFontStruct;
EXT	GContext_t       fixedGC;
EXT	GContext_t       blueBoldGC;

EXT     TCanvas			*canvas;
EXT	TRootEmbeddedCanvas	*canvasWindow;

/* ----------------- function prototypes ---------------- */
void	XSinitialise();
void	XSfinalise();

void	Add2GraphList( XSGraph *gr);

#undef EXT
#endif