sipm-characterisation 0.1.0
SiPM characterisation for ePIC — IV/DCR/gain, laser, readout, irradiation
Loading...
Searching...
No Matches
general_utility.h File Reference
#include "graphutils.C"
Include dependency graph for general_utility.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  utility
 

Functions

template<typename arg_type >
void utility::swap_values (arg_type &first_element, arg_type &second_element)
 
template<typename arg_type >
arg_type utility::sq_sum (arg_type value)
 
template<typename arg_type , typename... Args>
arg_type utility::sq_sum (arg_type first, Args... args)
 
template<typename T >
T utility::round_digits (T value, int digits)
 
template<typename T >
std::vector< Tutility::merge (const std::vector< T > &vec1, const std::vector< T > &vec2)
 
std::vector< std::string > utility::get_folders (const std::string &dir_path)
 
void utility::readFileToMap (const std::string &filename, std::map< std::string, std::vector< std::string > > &dataMap)
 
void utility::readTxtToMap (const std::string &filename, std::map< std::string, std::vector< std::string > > &dataMap)
 
void utility::readCsvToMap (const std::string &filename, std::map< std::string, std::vector< std::string > > &dataMap)
 
std::array< std::array< float, 2 >, 2 > utility::get_intercept (float x0_1, float ex0_1, float x1_1, float ex1_1, float x0_2, float ex0_2, float x1_2, float ex1_2)
 
std::array< std::array< float, 2 >, 2 > utility::get_intercept_pol1_pol1 (float x0_1, float ex0_1, float x1_1, float ex1_1, float x0_2, float ex0_2, float x1_2, float ex1_2)
 
std::array< std::array< float, 2 >, 2 > utility::get_intercept (std::array< float, 2 > m1, std::array< float, 2 > q1, std::array< float, 2 > m2, std::array< float, 2 > q2)
 
std::array< std::array< float, 2 >, 2 > utility::get_intercept_x (float m, float em, float q, float eq)
 
std::array< std::array< float, 2 >, 2 > utility::get_intercept_y (float m, float em, float q, float eq)
 
std::array< std::array< float, 2 >, 2 > utility::get_intercept_pol1_pol2 (float x0_1, float ex0_1, float x1_1, float ex1_1, float x0_2, float ex0_2, float x1_2, float ex1_2, float x2_2, float ex2_2)
 
std::array< std::array< float, 2 >, 2 > utility::get_intercept_tf1 (TF1 *first_target, TF2 *second_target, double first_guess, double starting_coarse, double req_precision)
 
template<typename T , typename = typename std::enable_if<std::is_arithmetic<T>::value>::type>
std::map< std::string, std::array< T, 2 > > utility::average (std::vector< std::array< T, 2 > > list_of_measurements, bool skip_unfit_skim=false)