Ignore:
Timestamp:
02/17/15 16:11:54 (10 years ago)
Author:
tbretz
Message:
Use delays from a text file and apply them to the data. Argument use_delays replaced by filename.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/fact/analysis/callisto.C

    r17894 r18132  
    11#include "MLogManip.h"
    22
    3 int callisto(const char *seqfile="seq/2012/01/23/20120123_023.seq", const char *outpath = "output", bool use_delays=false)
     3int callisto(const char *seqfile="seq/2012/01/23/20120123_023.seq", const char *outpath = "output", bool delays="resources/delays-20150217.txt")
    44{
    55    // ======================================================
     
    354354        return 11;
    355355
    356     if (use_delays)
    357         timecam.SetDelays(*evt1h.GetHist());
     356    if (delays)
     357    {
     358        TGraph g(delays);
     359        if (g.GetN()!=1440)
     360            return 41;
     361
     362        timecam.SetDelays(g);
     363    }
    358364
    359365    // ======================================================
Note: See TracChangeset for help on using the changeset viewer.