Changeset 17352 for trunk/FACT++


Ignore:
Timestamp:
11/23/13 13:06:23 (11 years ago)
Author:
tbretz
Message:
Check the number of received ext1 triggers at the end of each run.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/takeRun.js

    r17016 r17352  
    267267    }
    268268
     269    // FIXME: What if the ext1 is not enabled in the configuration?
     270    if (type=="data")
     271    {
     272        var dim_trg = new Subscription("FAD_CONTROL/TRIGGER_COUNTER");
     273        var counter = dim_trg.get(3000);
     274
     275        // The check on physics and pedestal triggers is to ensure that
     276        // there was at least a chance to receive any event (e.g. in case
     277        // of an interrupt this might not be the case)
     278        if (counter.qos!=111 &&
     279            (counter.data['N_trg']>1000 || counter.data['N_ped']>5) &&
     280            counter.data['N_ext1']==0) // 'o' for open
     281            throw new Error("No ext1 triggers received during data taking... please check the reason and report in the logbook.");
     282        dim_trg.close();
     283    }
     284
    269285    return true;
    270286}
Note: See TracChangeset for help on using the changeset viewer.