Changeset 15031 for trunk/FACT++


Ignore:
Timestamp:
03/11/13 22:34:41 (12 years ago)
Author:
tbretz
Message:
I cannot get the the size of the dim_data correctly eventhough it is packed... so I use an int32 instead so that everything is properly aligned.
File:
1 edited

Legend:

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

    r15022 r15031  
    736736            float Imed;
    737737            float Idev;
    738             uint16_t N;
     738            uint32_t N;
    739739            float Tdiff;
    740740
    741             dim_data() : Iavg(0), Irms(0), Imed(0), Idev(0), N(0), Tdiff(0) { memset(I, 0, sizeof(float)*416); }
    742         } __attribute__((__packed__));;
     741            dim_data() { memset(this, 0, sizeof(dim_data)); }
     742        } __attribute__((__packed__));
    743743
    744744        const int16_t *I = evt.Ptr<int16_t>();
     
    12991299                     "|I_med[uA]:Median calibrated current (320 channels)"
    13001300                     "|I_dev[uA]:Deviation of calibrated current (320 channels)"
    1301                      "|N:Number of valid values"
     1301                     "|N[uint16]:Number of valid values"
    13021302                     "|T_diff[s]:Time difference to calibration"),
    13031303        fSP(BIAS::kNumChannels),
Note: See TracChangeset for help on using the changeset viewer.