gaps-online-software 0.10
online software for the TOF system for the GAPS experiment
Loading...
Searching...
No Matches
RBCalibration Struct Reference

#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< RBEventnoi_data
 The no-input data used to calculate the constants.
 
Vec< RBEventvcal_data
 The constant voltage data used to calculate the constants.
 
Vec< RBEventtcal_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
 

Detailed Description

A set of calibration constants for a single readoutboard

Member Function Documentation

◆ disable_eventdata()

static void RBCalibration::disable_eventdata ( )
static

Should the associated data be loaded in case it is available when from_bytestream is called?

◆ from_bytestream()

static RBCalibration RBCalibration::from_bytestream ( const Vec< u8 > &  bytestream,
u64 &  pos,
bool  discard_events = true 
)
static

Factory function for RBCalibration

Parameters

param

Parameters

◆ from_file()

static RBCalibration RBCalibration::from_file ( const String &  filename,
bool  discard_events = true 
)
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

◆ from_txtfile()

static RBCalibration RBCalibration::from_txtfile ( const String &  filename)
static

load a calibration from a txt file with constants This does not allow to load the data assigned to the calibration


The documentation for this struct was generated from the following file: