Changeset 11900 for trunk/FACT++/gui


Ignore:
Timestamp:
08/12/11 13:51:28 (13 years ago)
Author:
tbretz
Message:
Made the viewer work also with older raw data files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc

    r11897 r11900  
    904904    entriesToCheck.push_back("CAMERA");
    905905    entriesToCheck.push_back("DAQ");
    906     entriesToCheck.push_back("ADCRANGE");
    907906    entriesToCheck.push_back("TSTART");
    908907    entriesToCheck.push_back("TSTOP");
    909     entriesToCheck.push_back("NBEVTOK");
    910     entriesToCheck.push_back("NBEVTREJ");
    911     entriesToCheck.push_back("NBEVTBAD");
     908    //entriesToCheck.push_back("ADCRANGE");
     909    //entriesToCheck.push_back("NBEVTOK");
     910    //entriesToCheck.push_back("NBEVTREJ");
     911    //entriesToCheck.push_back("NBEVTBAD");
    912912
    913913    for (vector<string>::const_iterator it=entriesToCheck.begin(); it != entriesToCheck.end(); it++)
     
    934934    camera = inputFile->GetStr("CAMERA");
    935935    daq = inputFile->GetStr("DAQ");
    936     adcCount = inputFile->GetFloat("ADCRANGE");
    937     nbOk = inputFile->GetInt("NBEVTOK");
    938     nbRej = inputFile->GetInt("NBEVTREJ");
    939     nbBad = inputFile->GetInt("NBEVTBAD");
     936    adcCount = inputFile->HasKey("ADCRANGE") ? inputFile->GetFloat("ADCRANGE") : 2000;
     937    nbOk = 0;//inputFile->GetInt("NBEVTOK");
     938    nbRej = 0;//inputFile->GetInt("NBEVTREJ");
     939    nbBad = 0;//inputFile->GetInt("NBEVTBAD");
    940940
    941941    eventNum = 0;
Note: See TracChangeset for help on using the changeset viewer.