Skip to content

Commit

Permalink
minor changes to improve the coding
Browse files Browse the repository at this point in the history
  • Loading branch information
tahuang1991 committed Jan 25, 2023
1 parent 3fac2a3 commit d6a1755
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,12 @@ class CSCCathodeLCTProcessor : public CSCBaseboard {

/** Dump half-strip digis */
void dumpDigis(
const std::vector<int> strip[CSCConstants::NUM_LAYERS][CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER]) const;
const std::vector<int> halfstrip[CSCConstants::NUM_LAYERS][CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER]) const;

/* check whether there is a shower around best CLCT */
void checkLocalShower(
int zone, const std::vector<int> strip[CSCConstants::NUM_LAYERS][CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER]);
int zone,
const std::vector<int> halfstrip[CSCConstants::NUM_LAYERS][CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER]);

void encodeHighMultiplicityBits();

Expand Down
2 changes: 1 addition & 1 deletion L1Trigger/CSCTriggerPrimitives/python/params/tmbParams.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
# ALCT-CLCT stays at 7 for the moment
matchTrigWindowSize = 7,
#use CLCT sorted by Bx only for ALCT-CLCTmatch for now
sortClctBx = cms.bool(True),
sortClctBx = True,
# LCTs found in the window [5, 6, 7, 8, 9, 10, 11] are good
tmbL1aWindowSize = 7,
tmbDropUsedClcts = False,
Expand Down
5 changes: 1 addition & 4 deletions L1Trigger/CSCTriggerPrimitives/src/CSCCathodeLCTProcessor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,7 @@ void CSCCathodeLCTProcessor::checkLocalShower(
totalHits++;
}

if (totalHits >= localShowerThresh)
localShowerFlag[bx] = true;
else
localShowerFlag[bx] = false;
localShowerFlag[bx] = totalHits >= localShowerThresh;
if (infoV > 1)
LogDebug("CSCCathodeLCTProcessor") << " bx " << bx << " bestCLCT key HS " << keyHS
<< " localshower zone: " << minHS << ", " << maxHS << " totalHits "
Expand Down

0 comments on commit d6a1755

Please sign in to comment.