pflib v3.9.0-rc3-11-g2537d8f
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
set_toa.h
1#pragma once
2
3#include "../pftool.h"
4
5/*
6 * TASKS.SET_TOA
7 *
8 * Do a charge injection run for a given channel, find the toa efficiency, and
9 * set the toa threshold to the first point where the toa efficiency is 1. This
10 * corresponds to a point above the pedestal where the pedestal shouldn't
11 * fluctuate and trigger the toa.
12 *
13 * Things that might be improved upon:
14 * the number of events nevents, which determines our toa efficiency.
15 * The calib value which defines a small pulse.
16 *
17 */
18void set_toa(Target* tgt, pflib::ROC& roc, int channel);
Definition ROC.h:18
encapulating a given setup's access rules
Definition Target.h:24
Shared declarations for all pftool menu commands.
static void roc(const std::string &cmd, Target *pft)
ROC menu commands.
Definition roc.cxx:119