Calibration constants of a singe ASIC channel: pedestals, gains and time axis.
More...
#include <TOPASICChannel.h>
Calibration constants of a singe ASIC channel: pedestals, gains and time axis.
Definition at line 25 of file TOPASICChannel.h.
◆ TOPASICChannel() [1/3]
◆ TOPASICChannel() [2/3]
Constructor with module ID, hardware channel number and number of ASIC windows.
- Parameters
-
moduleID | module ID |
channel | hardware channel number |
numWindows | number of active windows per ASIC |
Definition at line 41 of file TOPASICChannel.h.
41 :
43 {
44 for (
int i = 0; i < numWindows; i++)
m_pedestals.push_back(NULL);
45 }
unsigned m_channel
hardware channel number
std::vector< TOPASICPedestals * > m_pedestals
pedestals
◆ TOPASICChannel() [3/3]
Copy constructor.
Definition at line 50 of file TOPASICChannel.h.
50 : TObject()
51 {
52 *this = chan;
53 }
◆ ~TOPASICChannel()
Destructor.
Definition at line 84 of file TOPASICChannel.h.
85 {
87 if (window) delete window;
88 }
90 if (window) delete window;
91 }
92 }
std::vector< TOPASICGains * > m_gains
gains
◆ getChannel()
unsigned getChannel |
( |
| ) |
const |
|
inline |
Return hardware channel number.
- Returns
- channel number
Definition at line 145 of file TOPASICChannel.h.
◆ getGains() [1/2]
◆ getGains() [2/2]
Return gains of an ASIC window.
- Parameters
-
- Returns
- pointer to gains or NULL
Definition at line 178 of file TOPASICChannel.h.
179 {
182 return NULL;
183 }
TOPASICGains m_defaultGain
default gain
◆ getModuleID()
int getModuleID |
( |
| ) |
const |
|
inline |
◆ getNumofGoodWindows()
unsigned getNumofGoodWindows |
( |
| ) |
const |
|
inline |
Return number of good ASIC windows (e.g.
those with defined pedestals)
- Returns
- number of good windows
Definition at line 195 of file TOPASICChannel.h.
196 {
197 unsigned n = 0;
198 for (
auto& pedestal :
m_pedestals)
if (pedestal) n++;
199 return n;
200 }
◆ getNumofWindows()
unsigned getNumofWindows |
( |
| ) |
const |
|
inline |
Return number of ASIC windows.
- Returns
- number of windows
Definition at line 151 of file TOPASICChannel.h.
◆ getPedestals() [1/2]
Returns a vector of pedestals.
- Returns
- pedestals
Definition at line 171 of file TOPASICChannel.h.
◆ getPedestals() [2/2]
Return pedestals of an ASIC window.
- Parameters
-
- Returns
- pointer to pedestals or NULL
Definition at line 161 of file TOPASICChannel.h.
162 {
164 return NULL;
165 }
◆ operator=()
Assignment operator.
Definition at line 58 of file TOPASICChannel.h.
59 {
60 if (this != &chan) {
64 if (pedestals) delete pedestals;
65 }
68 if (pedestals) pedestals = new TOPASICPedestals(*pedestals);
69 }
71 if (gains) delete gains;
72 }
75 if (gains) gains = new TOPASICGains(*gains);
76 }
77 }
78 return *this;
79 }
◆ setGains()
Set gains of a single ASIC window.
- Parameters
-
- Returns
- true on success
Definition at line 118 of file TOPASICChannel.h.
119 {
122 }
123 unsigned i = gains.getASICWindow();
127 } else {
128 m_gains[i] =
new TOPASICGains(gains);
129 }
130 return true;
131 }
132 return false;
133 }
◆ setPedestals()
Set pedestals of a single ASIC window.
- Parameters
-
pedestals | ASIC window pedestals |
- Returns
- true on success
Definition at line 99 of file TOPASICChannel.h.
100 {
101 unsigned i = pedestals.getASICWindow();
105 } else {
107 }
108 return true;
109 }
110 return false;
111 }
◆ m_channel
◆ m_defaultGain
◆ m_gains
◆ m_moduleID
◆ m_pedestals
The documentation for this class was generated from the following file: