Changeset 18950


Ignore:
Timestamp:
03/05/18 12:24:00 (7 years ago)
Author:
tbretz
Message:
the ifdef's to compile without root support were not correctly placed - fixed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/FactGui.h

    r18589 r18950  
    945945
    946946    EVENT *fEventData;
    947 
     947#ifdef HAVE_ROOT
    948948    void DrawHorizontal(TH1 *hf, double xmax, TH1 &h, double scale)
    949949    {
     
    966966        }
    967967    }
    968 
     968#endif
    969969    void DisplayEventData()
    970970    {
     
    23262326
    23272327    // ======================= Rate Scan ====================================
    2328 
     2328#ifdef HAVE_ROOT
    23292329    TGraph fGraphRateScan[201];
    2330 
     2330#endif
    23312331    void UpdateRateScan(uint32_t th, const float *rates)
    23322332    {
     
    32013201    }
    32023202
     3203    void slot_RootEventProcessed(TObject *obj, unsigned int evt, TCanvas *canv)
     3204    {
    32033205#ifdef HAVE_ROOT
    3204     void slot_RootEventProcessed(TObject *obj, unsigned int evt, TCanvas *canv)
    3205     {
    32063206        // kMousePressEvent       // TCanvas processed QEvent mousePressEvent
    32073207        // kMouseMoveEvent        // TCanvas processed QEvent mouseMoveEvent
     
    32523252        //gSystem->ProcessEvents();
    32533253        //QWhatsThis::display(tipText)
     3254#endif
    32543255    }
    32553256
    32563257    void slot_RootUpdate()
    32573258    {
     3259#ifdef HAVE_ROOT
    32583260        gSystem->DispatchOneEvent(kFALSE);
    32593261        //gSystem->ProcessEvents();
    32603262        QTimer::singleShot(10, this, SLOT(slot_RootUpdate()));
    3261     }
    32623263#endif
     3264    }
    32633265
    32643266    void ChoosePatchThreshold(Camera &cam, int isw)
     
    35353537    }
    35363538
     3539#ifdef HAVE_ROOT
    35373540    TGraph fGraphFtmTemp[4];
    35383541    TGraph fGraphFtmRate;
     
    35403543    TGraph fGraphBoardRate[40];
    35413544
    3542 #ifdef HAVE_ROOT
    35433545    TH1 *DrawTimeFrame(const char *ytitle)
    35443546    {
Note: See TracChangeset for help on using the changeset viewer.