Logo ROOT  
Reference Guide
TAdvancedGraphicsDialog.h
Go to the documentation of this file.
1// @(#)root/fitpanel:$Id$
2// Author: David Gonzalez Maline 11/12/2008
3
4/*************************************************************************
5 * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT__TAdvancedGraphicsDialog__
13#define ROOT__TAdvancedGraphicsDialog__
14
15//////////////////////////////////////////////////////////////////////////
16// //
17// TAdvancedGraphicsDialog //
18// //
19// Allows to create advanced graphics from the last fit made in the //
20// fitpanel. This includes the scan graphics, the contour and the //
21// confidence levels. //
22//////////////////////////////////////////////////////////////////////////
23
24#include "TGFrame.h"
25#include "TGButton.h"
26#include "TGComboBox.h"
27#include "TGLabel.h"
28#include "TGTextEntry.h"
29#include "TGNumberEntry.h"
30#include "TGTab.h"
31#include "TGColorSelect.h"
32
33#include "TBackCompFitter.h"
34#include "TF1.h"
35
42
43 kAGD_PARCOUNTER = 1000
44};
45
47
48private:
49 TGVerticalFrame *fMainFrame; // Main Vertical Frame
50 TGTab *fTab; // Tab containing the available methods
51
52 TGVerticalFrame *fContourFrame; // Contour Frame
53 TGNumberEntry *fContourPoints; // Number of points for the graph
54 TGComboBox *fContourPar1; // Parameter 1 for Contour
55 TGComboBox *fContourPar2; // Parameter 2 for Contour
56 TGNumberEntry *fContourError; // Error Level for Contour
57 TGCheckButton *fContourOver; // Superimpose the graphics
58 TGColorSelect *fContourColor; // Color for the graph
59
61 TGNumberEntry *fScanPoints; // Number of points for the graph
62 TGComboBox *fScanPar; // Parameter for Scan
63 TGNumberEntry *fScanMin; // Min Value for Contour
64 TGNumberEntry *fScanMax; // Max Value for Contour
65
66 TGVerticalFrame *fConfFrame; // Confidence Intervals Frame
67 TGNumberEntry *fConfLevel; // Confidence Level
68 TGColorSelect *fConfColor; // Color for the graph
69
70 TGTextButton *fDraw; // ok button
71 TGTextButton *fClose; // cancel button
72
74
75 void CreateContourFrame();
76 void CreateScanFrame();
77 void CreateConfFrame();
79
80 void DrawContour();
81 void DrawScan();
83
84 void ConnectSlots();
85
88
89public:
92
93 void DoDraw();
94 void DoChangedScanPar(Int_t selected);
95
96 ClassDef(TAdvancedGraphicsDialog, 0) // Simple input dialog
97};
98
99#endif
100
#define ClassDef(name, id)
Definition: Rtypes.h:322
EAdvanceGraphicsDialog
@ kAGD_CONTOURMETHOD
@ kAGD_SCANMETHOD
@ kAGD_CONTCOLOR
@ kAGD_PARCOUNTER
void DoDraw()
Calls the correspoding method, depending on the selected tab.
void CreateScanFrame()
Create the frame that contains all the necessary information for the Scan method.
void CreateConfFrame()
Create the frame that contains all the necessary information for the Confidence Level method.
void ConnectSlots()
Connect the slots (buttons mainly + specific methods)
void CreateContourFrame()
Create the frame that contains all the necessary information for the Contour method.
void DrawContour()
Generates all necessary data for the Contour method from its tab.
TAdvancedGraphicsDialog(const TAdvancedGraphicsDialog &)
void DoChangedScanPar(Int_t selected)
Changes the Min and Max default values of the scan method, depending on the selected parameter.
void DrawScan()
Generates all necessary data for the Scan method from its tab.
void DrawConfidenceLevels()
Generates all necessary data for the Scan method from its tab.
TAdvancedGraphicsDialog & operator=(const TAdvancedGraphicsDialog &)
Backward compatible implementation of TVirtualFitter.
Definition: TGTab.h:62
int main(int argc, char **argv)