Ignore:
Timestamp:
11/09/11 21:51:58 (13 years ago)
Author:
tbretz
Message:
Moved RunDescription to HeadersFAD, added it as a second argument to Open and write the run-type to the header.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/DataWriteRaw.cc

    r11893 r12477  
    11#include "DataWriteRaw.h"
    22
     3#include "HeadersFAD.h"
    34#include "FAD.h"
    45
     
    1819}
    1920
    20 bool DataWriteRaw::Open(RUN_HEAD *h)
     21bool DataWriteRaw::Open(const RUN_HEAD *h, const FAD::RunDescription &d)
    2122{
    2223    const string name = FormFileName("bin");
     
    5152
    5253    WriteBlockHeader(kRunHeader, 1, 0, sizeof(RUN_HEAD)-sizeof(PEVNT_HEADER*));
    53     fOut.write(reinterpret_cast<char*>(h), sizeof(RUN_HEAD)-sizeof(PEVNT_HEADER*));
     54    fOut.write(reinterpret_cast<const char*>(h), sizeof(RUN_HEAD)-sizeof(PEVNT_HEADER*));
    5455
    5556    for (int i=0; i<40; i++)
Note: See TracChangeset for help on using the changeset viewer.