pflib v3.9.5-18-g30f792c
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
inv_vref_lund.h
1#pragma once
2
3#include "../daq_run.h"
4#include "pflib/Target.h"
5
10namespace pflib::algorithm {
11
21 public:
22 DataFitter();
23
24 // Member functions
25
26 void sort_and_append(std::vector<int>& inv_vrefs, std::vector<int>& pedestals,
27 std::vector<double>& stds, int& step);
28 int fit(int target);
29
30 // Member variables
31
32 struct Point {
33 int x_;
34 int y_;
35 double LH_;
36 double RH_;
37 };
38 std::vector<Point> linear_;
39 std::vector<Point> nonlinear_;
40 double LH_median_;
41 double LH_std_median_;
42 double RH_median_;
43};
44
49void get_param(Target* tgt, ROC& roc, DecodeAndBuffer& buffer, int& nevents,
50 int& step, std::vector<int>& pedestals_l0,
51 std::vector<double>& stds_l0, std::vector<int>& pedestals_l1,
52 std::vector<double>& stds_l1, std::vector<int>& inv_vrefs,
53 int& noinv_vref);
54
63 Target* tgt, ROC& roc);
64
65} // namespace pflib::algorithm
Consume an event packet, decode it, and save to buffer.
Definition daq_run.h:132
Definition ROC.h:19
encapulating a given setup's access rules
Definition Target.h:25
Data class that stores information about each point in a 1d space.
Definition inv_vref_lund.h:20
housing of higher-level methods for repeatable tasks
Definition get_calibs.cxx:10
std::map< std::string, std::map< std::string, uint64_t > > inv_vref_lund(Target *tgt, ROC &roc)
Find the inv_vref and noinv_vref parameters.
Definition inv_vref_lund.cxx:160
void get_param(Target *tgt, ROC &roc, DecodeAndBuffer &buffer, int &nevents, int &step, std::vector< int > &pedestals_l0, std::vector< double > &stds_l0, std::vector< int > &pedestals_l1, std::vector< double > &stds_l1, std::vector< int > &inv_vrefs, int &noinv_vref)
Collect inv_vref data for the constant input noinv_vref parameter.
Definition inv_vref_lund.cxx:120
static void roc(const std::string &cmd, Target *pft)
ROC menu commands.
Definition roc.cxx:122
Definition inv_vref_lund.h:32