Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TAdvancedGraphicsDialog.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/fitpanel:$Id$
0002 // Author: David Gonzalez Maline 11/12/2008
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT__TAdvancedGraphicsDialog__
0013 #define ROOT__TAdvancedGraphicsDialog__
0014 
0015 
0016 #include "TGFrame.h"
0017 #include "TGButton.h"
0018 #include "TGComboBox.h"
0019 #include "TGLabel.h"
0020 #include "TGTextEntry.h"
0021 #include "TGNumberEntry.h"
0022 #include "TGTab.h"
0023 #include "TGColorSelect.h"
0024 
0025 #include "TBackCompFitter.h"
0026 #include "TF1.h"
0027 
0028 enum EAdvanceGraphicsDialog {
0029    kAGD_TMETHOD,  kAGD_CONTOURMETHOD, kAGD_SCANMETHOD,
0030    kAGD_CONTPAR1, kAGD_CONTPAR2,      kAGD_CONTERR,
0031    kAGD_CONTOVER, kAGD_CONTCOLOR,
0032    kAGD_BDRAW, kAGD_BCLOSE,
0033    kAGD_SCANPAR, kAGD_SCANMIN, kAGD_SCANMAX,
0034 
0035    kAGD_PARCOUNTER = 1000
0036 };
0037 
0038 class TAdvancedGraphicsDialog : public TGTransientFrame {
0039 
0040 private:
0041    TGVerticalFrame  *fMainFrame;     ///< Main Vertical Frame
0042    TGTab            *fTab;           ///< Tab containing the available methods
0043 
0044    TGVerticalFrame  *fContourFrame;  ///< Contour Frame
0045    TGNumberEntry    *fContourPoints; ///< Number of points for the graph
0046    TGComboBox       *fContourPar1;   ///< Parameter 1 for Contour
0047    TGComboBox       *fContourPar2;   ///< Parameter 2 for Contour
0048    TGNumberEntry    *fContourError;  ///< Error Level for Contour
0049    TGCheckButton    *fContourOver;   ///< Superimpose the graphics
0050    TGColorSelect    *fContourColor;  ///< Color for the graph
0051 
0052    TGVerticalFrame  *fScanFrame;     ///< Scan Frame
0053    TGNumberEntry    *fScanPoints;    ///< Number of points for the graph
0054    TGComboBox       *fScanPar;       ///< Parameter for Scan
0055    TGNumberEntry    *fScanMin;       ///< Min Value for Contour
0056    TGNumberEntry    *fScanMax;       ///< Max Value for Contour
0057 
0058    TGVerticalFrame  *fConfFrame;     ///< Confidence Intervals Frame
0059    TGNumberEntry    *fConfLevel;     ///< Confidence Level
0060    TGColorSelect    *fConfColor;     ///< Color for the graph
0061 
0062    TGTextButton     *fDraw;          ///< ok button
0063    TGTextButton     *fClose;         ///< cancel button
0064 
0065    TBackCompFitter  *fFitter;        ///< Fitter.
0066 
0067    void CreateContourFrame();
0068    void CreateScanFrame();
0069    void CreateConfFrame();
0070    void AddParameters(TGComboBox*);
0071 
0072    void DrawContour();
0073    void DrawScan();
0074    void DrawConfidenceLevels();
0075 
0076    void ConnectSlots();
0077 
0078    TAdvancedGraphicsDialog(const TAdvancedGraphicsDialog&);  // Not implemented
0079    TAdvancedGraphicsDialog &operator= (const TAdvancedGraphicsDialog&); // Not implemented
0080 
0081 public:
0082    TAdvancedGraphicsDialog(const TGWindow *p, const TGWindow *main);
0083    ~TAdvancedGraphicsDialog() override;
0084 
0085    void DoDraw();
0086    void DoChangedScanPar(Int_t selected);
0087 
0088    ClassDefOverride(TAdvancedGraphicsDialog, 0)  // Simple input dialog
0089 };
0090 
0091 #endif
0092