8 return relative_pattern;
23 else if(nminuscol>colpatternnumber)
25 else if(nminuscol==colpatternnumber){
27 result.push_back(val);
39 for(
size_t irow=0; irow<
fRowPattern.size(); irow++){
42 else if(nminusrow>rowpatternnumber)
44 else if(nminusrow==rowpatternnumber){
46 result.push_back(val);
52 uint32_t relative_event = eventnumber/
patternSize();
62 fRowPattern(std::vector<short>(0)),
63 fColumnPattern(std::vector<short>(0)),
64 fVCalValues(std::vector<short>(0)),
69 std::vector<int> vcalpoints(0);
71 std::vector<uint32_t> vcalpointsuint32 = fancyConfig.
scanValues(fancyConfig.
scanName(0));
72 for(
size_t ical=0; ical<vcalpointsuint32.size(); ++ical){
73 short vcalinput = vcalpointsuint32[ical];
75 std::cout <<
"Vcal value " << ical <<
" = " << vcalinput << std::endl;
80 std::vector<std::vector<uint32_t> > cols=fancyConfig.
columnList();
81 std::vector<std::vector<uint32_t> >
rows= fancyConfig.
rowList();
82 for(uint32_t
i=0;
i<cols.size(); ++
i){
83 for(uint32_t
j=0;
j<cols[
i].size(); ++
j){
84 short colval = cols[
i][
j];
89 for(uint32_t
i=0;
i<rows.size(); ++
i){
90 for(uint32_t
j=0;
j<rows[
i].size(); ++
j){
91 short rowval = rows[
i][
j];
short vcalForEvent(const uint32_t &eventnumber) const
uint32_t nextPatternChangeForEvent(const uint32_t &eventnumber) const
uint32_t patternSize() const
uint32_t nColumnPatterns() const
const std::vector< std::vector< unsigned int > > & columnList() const
uint32_t expectedTotalEvents() const
short vcalIndexForEvent(const uint32_t &eventnumber) const
This class implements the steps that are used in a scan over Threshold and CalDelay.
uint32_t nRowPatterns() const
std::vector< unsigned int > scanValues(std::string dac) const
Abs< T >::type abs(const T &t)
std::vector< short > fRowPattern
uint32_t nPatterns() const
std::vector< short > columnPatternForEvent(const uint32_t &eventnumber) const
const std::vector< std::vector< unsigned int > > & rowList() const
unsigned int nTriggersPerPattern() const
std::vector< short > fColumnPattern
std::string scanName(unsigned int iscan) const
std::vector< short > rowPatternForEvent(const uint32_t &eventnumber) const
short getNTriggers() const
SiPixelCalibConfiguration()
This class implements the steps that are used in a scan over Threshold and CalDelay.
std::vector< short > fVCalValues