Skip to content

Commit 5f3420b

Browse files
committed
1. update the deadtimezone and pretrigger-trigger match
2. update the configuration parameter to synchronize with the setting for data-taking at P5
1 parent 3914bc8 commit 5f3420b

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

L1Trigger/CSCTriggerPrimitives/interface/CSCUpgradeCathodeLCTProcessor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class CSCUpgradeCathodeLCTProcessor : public CSCCathodeLCTProcessor {
4242
const CSCL1TPLookupTableCCLUT* lookupTable) override;
4343

4444
// mark half-strip zones around pretriggers that happened at the current first_bx
45-
void markPreTriggerZone(bool pretrig_zone[CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER]) const;
45+
void markPreTriggerZone(int bx, bool pretrig_zone[CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER]) const;
4646

4747
// update the deadzone after finding a pretrigger
4848
void markBusyZone(const int bx);

L1Trigger/CSCTriggerPrimitives/python/params/clctParams.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,11 @@
4444
useDeadTimeZoning = True,
4545

4646
# Width (in #HS) of a fixed dead zone around a key HS:
47-
clctStateMachineZone = cms.uint32(4),
47+
clctStateMachineZone = cms.uint32(5),
4848

4949
# Pretrigger HS +- clctPretriggerTriggerZone sets the trigger matching zone
5050
# which defines how far from pretrigger HS the TMB may look for a trigger HS
51-
# (it becomes important to do so with localized dead-time zoning):
52-
# not implemented yet, 2018-10-18, Tao Huang
53-
clctPretriggerTriggerZone = cms.uint32(224),
51+
clctPretriggerTriggerZone = cms.uint32(5),
5452
)
5553

5654
# CLCT threshold still set to 4 for now

L1Trigger/CSCTriggerPrimitives/src/CSCUpgradeCathodeLCTProcessor.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ std::vector<CSCCLCTDigi> CSCUpgradeCathodeLCTProcessor::findLCTs(
192192
if (hits_in_time) {
193193
// first, mark half-strip zones around pretriggers
194194
// that happened at the current first_bx
195-
markPreTriggerZone(pretrig_zone);
195+
markPreTriggerZone(first_bx, pretrig_zone);
196196

197197
for (int hstrip = stagger[CSCConstants::KEY_CLCT_LAYER - 1]; hstrip < numHalfStrips_; hstrip++) {
198198
/* The bend-direction bit pid[0] is ignored (left and right bends have equal quality).
@@ -309,14 +309,14 @@ std::vector<CSCCLCTDigi> CSCUpgradeCathodeLCTProcessor::findLCTs(
309309
} // findLCTs -- Phase2 version.
310310

311311
void CSCUpgradeCathodeLCTProcessor::markPreTriggerZone(
312-
bool pretrig_zone[CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER]) const {
312+
int bx, bool pretrig_zone[CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER]) const {
313313
// first reset the pretrigger zone (no pretriggers anywhere in this BX
314314
for (int hstrip = 0; hstrip < CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER; hstrip++) {
315315
pretrig_zone[hstrip] = false;
316316
}
317317
// then set the pretrigger zone according to the ispretrig_ array
318318
for (int hstrip = 0; hstrip < CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER; hstrip++) {
319-
if (ispretrig_[hstrip]) {
319+
if (ispretrig_[hstrip] && !busyMap_[hstrip][bx]) {
320320
int min_hs = hstrip - pretrig_trig_zone_;
321321
int max_hs = hstrip + pretrig_trig_zone_;
322322
// set the minimum strip

0 commit comments

Comments
 (0)