Bartender LYSO
Digitizer simulation for the LYSO calorimeter prototype
Loading...
Searching...
No Matches
configure.cc File Reference

Definition of the function Bartender_Configure() (and the auxiliary function extract_value()) More...

#include "configure.hh"
Include dependency graph for configure.cc:

Go to the source code of this file.

Functions

string extract_value (const string &line, const string &keyword)
 
void Bartender_Configure (const char *filename, BarLYSO *bar, SiPM *sipm)
 Reads and processes a specific file to populate members of the BarLYSO class and SiPM struct.
 

Detailed Description

Definition of the function Bartender_Configure() (and the auxiliary function extract_value())

Definition in file configure.cc.

Function Documentation

◆ Bartender_Configure()

void Bartender_Configure ( const char * filename,
BarLYSO * bar,
SiPM * sipm )

Reads and processes a specific file to populate members of the BarLYSO class and SiPM struct.

Reads the given file (filename) and loads relevant information into the members of BarLYSO and SiPM, such as Brand, Type Number, Supply Voltage (V), Temperature (T), Resistance (R_shaper), Gain, the name of the input file for best-fit waveform parameters and the @hPars settings.

Parameters
filenameThe name of the file (mac file) to be processed.
barBarLYSO class pointer
sipmSiPM struct pointer

Definition at line 44 of file configure.cc.

◆ extract_value()

string extract_value ( const string & line,
const string & keyword )

Definition at line 10 of file configure.cc.