A class for loading and converting MUX position parameters. More...
#include <TMUXPositionConverter.h>
Public Member Functions | |
| TMUXPositionConverter () | |
| Default constructor. | |
| ~TMUXPositionConverter () override | |
| Default destructor. | |
| Double_t | Convert (Double_t val) const override |
| Converts a value based on the loaded parameters. | |
| Bool_t | LoadString (const TString &str) override |
| Loads numeric parameters from a string. | |
| void | Print (Option_t *opt="") const override |
| Prints the loaded parameters. | |
Private Member Functions | |
| ClassDefOverride (TMUXPositionConverter, 2) | |
| ROOT macro for class definition. | |
Private Attributes | |
| std::vector< Double_t > | fParams |
| A vector to store the loaded numeric parameters. | |
A class for loading and converting MUX position parameters.
The TMUXPositionConverter class provides functionality to load numeric parameters from a file and convert MUX position signals into silicon-strip detector strip numbers using binary search. It inherits from TConverterBase.
Definition at line 40 of file TMUXPositionConverter.h.
|
default |
Default constructor.
|
overridedefault |
Default destructor.
|
private |
ROOT macro for class definition.
|
override |
Converts a value based on the loaded parameters.
| val | The input value to be converted. |
fParams is empty. If so, returns kInvalidI and logs a warning.std::lower_bound to find the first element in fParams not less than val.val is out of range (less than the first or greater than the last element), returns kInvalidI.val. Definition at line 35 of file TMUXPositionConverter.cc.
|
override |
Loads numeric parameters from a string.
| str | A TString containing the parameters to load. |
#.Double_t, and stores valid values in fParams.fParams is sorted to prepare for binary search operations. Definition at line 57 of file TMUXPositionConverter.cc.
|
override |
Prints the loaded parameters.
| opt | Optional string parameter (currently unused). |
Iterates over all elements in fParams and logs their values using ROOT's Info function.
Definition at line 103 of file TMUXPositionConverter.cc.
|
private |
A vector to store the loaded numeric parameters.
Definition at line 74 of file TMUXPositionConverter.h.