![]() |
gaps-online-software 0.10
online software for the TOF system for the GAPS experiment
|
#include <calibration.h>
Public Member Functions | |
Vec< Vec< f32 > > | voltages (const RBEvent &event, bool spike_cleaning=false) const |
get the voltage values for the traces of the event | |
Vec< Vec< f32 > > | nanoseconds (const RBEvent &event) const |
Vec< f32 > | voltages (const RBEvent &event, const u8 channel) const |
Vec< f32 > | nanoseconds (const RBEvent &event, const u8 channel) const |
std::string | to_string () const |
String representation for printing. | |
Static Public Member Functions | |
static RBCalibration | from_bytestream (const Vec< u8 > &bytestream, u64 &pos, bool discard_events=true) |
static RBCalibration | from_txtfile (const String &filename) |
static RBCalibration | from_file (const String &filename, bool discard_events=true) |
static void | disable_eventdata () |
Public Attributes | |
u8 | rb_id |
id of the RB this calibration belongs to | |
f32 | d_v |
voltage difference between noi and voltage data | |
u32 | timestamp |
timestamp when the calibration has been taken | |
Vec< Vec< f32 > > | v_offsets |
Vec< Vec< f32 > > | v_dips |
Vec< Vec< f32 > > | v_incs |
Vec< Vec< f32 > > | t_bin |
Vec< RBEvent > | noi_data |
The no-input data used to calculate the constants. | |
Vec< RBEvent > | vcal_data |
The constant voltage data used to calculate the constants. | |
Vec< RBEvent > | tcal_data |
The timing calibration data used to calculate the constants. | |
Static Public Attributes | |
static const u16 | HEAD = 0xAAAA |
static const u16 | TAIL = 0x5555 |
static bool | serialize_event_data |
A set of calibration constants for a single readoutboard
|
static |
Should the associated data be loaded in case it is available when from_bytestream is called?
|
static |
|
static |
Load a calibration from a file with a TofPacket of type RBCalibration in it. This should be the default way to load a calibration file
|
static |
load a calibration from a txt file with constants This does not allow to load the data assigned to the calibration