TAdvancedGraphicsDialog.h

Go to the documentation of this file.
00001 // @(#)root/fitpanel:$Id: TAdvancedGraphicsDialog.h 31212 2009-11-16 17:30:21Z moneta $
00002 // Author: David Gonzalez Maline 11/12/2008
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT__TAdvancedGraphicsDialog__
00013 #define ROOT__TAdvancedGraphicsDialog__
00014 
00015 //////////////////////////////////////////////////////////////////////////
00016 //                                                                      //
00017 // TAdvancedGraphicsDialog                                              //
00018 //                                                                      //
00019 // Allows to create advanced graphics from the last fit made in the     //
00020 // fitpanel. This includes the scan graphics, the contour and the       //
00021 // confidence levels.                                                   //
00022 //////////////////////////////////////////////////////////////////////////
00023 
00024 #include "TGFrame.h"
00025 #include "TTreeInput.h"
00026 #include "TGButton.h"
00027 #include "TGComboBox.h"
00028 #include "TGLabel.h"
00029 #include "TGTextEntry.h"
00030 #include "TGNumberEntry.h"
00031 #include "TGTab.h"
00032 #include "TGColorSelect.h"
00033 
00034 #include "TBackCompFitter.h"
00035 #include "TF1.h"
00036 
00037 enum EAdvanceGraphicsDialog {
00038    kAGD_TMETHOD,  kAGD_CONTOURMETHOD, kAGD_SCANMETHOD,
00039    kAGD_CONTPAR1, kAGD_CONTPAR2,      kAGD_CONTERR,
00040    kAGD_CONTOVER, kAGD_CONTCOLOR,
00041    kAGD_BDRAW, kAGD_BCLOSE,
00042    kAGD_SCANPAR, kAGD_SCANMIN, kAGD_SCANMAX,
00043 
00044    kAGD_PARCOUNTER = 1000
00045 };
00046 
00047 class TAdvancedGraphicsDialog : public TGTransientFrame {
00048 
00049 private:
00050    TGVerticalFrame  *fMainFrame;     // Main Vertical Frame
00051    TGTab            *fTab;           // Tab containing the available methods
00052 
00053    TGVerticalFrame  *fContourFrame;  // Contour Frame
00054    TGNumberEntry    *fContourPoints; // Number of points for the graph
00055    TGComboBox       *fContourPar1;   // Parameter 1 for Contour
00056    TGComboBox       *fContourPar2;   // Parameter 2 for Contour
00057    TGNumberEntry    *fContourError;  // Error Level for Contour
00058    TGCheckButton    *fContourOver;   // Superimpose the graphics
00059    TGColorSelect    *fContourColor;  // Color for the graph
00060 
00061    TGVerticalFrame  *fScanFrame;     // Scan Frame
00062    TGNumberEntry    *fScanPoints;    // Number of points for the graph
00063    TGComboBox       *fScanPar;       // Parameter for Scan
00064    TGNumberEntry    *fScanMin;       // Min Value for Contour
00065    TGNumberEntry    *fScanMax;       // Max Value for Contour
00066 
00067    TGVerticalFrame  *fConfFrame;     // Confidence Intervals Frame
00068    TGNumberEntry    *fConfLevel;     // Confidence Level
00069    TGColorSelect    *fConfColor;     // Color for the graph
00070 
00071    TGTextButton     *fDraw;          // ok button
00072    TGTextButton     *fClose;         // cancel button
00073 
00074    TBackCompFitter  *fFitter;        // Fitter.
00075 
00076    void CreateContourFrame();
00077    void CreateScanFrame();
00078    void CreateConfFrame();
00079    void AddParameters(TGComboBox*);
00080 
00081    void DrawContour();
00082    void DrawScan();
00083    void DrawConfidenceLevels();
00084 
00085    void ConnectSlots();
00086 
00087    TAdvancedGraphicsDialog(const TAdvancedGraphicsDialog&);  // Not implemented
00088    TAdvancedGraphicsDialog &operator= (const TAdvancedGraphicsDialog&); // Not implemented
00089 
00090 public:
00091    TAdvancedGraphicsDialog(const TGWindow *p, const TGWindow *main);
00092    ~TAdvancedGraphicsDialog();
00093 
00094    void DoDraw();
00095    void DoChangedScanPar(Int_t selected);
00096 
00097    ClassDef(TAdvancedGraphicsDialog, 0)  // Simple input dialog
00098 };
00099 
00100 #endif
00101 

Generated on Tue Jul 5 14:19:19 2011 for ROOT_528-00b_version by  doxygen 1.5.1