DDASToys for NSCLDAQ  6.2-000
mlinference.h
Go to the documentation of this file.
1 /*
2  This software is Copyright by the Board of Trustees of Michigan
3  State University (c) Copyright 2017.
4 
5  You may use this software under the terms of the GNU public license
6  (GPL). The terms of this license are described at:
7 
8  http://www.gnu.org/licenses/gpl.txt
9 
10  Authors:
11  Aaron Chester
12  Bashir Sadeghi
13  FRIB
14  Michigan State University
15  East Lansing, MI 48824-1321
16 */
17 
23 #ifndef MLINFERENCE_H
24 #define MLINFERENCE_H
25 
26 #include <cstdint>
27 #include <vector>
28 
29 #include <torch/script.h> // Can forward-declare?
30 
32 namespace ddastoys {
33 
34  struct FitInfo;
35 
37  namespace mlinference {
38 
52  void performInference(
53  FitInfo* pResult,
54  std::vector<uint16_t>& trace, unsigned saturation,
55  torch::jit::script::Module& module
56  );
57 
59  }
60 }
61 
62 #endif
void performInference(FitInfo *pResult, std::vector< uint16_t > &trace, unsigned saturation, torch::jit::script::Module &module)
Perform ML inference to determine the pulse parameters.
Definition: mlinference.cpp:189