15#include "fairlogger/Logger.h"
20using namespace constants;
61 mDetector = ((((
phase) & 0x3) << 12) | (mDetector & 0xfff));
66 if (mChannel == 0 || mChannel == 1 || mChannel == NADCMCM - 1) {
80 auto itMax = std::max_element(mADC.begin(), mADC.end());
81 idx = std::distance(mADC.begin(), itMax);
88 for (
int i = 0;
i < constants::TIMEBINS;
i++) {
89 stream <<
"[" <<
d.getADC()[
i] <<
"]";
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char Directory with events to Events directory is and not inside events d
ADC_t getADCmax(int &idx) const
bool isNeighbour(const Digit &other) const
bool isSharedDigit() const
void setADC(ArrayADC const &adc)
void setPreTrigPhase(int phase)
void setDetector(int det)
void setChannel(int channel)
std::array< ADC_t, constants::TIMEBINS > ArrayADC
std::ostream & operator<<(std::ostream &stream, const Digit &d)
static int getStack(int det)
static int getLayer(int det)
static int getSector(int det)
VectorOfTObjectPtrs other