HGCal Test Beam  03a93d6239a951948e06fb3ef8dae4cbdebfad30
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
root.h
Go to the documentation of this file.
1 #ifndef ROOT_H
2 #define ROOT_H
3 // -*- C++ -*-
4 //
5 // Package: PhysicsTools/PyGui
6 /**
7  Description: A class of Root utilities. These functions are placed in a class
8  so that Reflex can handle overloading automatically. This is
9  just a collection of simple boilerplate code to lessen
10  clutter that I've written over the years.
11 
12  Implementation:
13  As simple as possible
14 */
15 //
16 // Original Author: Harrison B. Prosper
17 // Created: Fri Apr 04 2008
18 // $Id: root.h,v 1.1.1.1 2011/05/04 13:04:28 prosper Exp $
19 //
20 //
21 //-----------------------------------------------------------------------------
22 #include <iostream>
23 #include <vector>
24 #include <string>
25 //-----------------------------------------------------------------------------
26 #include "TGClient.h"
27 #include "TGWindow.h"
28 #include "TRootHelpDialog.h"
29 #include "TGFont.h"
30 #include "TGListBox.h"
31 #include "TGResourcePool.h"
32 #include "TGLUtil.h"
33 #include "TGLViewer.h"
34 //-----------------------------------------------------------------------------
35 
36 struct root
37 {
38  virtual ~root() {}
39  ///
40  static
41  const TGWindow* GetRoot();
42 
43  ///
44  static
45  const TGClient* Client();
46 
47  ///
48  static
49  Pixel_t Color(std::string name);
50 
51  ///
52  static
53  TGLBEntry* GLBEntry(TGListBox* listbox, std::string str, int id,
54  std::string font="helvetica-medium-r", int fontsize=14);
55 
56  ///
57  static
58  void DrawAxes(TGLViewer* viewer);
59 
60  ///
61  static
62  int SetSpectrumPalette();
63 };
64 
65 #endif
static Pixel_t Color(std::string name)
Definition: root.cc:35
static TGLBEntry * GLBEntry(TGListBox *listbox, std::string str, int id, std::string font="helvetica-medium-r", int fontsize=14)
Definition: root.cc:43
static void DrawAxes(TGLViewer *viewer)
Definition: root.cc:73
Definition: root.h:36
static const TGClient * Client()
Definition: root.cc:29
virtual ~root()
Definition: root.h:38
static const TGWindow * GetRoot()
Definition: root.cc:32
static int SetSpectrumPalette()
Definition: root.cc:82