Changeset 12290 for trunk


Ignore:
Timestamp:
10/27/11 00:20:21 (13 years ago)
Author:
tbretz
Message:
Included EnablePatch and a default constructor for the trigger rates.
File:
1 edited

Legend:

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

    r12284 r12290  
    311311
    312312            return &pix;
     313        }
     314
     315        void EnablePatch(int idx, bool enable)
     316        {
     317            const int patch = idx%4;
     318            const int board = idx/4;
     319
     320            fBoard[board/10][board%10].fEnable[patch] = enable ? 0x1ff : 0;
    313321        }
    314322
     
    576584        float fOnTime;
    577585
     586        DimTriggerRates() { memset(this, 0, sizeof(DimTriggerRates)); }
     587
    578588        DimTriggerRates(const Header &h, const DynamicData &d, const StaticData &s, float rate, float et, float ot) :
    579589            fTimeStamp(h.fTimeStamp), fOnTimeCounter(d.fOnTimeCounter),
Note: See TracChangeset for help on using the changeset viewer.