sipm-characterisation 0.1.0
SiPM characterisation for ePIC — IV/DCR/gain, laser, readout, irradiation
Loading...
Searching...
No Matches
alcor::finecalibration Class Reference

#include <finetune.h>

Public Member Functions

 finecalibration ()
 
 finecalibration (std::string filename)
 
float get_intercept (std::string device, int cindex)
 
float get_slope (std::string device, int cindex)
 
void set_intercept (std::string device, int cindex, float intercept)
 
void set_slope (std::string device, int cindex, float slope)
 
float get_phase (std::string device, int cindex, float fine)
 
std::vector< floatget_guesstimate_correction_from_pulser (alcor::t_hit previous_hit, alcor::t_hit current_hit)
 
void calculate_correction_from_pulser (std::string filename, std::string device, int cindex)
 
void read_calibration (std::string filename)
 
void write_calibration (std::string filename)
 

Public Attributes

const std::vector< std::string > calibration_csv_fields = {"device", "cindex", "Intercept", "Slope"}
 
std::map< std::string, std::map< int, calibration_unit > > calibration_database
 

Constructor & Destructor Documentation

◆ finecalibration() [1/2]

alcor::finecalibration::finecalibration ( )
inline

◆ finecalibration() [2/2]

alcor::finecalibration::finecalibration ( std::string  filename)
inline

Member Function Documentation

◆ calculate_correction_from_pulser()

void alcor::finecalibration::calculate_correction_from_pulser ( std::string  filename,
std::string  device,
int  cindex 
)

is this is the first hit in the spill, store it and continue

◆ get_guesstimate_correction_from_pulser()

std::vector< float > alcor::finecalibration::get_guesstimate_correction_from_pulser ( alcor::t_hit  previous_hit,
alcor::t_hit  current_hit 
)

◆ get_intercept()

float alcor::finecalibration::get_intercept ( std::string  device,
int  cindex 
)
inline

◆ get_phase()

float alcor::finecalibration::get_phase ( std::string  device,
int  cindex,
float  fine 
)
inline

◆ get_slope()

float alcor::finecalibration::get_slope ( std::string  device,
int  cindex 
)
inline

◆ read_calibration()

void alcor::finecalibration::read_calibration ( std::string  filename)

◆ set_intercept()

void alcor::finecalibration::set_intercept ( std::string  device,
int  cindex,
float  intercept 
)
inline

◆ set_slope()

void alcor::finecalibration::set_slope ( std::string  device,
int  cindex,
float  slope 
)
inline

◆ write_calibration()

void alcor::finecalibration::write_calibration ( std::string  filename)

Member Data Documentation

◆ calibration_csv_fields

const std::vector<std::string> alcor::finecalibration::calibration_csv_fields = {"device", "cindex", "Intercept", "Slope"}

◆ calibration_database

std::map<std::string, std::map<int, calibration_unit> > alcor::finecalibration::calibration_database

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