Changeset 11363


Ignore:
Timestamp:
07/12/11 20:33:08 (13 years ago)
Author:
tbretz
Message:
Enforced an ROI of 1 for the ADC display.
File:
1 edited

Legend:

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

    r11358 r11363  
    11061106            c->cd();
    11071107
    1108             TH1D hist("EventData", "", fEventData->Roi, -0.5, fEventData->Roi-0.5);
     1108            const int roi = fEventData->Roi>0 ? fEventData->Roi : 1;
     1109
     1110            TH1D hist("EventData", "", roi, -0.5, roi-0.5);
    11091111            hist.SetStats(kFALSE);
    11101112            //hist->SetBit(TH1::kNoTitle);
     
    11301132        h->SetXTitle(str.str().c_str());
    11311133
    1132         //str.str("");
    1133         //str << "Crate=" << crate << " Board=" << board << " Channel=" << channel << " [" << d.time() << "]" << endl;
    1134         //hist->SetTitle(str.str().c_str());
     1134        // str.str("");
     1135        // str << "Crate=" << crate << " Board=" << board << " Channel=" << channel << " [" << d.time() << "]" << endl;
     1136        // hist->SetTitle(str.str().c_str());
    11351137
    11361138        const uint32_t p = fAdcChannel->value()+fAdcBoard->value()*36+fAdcCrate->value()*360;
Note: See TracChangeset for help on using the changeset viewer.