Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed CLCT sorting in CSC TP emulator and synchronize the config to the Point-5 data-taking settings #45829

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class CSCUpgradeCathodeLCTProcessor : public CSCCathodeLCTProcessor {
const CSCL1TPLookupTableCCLUT* lookupTable) override;

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

// update the deadzone after finding a pretrigger
void markBusyZone(const int bx);
Expand Down
6 changes: 2 additions & 4 deletions L1Trigger/CSCTriggerPrimitives/python/params/clctParams.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,11 @@
useDeadTimeZoning = True,

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

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

# CLCT threshold still set to 4 for now
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ std::vector<CSCCLCTDigi> CSCUpgradeCathodeLCTProcessor::findLCTs(
if (hits_in_time) {
// first, mark half-strip zones around pretriggers
// that happened at the current first_bx
markPreTriggerZone(pretrig_zone);
markPreTriggerZone(first_bx, pretrig_zone);

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

void CSCUpgradeCathodeLCTProcessor::markPreTriggerZone(
bool pretrig_zone[CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER]) const {
int bx, bool pretrig_zone[CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER]) const {
// first reset the pretrigger zone (no pretriggers anywhere in this BX
for (int hstrip = 0; hstrip < CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER; hstrip++) {
pretrig_zone[hstrip] = false;
}
// then set the pretrigger zone according to the ispretrig_ array
for (int hstrip = 0; hstrip < CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER; hstrip++) {
if (ispretrig_[hstrip]) {
if (ispretrig_[hstrip] && !busyMap_[hstrip][bx]) {
int min_hs = hstrip - pretrig_trig_zone_;
int max_hs = hstrip + pretrig_trig_zone_;
// set the minimum strip
Expand Down