Ignore:
Timestamp:
05/23/12 21:12:27 (12 years ago)
Author:
tbretz
Message:
Added min, max and median to binary files and hence to graphics.
File:
1 edited

Legend:

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

    r13847 r13849  
    304304// ========================================================================
    305305
    306 class StateMachineSmartFACT : public StateMachineDim//, public DimInfoHandler
     306class StateMachineSmartFACT : public StateMachineDim
    307307{
    308308private:
     
    407407        void WriteBinary(const EventImp &d, const string &fname, const T &t, double scale, double offset=0)
    408408    {
     409        const Statistics stat(t);
     410
    409411        vector<uint8_t> val(t.size(), 0);
    410412        for (uint64_t i=0; i<t.size(); i++)
     
    424426        out << offset << '\n';
    425427        out << offset+scale << '\n';
     428        out << setprecision(3);
     429        out << stat.min << '\n';
     430        out << stat.med << '\n';
     431        out << stat.max << '\n';
    426432        out.write(ptr, val.size()*sizeof(uint8_t));
    427433
     
    13911397
    13921398        // -------------- System status --------------
    1393         if (fMcpConfigurationState>=5) // Idle
     1399        if (fDimMcp.state()>=5) // Idle
    13941400        {
    13951401            string col = kHtmlBlue;
Note: See TracChangeset for help on using the changeset viewer.