![]() |
Project
|
#include <CalArray.h>
Public Member Functions | |
| CalArray ()=default | |
| Default constructor. | |
| ~CalArray ()=default | |
| Default destructor. | |
| CalArray (const PadSubset padSubset, const int padSubsetNumber) | |
| CalArray (const std::string_view name, const int padSubsetNumber) | |
| CalArray (const std::string_view name, const PadSubset padSubset, const int padSubsetNumber) | |
| PadSubset | getPadSubset () const |
| int | getPadSubsetNumber () const |
| void | setValue (const size_t channel, const T &value) |
| const T | getValue (const size_t channel) const |
| void | setValue (const size_t row, const size_t pad, const T &value) |
| const T | getValue (const size_t row, const size_t pad) const |
| void | setName (const std::string &name) |
| const std::string & | getName () const |
| const std::vector< T > & | getData () const |
| std::vector< T > & | getData () |
| template<typename U = T> | |
| const U | getSum () const |
| calculate the sum of all elements | |
| const CalArray< T > & | multiply (const T &val) |
| Multiply all val to all channels. | |
| const CalArray & | operator+= (const CalArray &other) |
| Add other to this channel by channel. | |
| const CalArray & | operator-= (const CalArray &other) |
| Subtract other from this channel by channel. | |
| const CalArray & | operator*= (const CalArray &other) |
| Multiply other to this channel by channel. | |
| const CalArray & | operator/= (const CalArray &other) |
| Divide this by other channel by channel. | |
| bool | operator== (const CalArray &other) const |
| check for equality | |
| const CalArray & | operator+= (const T &val) |
| Add value to all channels. | |
| const CalArray & | operator-= (const T &val) |
| Subtract value from all channels. | |
| const CalArray & | operator*= (const T &val) |
| Multiply value to all channels. | |
| const CalArray & | operator/= (const T &val) |
| Divide value on all channels. | |
| const CalArray & | operator= (const T &val) |
| assigment to all channls | |
| template<typename U = T> | |
| U | getMean () const |
Class to hold calibration data on a pad level
Calibration data per pad for a certain subset of pads: Full readout chamber, readout partition, or pad region
Definition at line 39 of file CalArray.h.
|
default |
Default constructor.
|
default |
Default destructor.
|
inline |
Constructor sets a default name depending on the pad subset type and number
| padSubset | pad subset type (e.g. PadSubset::ROC) |
| padSubsetNumber | number of the pad subset (e.g. 0 for ROC 0) |
Definition at line 51 of file CalArray.h.
|
inline |
Constructor assumes PadSubset::ROC
| name | name of the calibration array |
| padSubsetNumber | number of the pad subset (e.g. 0 for ROC 0) |
Definition at line 64 of file CalArray.h.
|
inline |
Constructor
| name | name of the calibration array |
| padSubsetNumber | number of the pad subset (e.g. 0 for ROC 0) |
Definition at line 77 of file CalArray.h.
|
inline |
Definition at line 105 of file CalArray.h.
|
inline |
Definition at line 104 of file CalArray.h.
Definition at line 152 of file CalArray.h.
|
inline |
Definition at line 102 of file CalArray.h.
|
inline |
|
inline |
Return the pad subset number (e.g. ROC number)
Definition at line 93 of file CalArray.h.
calculate the sum of all elements
Definition at line 109 of file CalArray.h.
|
inline |
Definition at line 96 of file CalArray.h.
|
inline |
Definition at line 218 of file CalArray.h.
|
inline |
Multiply all val to all channels.
Definition at line 115 of file CalArray.h.
|
inline |
Multiply other to this channel by channel.
Definition at line 260 of file CalArray.h.
|
inline |
Multiply value to all channels.
Definition at line 329 of file CalArray.h.
|
inline |
Add other to this channel by channel.
Definition at line 228 of file CalArray.h.
|
inline |
Add value to all channels.
Definition at line 309 of file CalArray.h.
|
inline |
Subtract other from this channel by channel.
Definition at line 246 of file CalArray.h.
|
inline |
Subtract value from all channels.
Definition at line 319 of file CalArray.h.
|
inline |
Divide this by other channel by channel.
Definition at line 278 of file CalArray.h.
|
inline |
Divide value on all channels.
Definition at line 339 of file CalArray.h.
|
inline |
assigment to all channls
Definition at line 145 of file CalArray.h.
|
inline |
check for equality
Definition at line 297 of file CalArray.h.
|
inline |
Definition at line 101 of file CalArray.h.
|
inline |
Definition at line 95 of file CalArray.h.
|
inline |
Definition at line 208 of file CalArray.h.