8 return relative_pattern;
16 uint32_t patternnumber = eventnumber /
patternSize();
19 uint32_t nminuscol = 0;
23 else if (nminuscol > colpatternnumber)
25 else if (nminuscol == colpatternnumber) {
35 uint32_t patternnumber = eventnumber /
patternSize();
38 uint32_t nminusrow = 0;
39 for (
size_t irow = 0; irow <
fRowPattern.size(); irow++) {
42 else if (nminusrow > rowpatternnumber)
44 else if (nminusrow == rowpatternnumber) {
52 uint32_t relative_event = eventnumber /
patternSize();
67 std::vector<int> vcalpoints(0);
69 std::vector<uint32_t> vcalpointsuint32 = fancyConfig.
scanValues(fancyConfig.
scanName(0));
70 for (
size_t ical = 0; ical < vcalpointsuint32.size(); ++ical) {
71 short vcalinput = vcalpointsuint32[ical];
73 std::cout <<
"Vcal value " << ical <<
" = " << vcalinput << std::endl;
78 std::vector<std::vector<uint32_t> > cols = fancyConfig.
columnList();
79 std::vector<std::vector<uint32_t> >
rows = fancyConfig.
rowList();
80 for (uint32_t
i = 0;
i < cols.size(); ++
i) {
81 for (uint32_t
j = 0;
j < cols[
i].size(); ++
j) {
82 short colval = cols[
i][
j];
87 for (uint32_t
i = 0;
i <
rows.size(); ++
i) {
88 for (uint32_t
j = 0;
j <
rows[
i].size(); ++
j) {
short vcalIndexForEvent(const uint32_t &eventnumber) const
std::vector< unsigned int > scanValues(std::string dac) const
std::string scanName(unsigned int iscan) const
short vcalForEvent(const uint32_t &eventnumber) const
std::vector< short > rowPatternForEvent(const uint32_t &eventnumber) const
std::string mode() const override
unsigned int nTriggersPerPattern() const
This class implements the steps that are used in a scan over Threshold and CalDelay.
short getNTriggers() const
Abs< T >::type abs(const T &t)
const std::vector< std::vector< unsigned int > > & columnList() const
uint32_t nColumnPatterns() const
uint32_t nextPatternChangeForEvent(const uint32_t &eventnumber) const
std::vector< short > fRowPattern
std::vector< short > fColumnPattern
uint32_t nRowPatterns() const
uint32_t patternSize() const
uint32_t nPatterns() const
std::vector< short > columnPatternForEvent(const uint32_t &eventnumber) const
uint32_t expectedTotalEvents() const
SiPixelCalibConfiguration()
This class implements the steps that are used in a scan over Threshold and CalDelay.
const std::vector< std::vector< unsigned int > > & rowList() const
std::vector< short > fVCalValues