Changeset 12785 for trunk/FACT++/src


Ignore:
Timestamp:
01/30/12 16:59:42 (13 years ago)
Author:
tbretz
Message:
In addition to the information whether a drs file exist store also the progress (step) of teh drs calibration for convenience; fixed that trigger type==0 was counted as data-event which is wrong.
Location:
trunk/FACT++/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/DataCalib.h

    r12619 r12785  
    2525    void WriteFits();
    2626
    27     bool IsDrsCalib() const { return true; }
     27    int GetDrsStep() const { return fData.fStep; }
    2828
    2929public:
  • trunk/FACT++/src/DataWriteFits.cc

    r12634 r12785  
    172172        fFile.WriteKey("REFCLK", avg/cnt*2.048, "Average reference clock frequency in Hz");
    173173
    174         fFile.WriteKey("DRSCALIB", IsDrsCalib(), "This file belongs to a DRS calibration");
     174        fFile.WriteKey("DRSCALIB", GetDrsStep()>=0, "This file belongs to a DRS calibration");
     175        if (GetDrsStep()>=0)
     176            fFile.WriteKey("DRSSTEP", GetDrsStep(), "Step of the DRS calibration");
    175177
    176178    }
     
    201203        return false;
    202204
    203     if (!(e->TriggerType & FAD::EventHeader::kAll))
     205    if (e->TriggerType && !(e->TriggerType & FAD::EventHeader::kAll))
    204206        fTriggerCounter[0]++;
    205207    else  if ((e->TriggerType&FAD::EventHeader::kPedestal) && !(e->TriggerType&FAD::EventHeader::kTIM))
  • trunk/FACT++/src/DataWriteFits.h

    r12619 r12785  
    2525    bool WriteFooter(RUN_TAIL *rt);
    2626
    27     virtual bool IsDrsCalib() const { return false; }
     27    virtual int GetDrsStep() const { return -1; }
    2828
    2929public:
Note: See TracChangeset for help on using the changeset viewer.