Changeset 12619 for trunk


Ignore:
Timestamp:
11/22/11 23:52:11 (13 years ago)
Author:
tbretz
Message:
Implemented writing to the header whether a corresponding drs-calib file should exist.
Location:
trunk/FACT++/src
Files:
3 edited

Legend:

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

    r12498 r12619  
    2525    void WriteFits();
    2626
     27    bool IsDrsCalib() const { return true; }
     28
    2729public:
    2830    DataCalib(const std::string &path, uint32_t id, DimDescribedService &dim, MessageImp &imp) : DataWriteFits(path, id, imp), fDim(dim)
  • trunk/FACT++/src/DataWriteFits.cc

    r12618 r12619  
    171171        // FIXME: I cannot write a double! WHY?
    172172        fFile.WriteKey("REFCLK", avg/cnt*2.048, "Average reference clock frequency in Hz");
     173
     174        fFile.WriteKey("DRSCALIB", IsDrsCalib(), "This file belongs to a DRS calibration");
     175
    173176    }
    174177    catch (const CCfits::FitsException &e)
  • trunk/FACT++/src/DataWriteFits.h

    r12605 r12619  
    2525    bool WriteFooter(RUN_TAIL *rt);
    2626
     27    virtual bool IsDrsCalib() const { return false; }
     28
    2729public:
    2830    DataWriteFits(const std::string path, uint32_t runid, MessageImp &imp) :
Note: See TracChangeset for help on using the changeset viewer.