Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:40

0001 // @(#)root/eve:$Id$
0002 // Author: Matevz Tadel 2007
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2007, 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_TEveCaloVizEditor
0013 #define ROOT_TEveCaloVizEditor
0014 
0015 #include "TGedFrame.h"
0016 
0017 class TEveCaloViz;
0018 class TEveCalo3D;
0019 class TGDoubleHSlider;
0020 class TEveGValuator;
0021 class TEveGDoubleValuator;
0022 class TGCheckButton;
0023 class TGRadioButton;
0024 class TGNumberEntry;
0025 
0026 class TGVerticalFrame;
0027 
0028 class TEveCaloVizEditor : public TGedFrame
0029 {
0030 private:
0031    TEveCaloVizEditor(const TEveCaloVizEditor&);            // Not implemented
0032    TEveCaloVizEditor& operator=(const TEveCaloVizEditor&); // Not implemented
0033    void MakeSliceInfo();
0034 
0035 protected:
0036    TEveCaloViz               *fM; // Model object.
0037 
0038    TGNumberEntry             *fFrameTransparency;
0039 
0040    TGRadioButton             *fPlotE;
0041    TGRadioButton             *fPlotEt;
0042 
0043    TGCheckButton             *fScaleAbs;
0044    TEveGValuator             *fMaxValAbs;
0045    TEveGValuator             *fMaxTowerH;
0046 
0047    TEveGDoubleValuator       *fEtaRng;
0048    TEveGValuator             *fPhi;
0049    TEveGValuator             *fPhiOffset;
0050 
0051    TGVerticalFrame           *fDataFrame;
0052    TGVerticalFrame           *fSliceFrame;
0053 
0054 public:
0055    TEveCaloVizEditor(const TGWindow *p = nullptr, Int_t width=170, Int_t height=30,
0056                      UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
0057    ~TEveCaloVizEditor() override {}
0058 
0059    void SetModel(TObject* obj) override;
0060 
0061    void DoMaxTowerH();
0062    void DoScaleAbs();
0063    void DoMaxValAbs();
0064 
0065    void DoPlot();
0066 
0067    void DoEtaRange();
0068    void DoPhi();
0069 
0070    void DoSliceThreshold();
0071    void DoSliceColor(Pixel_t color);
0072    void DoSliceTransparency(Long_t transp);
0073 
0074    ClassDefOverride(TEveCaloVizEditor, 0); // GUI editor for TEveCaloVizEditor.
0075 };
0076 
0077 /**************************************************************************/
0078 
0079 class TEveCalo3DEditor : public TGedFrame
0080 {
0081 private:
0082    TEveCalo3DEditor(const TEveCalo3DEditor&);            // Not implemented
0083    TEveCalo3DEditor& operator=(const TEveCalo3DEditor&); // Not implemented
0084 
0085 protected:
0086    TEveCalo3D          *fM; // Model object.
0087    TGNumberEntry       *fFrameTransparency;
0088 
0089 public:
0090    TEveCalo3DEditor(const TGWindow *p = nullptr, Int_t width=170, Int_t height=30,
0091                      UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
0092    ~TEveCalo3DEditor() override {}
0093 
0094    void SetModel(TObject* obj) override;
0095    void    DoFrameTransparency();
0096 
0097    ClassDefOverride(TEveCalo3DEditor, 0); // GUI editor for TEveCalo3DEditor.
0098 };
0099 
0100 #endif