Skip to content

Commit

Permalink
set readout window in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin committed Aug 30, 2022
1 parent 82c8581 commit e27b5f3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions L1Trigger/CSCTriggerPrimitives/src/CSCAnodeLCTProcessor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ CSCAnodeLCTProcessor::CSCAnodeLCTProcessor(unsigned endcap,
thresholds_ = shower.getParameter<std::vector<unsigned>>("showerThresholds");
showerNumTBins_ = shower.getParameter<unsigned>("showerNumTBins");
minLayersCentralTBin_ = shower.getParameter<unsigned>("minLayersCentralTBin");
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::loadPatternMask() {
Expand Down
4 changes: 4 additions & 0 deletions L1Trigger/CSCTriggerPrimitives/src/CSCCathodeLCTProcessor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ CSCCathodeLCTProcessor::CSCCathodeLCTProcessor(unsigned endcap,
showerNumTBins_ = shower.getParameter<unsigned>("showerNumTBins");
minLayersCentralTBin_ = shower.getParameter<unsigned>("minLayersCentralTBin");
peakCheck_ = shower.getParameter<bool>("peakCheck");
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);

thePreTriggerDigis.clear();

// quality control of stubs
Expand Down
5 changes: 5 additions & 0 deletions L1Trigger/CSCTriggerPrimitives/src/CSCMotherboard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ CSCMotherboard::CSCMotherboard(unsigned endcap,
unsigned csc_idx = CSCDetId::iChamberType(theStation, theRing) - 2;
thisShowerSource_ = showerSource_[csc_idx];

// shower readout window
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);

// enable the upgrade processors for ring 1 stations
if (runPhase2_ and theRing == 1) {
clctProc = std::make_unique<CSCUpgradeCathodeLCTProcessor>(endcap, station, sector, subsector, chamber, conf);
Expand Down

0 comments on commit e27b5f3

Please sign in to comment.