![]() |
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 44 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 56 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 69 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 82 of file CalArray.h.
|
inline |
Definition at line 114 of file CalArray.h.
|
inline |
Definition at line 113 of file CalArray.h.
Definition at line 161 of file CalArray.h.
|
inline |
Definition at line 111 of file CalArray.h.
|
inline |
|
inline |
Return the pad subset number (e.g. ROC number)
Definition at line 98 of file CalArray.h.
calculate the sum of all elements
Definition at line 118 of file CalArray.h.
|
inline |
Definition at line 101 of file CalArray.h.
|
inline |
Definition at line 227 of file CalArray.h.
|
inline |
Multiply all val to all channels.
Definition at line 124 of file CalArray.h.
|
inline |
Multiply other to this channel by channel.
Definition at line 269 of file CalArray.h.
|
inline |
Multiply value to all channels.
Definition at line 338 of file CalArray.h.
|
inline |
Add other to this channel by channel.
Definition at line 237 of file CalArray.h.
|
inline |
Add value to all channels.
Definition at line 318 of file CalArray.h.
|
inline |
Subtract other from this channel by channel.
Definition at line 255 of file CalArray.h.
|
inline |
Subtract value from all channels.
Definition at line 328 of file CalArray.h.
|
inline |
Divide this by other channel by channel.
Definition at line 287 of file CalArray.h.
|
inline |
Divide value on all channels.
Definition at line 348 of file CalArray.h.
|
inline |
assigment to all channls
Definition at line 154 of file CalArray.h.
|
inline |
check for equality
Definition at line 306 of file CalArray.h.
|
inline |
Definition at line 110 of file CalArray.h.
|
inline |
Definition at line 100 of file CalArray.h.
|
inline |
Definition at line 217 of file CalArray.h.