![]() |
Project
|
#include <TrapSimulator.h>
Classes | |
| struct | FilterReg |
| struct | FitReg |
Public Types | |
| enum | { PRINTRAW = 1 , PRINTFILTERED = 2 , PRINTDETECTED = 4 , PRINTFOUND = 8 } |
| enum | { PLOTRAW = 1 , PLOTHITS = 2 , PLOTTRACKLETS = 4 } |
Public Member Functions | |
| TrapSimulator ()=default | |
| TrapSimulator (const TrapSimulator &)=delete | |
| TrapSimulator & | operator= (const TrapSimulator &)=delete |
| ~TrapSimulator ()=default | |
| void | init (TrapConfig *trapconfig, int det, int rob, int mcm) |
| bool | checkInitialized () const |
| void | reset () |
| void | noiseTest (int nsamples, int mean, int sigma, int inputGain=1, int inputTail=2) |
| int | getDataRaw (int iadc, int timebin) const |
| int | getDataFiltered (int iadc, int timebin) const |
| int | getZeroSupressionMap (int iadc) const |
| bool | isDataSet () |
| void | setData (int iadc, const ArrayADC &adc, unsigned int digitIdx) |
| void | setBaselines () |
| void | setDataPedestal (int iadc) |
| void | setAdditionalBaseline (int adc) |
| int | getAdditionalBaseline () const |
| void | setUseFloatingPointForQ () |
| void | setChargeScalingFactor (int scale) |
| int | getDetector () const |
| int | getRobPos () const |
| int | getMcmPos () const |
| int | getNumberOfTimeBins () const |
| int | packData (std::vector< uint32_t > &rawdata, uint32_t offset) const |
| void | filter () |
| void | zeroSupressionMapping () |
| void | tracklet () |
| void | filterPedestal () |
| void | filterGain () |
| void | filterTail () |
| void | filterPedestalInit (int baseline=10) |
| void | filterGainInit () |
| void | filterTailInit (int baseline=-1) |
| unsigned short | filterPedestalNextSample (int adc, int timebin, unsigned short value) |
| unsigned short | filterGainNextSample (int adc, unsigned short value) |
| unsigned short | filterTailNextSample (int adc, unsigned short value) |
| void | addHitToFitreg (int adc, unsigned short timebin, unsigned short qtot, short ypos) |
| void | calcFitreg () |
| void | trackletSelection () |
| void | fitTracklet () |
| std::vector< Tracklet64 > & | getTrackletArray64 () |
| std::vector< unsigned short > & | getTrackletDigitCount () |
| std::vector< unsigned int > & | getTrackletDigitIndices () |
| void | print (int choice) const |
| void | draw (int choice, int index) |
| void | printFitRegXml (std::ostream &os) const |
| void | printTrackletsXml (std::ostream &os) const |
| void | printAdcDatTxt (std::ostream &os) const |
| void | printAdcDatHuman (std::ostream &os) const |
| void | printAdcDatXml (std::ostream &os) const |
| void | printAdcDatDatx (std::ostream &os, bool broadcast=kFALSE, int timeBinOffset=-1) const |
Static Public Member Functions | |
| static std::ostream & | cfdat (std::ostream &os) |
| static std::ostream & | raw (std::ostream &os) |
| static std::ostream & | text (std::ostream &os) |
| static bool | readPackedConfig (TrapConfig *cfg, int hc, unsigned int *data, int size) |
Static Public Attributes | |
| static constexpr int | mgkDmemAddrLUTcor0 = 0xC02A |
| static constexpr int | mgkDmemAddrLUTcor1 = 0xC028 |
| static constexpr int | mgkDmemAddrLUTnbins = 0xC029 |
| static constexpr int | mgkDmemAddrLUTStart = 0xC100 |
| static constexpr int | mgkDmemAddrLUTEnd = 0xC3FF |
| static constexpr int | mgkDmemAddrLUTLength = 0xC02B |
| static constexpr int | mgkDmemAddrTrackletStart = 0xC0E0 |
| static constexpr int | mgkDmemAddrTrackletEnd = 0xC0E3 |
| static constexpr int | mgkDmemAddrDeflCorr = 0xc022 |
| static constexpr int | mgkDmemAddrNdrift = 0xc025 |
| static constexpr int | mgkDmemAddrDeflCutStart = 0xc030 |
| static constexpr int | mgkDmemAddrDeflCutEnd = 0xc055 |
| static constexpr int | mgkDmemAddrTimeOffset = 0xc3fe |
| static constexpr int | mgkDmemAddrYcorr = 0xc3ff |
| static constexpr int | mQ2Startbin = 3 |
| static constexpr int | mQ2Endbin = 5 |
| static const int | mgkFormatIndex = std::ios_base::xalloc() |
| static const int | mgkAddDigits = 2 |
| static const std::array< unsigned short, 4 > | mgkFPshifts {11, 14, 17, 21} |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const TrapSimulator &mcm) |
Definition at line 40 of file TrapSimulator.h.
| anonymous enum |
| Enumerator | |
|---|---|
| PRINTRAW | |
| PRINTFILTERED | |
| PRINTDETECTED | |
| PRINTFOUND | |
Definition at line 43 of file TrapSimulator.h.
| anonymous enum |
| Enumerator | |
|---|---|
| PLOTRAW | |
| PLOTHITS | |
| PLOTTRACKLETS | |
Definition at line 47 of file TrapSimulator.h.
|
default |
|
delete |
|
default |
| void TrapSimulator::addHitToFitreg | ( | int | adc, |
| unsigned short | timebin, | ||
| unsigned short | qtot, | ||
| short | ypos | ||
| ) |
Definition at line 1187 of file TrapSimulator.cxx.
| void TrapSimulator::calcFitreg | ( | ) |
Definition at line 1225 of file TrapSimulator.cxx.
|
static |
Definition at line 126 of file TrapSimulator.cxx.
|
inline |
Definition at line 112 of file TrapSimulator.h.
| void TrapSimulator::draw | ( | int | choice, |
| int | index | ||
| ) |
Definition at line 570 of file TrapSimulator.cxx.
| void TrapSimulator::filter | ( | ) |
Definition at line 813 of file TrapSimulator.cxx.
| void TrapSimulator::filterGain | ( | ) |
Definition at line 985 of file TrapSimulator.cxx.
| void TrapSimulator::filterGainInit | ( | ) |
Definition at line 920 of file TrapSimulator.cxx.
| unsigned short TrapSimulator::filterGainNextSample | ( | int | adc, |
| unsigned short | value | ||
| ) |
Definition at line 933 of file TrapSimulator.cxx.
| void TrapSimulator::filterPedestal | ( | ) |
Definition at line 898 of file TrapSimulator.cxx.
| void TrapSimulator::filterPedestalInit | ( | int | baseline = 10 | ) |
Definition at line 842 of file TrapSimulator.cxx.
| unsigned short TrapSimulator::filterPedestalNextSample | ( | int | adc, |
| int | timebin, | ||
| unsigned short | value | ||
| ) |
Definition at line 856 of file TrapSimulator.cxx.
| void TrapSimulator::filterTail | ( | ) |
Definition at line 1088 of file TrapSimulator.cxx.
| void TrapSimulator::filterTailInit | ( | int | baseline = -1 | ) |
Definition at line 996 of file TrapSimulator.cxx.
| unsigned short TrapSimulator::filterTailNextSample | ( | int | adc, |
| unsigned short | value | ||
| ) |
Definition at line 1038 of file TrapSimulator.cxx.
| void TrapSimulator::fitTracklet | ( | ) |
Definition at line 1524 of file TrapSimulator.cxx.
|
inline |
Definition at line 133 of file TrapSimulator.h.
|
inline |
Definition at line 122 of file TrapSimulator.h.
|
inline |
Definition at line 120 of file TrapSimulator.h.
|
inline |
Definition at line 138 of file TrapSimulator.h.
|
inline |
Definition at line 140 of file TrapSimulator.h.
|
inline |
Definition at line 141 of file TrapSimulator.h.
|
inline |
Definition at line 139 of file TrapSimulator.h.
|
inline |
Definition at line 176 of file TrapSimulator.h.
|
inline |
Definition at line 177 of file TrapSimulator.h.
|
inline |
Definition at line 178 of file TrapSimulator.h.
|
inline |
Definition at line 123 of file TrapSimulator.h.
| void TrapSimulator::init | ( | TrapConfig * | trapconfig, |
| int | det, | ||
| int | rob, | ||
| int | mcm | ||
| ) |
Definition at line 47 of file TrapSimulator.cxx.
|
inline |
Definition at line 124 of file TrapSimulator.h.
| void TrapSimulator::noiseTest | ( | int | nsamples, |
| int | mean, | ||
| int | sigma, | ||
| int | inputGain = 1, |
||
| int | inputTail = 2 |
||
| ) |
Definition at line 427 of file TrapSimulator.cxx.
|
delete |
| int TrapSimulator::packData | ( | std::vector< uint32_t > & | rawdata, |
| uint32_t | offset | ||
| ) | const |
Definition at line 727 of file TrapSimulator.cxx.
| void TrapSimulator::print | ( | int | choice | ) | const |
Definition at line 538 of file TrapSimulator.cxx.
| void TrapSimulator::printAdcDatDatx | ( | std::ostream & | os, |
| bool | broadcast = kFALSE, |
||
| int | timeBinOffset = -1 |
||
| ) | const |
Definition at line 396 of file TrapSimulator.cxx.
| void TrapSimulator::printAdcDatHuman | ( | std::ostream & | os | ) | const |
Definition at line 331 of file TrapSimulator.cxx.
| void TrapSimulator::printAdcDatTxt | ( | std::ostream & | os | ) | const |
Definition at line 317 of file TrapSimulator.cxx.
| void TrapSimulator::printAdcDatXml | ( | std::ostream & | os | ) | const |
Definition at line 368 of file TrapSimulator.cxx.
| void TrapSimulator::printFitRegXml | ( | std::ostream & | os | ) | const |
Definition at line 225 of file TrapSimulator.cxx.
| void TrapSimulator::printTrackletsXml | ( | std::ostream & | os | ) | const |
Definition at line 276 of file TrapSimulator.cxx.
|
static |
Definition at line 135 of file TrapSimulator.cxx.
|
static |
Definition at line 2026 of file TrapSimulator.cxx.
| void TrapSimulator::reset | ( | ) |
Definition at line 78 of file TrapSimulator.cxx.
|
inline |
Definition at line 132 of file TrapSimulator.h.
| void TrapSimulator::setBaselines | ( | ) |
Definition at line 682 of file TrapSimulator.cxx.
|
inline |
Definition at line 136 of file TrapSimulator.h.
Definition at line 656 of file TrapSimulator.cxx.
| void TrapSimulator::setDataPedestal | ( | int | iadc | ) |
Definition at line 706 of file TrapSimulator.cxx.
|
inline |
Definition at line 135 of file TrapSimulator.h.
|
static |
Definition at line 118 of file TrapSimulator.cxx.
| void TrapSimulator::tracklet | ( | ) |
Definition at line 1833 of file TrapSimulator.cxx.
| void TrapSimulator::trackletSelection | ( | ) |
Definition at line 1425 of file TrapSimulator.cxx.
| void TrapSimulator::zeroSupressionMapping | ( | ) |
Definition at line 1099 of file TrapSimulator.cxx.
|
friend |
|
static |
Definition at line 222 of file TrapSimulator.h.
|
staticconstexpr |
Definition at line 211 of file TrapSimulator.h.
|
staticconstexpr |
Definition at line 214 of file TrapSimulator.h.
|
staticconstexpr |
Definition at line 213 of file TrapSimulator.h.
|
staticconstexpr |
Definition at line 200 of file TrapSimulator.h.
|
staticconstexpr |
Definition at line 201 of file TrapSimulator.h.
|
staticconstexpr |
Definition at line 205 of file TrapSimulator.h.
|
staticconstexpr |
Definition at line 206 of file TrapSimulator.h.
|
staticconstexpr |
Definition at line 202 of file TrapSimulator.h.
|
staticconstexpr |
Definition at line 204 of file TrapSimulator.h.
|
staticconstexpr |
Definition at line 212 of file TrapSimulator.h.
|
staticconstexpr |
Definition at line 215 of file TrapSimulator.h.
|
staticconstexpr |
Definition at line 209 of file TrapSimulator.h.
|
staticconstexpr |
Definition at line 208 of file TrapSimulator.h.
|
staticconstexpr |
Definition at line 216 of file TrapSimulator.h.
|
static |
Definition at line 220 of file TrapSimulator.h.
|
static |
Definition at line 225 of file TrapSimulator.h.
|
staticconstexpr |
Definition at line 218 of file TrapSimulator.h.
|
staticconstexpr |
Definition at line 217 of file TrapSimulator.h.