Changeset 11223 for trunk/FACT++/gui


Ignore:
Timestamp:
06/30/11 20:18:08 (13 years ago)
Author:
neise
Message:
Fixed ADC pipeline display
File:
1 edited

Legend:

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

    r11207 r11223  
    994994        int16_t StartTM;          // First Channel for TimeMark (sorted Hardware ID) ; -1 if not filled
    995995
    996         uint16_t Adc_Data[];     // final length defined by malloc ....
     996         int16_t Adc_Data[];     // final length defined by malloc ....
    997997
    998998    } __attribute__((__packed__));;
     
    10351035            //hist->SetBit(TH1::kNoTitle);
    10361036            hist.SetMarkerStyle(kFullDotMedium);
     1037            hist.SetMarkerColor(kBlue);
    10371038            hist.SetYTitle("Voltage [mV]");
    10381039            hist.GetXaxis()->CenterTitle();
     
    10401041            hist.SetMinimum(-1026);
    10411042            hist.SetMaximum(1025);
    1042             h = hist.DrawCopy("P");
     1043            h = hist.DrawCopy("PL");
    10431044            h->SetDirectory(0);
    10441045        }
    10451046
    10461047        ostringstream str;
    1047         str << "ADC Pipeline (start=" << dat.StartTM << ")";
     1048        str << "ADC Pipeline (start=" << dat.StartPix << ") " << dat.EventNum;
    10481049        h->SetXTitle(str.str().c_str());
    10491050
     
    10531054
    10541055        for (int i=0; i<dat.Roi; i++)
    1055             h->SetBinContent(i+1, dat.Adc_Data[i]*0.5-1024);
     1056            h->SetBinContent(i+1, dat.Adc_Data[i]*0.5);
    10561057
    10571058        c->Modified();
     
    12051206            tip << "<th>" << b << "</th>";
    12061207        tip << "</tr>";
     1208
     1209        /*
     1210         tip << "<tr>" << hex;
     1211         tip << "<th>" << d.ptr<uint16_t>()[0] << " " << (d.ptr<uint16_t>()[0]&bitmask) << "</th>";
     1212         tip << "<th>" << d.ptr<uint16_t>()[1] << " " << (d.ptr<uint16_t>()[1]&bitmask) << "</th>";
     1213         tip << "</tr>";
     1214         */
    12071215
    12081216        for (int c=0; c<4; c++)
Note: See TracChangeset for help on using the changeset viewer.