Skip to content

Commit

Permalink
Merge pull request cms-sw#52 from dildick/flag-for-l1trigger
Browse files Browse the repository at this point in the history
Add flag to do GEM pad matching
  • Loading branch information
Sven Dildick committed Dec 5, 2013
2 parents 2b998c8 + dd590ac commit a2d4305
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion L1Trigger/CSCTriggerPrimitives/src/CSCMotherboardME11.cc
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ CSCMotherboardME11::CSCMotherboardME11(unsigned endcap, unsigned station,
pref[m] = pref[0] + m/2;
}

/// Do GEM matching?
do_gem_matching = tmbParams.getUntrackedParameter<bool>("doGemMatching", true);

/// GEM matching dphi and deta
gem_match_delta_phi_odd = tmbParams.getUntrackedParameter<double>("gemMatchDeltaPhiOdd", 0.0055);
gem_match_delta_phi_even = tmbParams.getUntrackedParameter<double>("gemMatchDeltaPhiEven", 0.0031);
Expand Down Expand Up @@ -335,7 +338,7 @@ void CSCMotherboardME11::run(const CSCWireDigiCollection* wiredc,
} // end of ALCT-centric matching

// possibly use some discrimination from GEMs
if (gemPads != nullptr) matchGEMPads(gemPads);
if (gemPads != nullptr && do_gem_matching) matchGEMPads(gemPads);


// reduction of nLCTs per each BX
Expand Down
2 changes: 2 additions & 0 deletions L1Trigger/CSCTriggerPrimitives/src/CSCMotherboardME11.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ class CSCMotherboardME11 : public CSCMotherboard
/** maximum lcts per BX in ME11: 2, 3, 4 or 999 */
unsigned int max_me11_lcts;

/// Do GEM matching?
bool do_gem_matching;

/// GEM matching dphi and deta
double gem_match_delta_phi_odd;
Expand Down
1 change: 1 addition & 0 deletions SLHCUpgradeSimulations/Configuration/python/gemCustoms.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def customise_L1Emulator(process):
process.simCscTriggerPrimitiveDigis.clctSLHC.clctPidThreshPretrig = 2
process.simCscTriggerPrimitiveDigis.clctParam07.clctPidThreshPretrig = 2
tmb = process.simCscTriggerPrimitiveDigis.tmbSLHC
tmb.doGemMatching = cms.untracked.bool(True)
tmb.gemMatchDeltaEta = cms.untracked.double(0.08)
tmb.gemMatchDeltaBX = cms.untracked.int32(1)
lct_store_gemdphi = True
Expand Down

0 comments on commit a2d4305

Please sign in to comment.