-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_decode.cpp
More file actions
25 lines (19 loc) · 931 Bytes
/
run_decode.cpp
File metadata and controls
25 lines (19 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <iostream>
#include "src/process_events.h"
// #include <pybind11/embed.h>
int main() {
// Make sure the python interpreter is initialized
// py::scoped_interpreter guard;
const uint16_t light_slot = 16;
const bool use_charge_roi = false;
const std::vector<uint16_t> channel_threshold(64, 0);
const bool skip_beam_roi = false;
ProcessEvents events(light_slot, use_charge_roi, channel_threshold, skip_beam_roi);
// const std::string filename = "/Users/jonsensenig/work/grams/daq_ana/jon_test/pGRAMS_bin_992.dat";
// const std::string filename = "/home/pgrams/data/nov2025_integration_data/pGRAMS_bin_435_0.dat";
const std::string filename = "/home/pgrams/data/sabertooth2_data/data/readout_data/pGRAMS_bin_196_0.dat";
events.OpenFile(filename);
events.GetNumEvents(5);
// for (size_t i = 0; i < 10; i++) { std::cout << i << " "; events.GetEvent(); }
return 0;
}