Skip to content

Commit

Permalink
fix assert
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin committed Aug 29, 2022
1 parent 961576d commit 82c8581
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions L1Trigger/CSCTriggerPrimitives/src/CSCAnodeLCTProcessor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ void CSCAnodeLCTProcessor::setConfigParameters(const CSCDBL1TPParameters* conf)
}
minbx_readout_ = CSCConstants::LCT_CENTRAL_BX - l1a_window_width / 2;
maxbx_readout_ = CSCConstants::LCT_CENTRAL_BX + l1a_window_width / 2;
assert(minbx_readout_ > 0);
}

void CSCAnodeLCTProcessor::checkConfigParameters() {
Expand Down Expand Up @@ -174,8 +173,7 @@ void CSCAnodeLCTProcessor::checkConfigParameters() {
CSCBaseboard::checkConfigParameters(accel_mode, max_accel_mode, def_accel_mode, "accel_mode");
CSCBaseboard::checkConfigParameters(l1a_window_width, max_l1a_window_width, def_l1a_window_width, "l1a_window_width");

minbx_readout_ = CSCConstants::LCT_CENTRAL_BX - l1a_window_width / 2;
maxbx_readout_ = CSCConstants::LCT_CENTRAL_BX + l1a_window_width / 2;
assert(l1a_window_width / 2 <= CSCConstants::LCT_CENTRAL_BX);
}

void CSCAnodeLCTProcessor::clear() {
Expand Down
4 changes: 1 addition & 3 deletions L1Trigger/CSCTriggerPrimitives/src/CSCCathodeLCTProcessor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ void CSCCathodeLCTProcessor::setConfigParameters(const CSCDBL1TPParameters* conf
}
minbx_readout_ = CSCConstants::LCT_CENTRAL_BX - tmb_l1a_window_size / 2;
maxbx_readout_ = CSCConstants::LCT_CENTRAL_BX + tmb_l1a_window_size / 2;
assert(minbx_readout_ > 0);
}

void CSCCathodeLCTProcessor::setESLookupTables(const CSCL1TPLookupTableCCLUT* conf) { cclut_->setESLookupTables(conf); }
Expand Down Expand Up @@ -173,8 +172,7 @@ void CSCCathodeLCTProcessor::checkConfigParameters() {
CSCBaseboard::checkConfigParameters(min_separation, max_min_separation, def_min_separation, "min_separation");
CSCBaseboard::checkConfigParameters(
tmb_l1a_window_size, max_tmb_l1a_window_size, def_tmb_l1a_window_size, "tmb_l1a_window_size");
minbx_readout_ = CSCConstants::LCT_CENTRAL_BX - tmb_l1a_window_size / 2;
maxbx_readout_ = CSCConstants::LCT_CENTRAL_BX + tmb_l1a_window_size / 2;
assert(tmb_l1a_window_size / 2 <= CSCConstants::LCT_CENTRAL_BX);
}

void CSCCathodeLCTProcessor::clear() {
Expand Down
4 changes: 1 addition & 3 deletions L1Trigger/CSCTriggerPrimitives/src/CSCMotherboard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ void CSCMotherboard::setConfigParameters(const CSCDBL1TPParameters* conf) {
}
minbx_readout_ = CSCConstants::LCT_CENTRAL_BX - tmb_l1a_window_size / 2;
maxbx_readout_ = CSCConstants::LCT_CENTRAL_BX + tmb_l1a_window_size / 2;
assert(minbx_readout_ > 0);
}

void CSCMotherboard::setESLookupTables(const CSCL1TPLookupTableCCLUT* conf) { lookupTableCCLUT_ = conf; }
Expand Down Expand Up @@ -572,8 +571,7 @@ void CSCMotherboard::checkConfigParameters() {
match_trig_window_size, max_match_trig_window_size, def_match_trig_window_size, "match_trig_window_size");
CSCBaseboard::checkConfigParameters(
tmb_l1a_window_size, max_tmb_l1a_window_size, def_tmb_l1a_window_size, "tmb_l1a_window_size");
minbx_readout_ = CSCConstants::LCT_CENTRAL_BX - tmb_l1a_window_size / 2;
maxbx_readout_ = CSCConstants::LCT_CENTRAL_BX + tmb_l1a_window_size / 2;
assert(tmb_l1a_window_size / 2 <= CSCConstants::LCT_CENTRAL_BX);
}

void CSCMotherboard::dumpConfigParams() const {
Expand Down

0 comments on commit 82c8581

Please sign in to comment.