Skip to content

Commit

Permalink
Merge pull request cms-sw#135 from gem-sw/CSC-Trigger-Upgrade-GEM-RPC…
Browse files Browse the repository at this point in the history
…-SLHC11

adjust LCT pattern and quality
  • Loading branch information
Sven Dildick committed Apr 21, 2014
2 parents 36f24ee + 349206b commit 5f3640a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
4 changes: 2 additions & 2 deletions L1Trigger/CSCTriggerPrimitives/src/CSCMotherboard.cc
Expand Up @@ -92,8 +92,8 @@ CSCMotherboard::CSCMotherboard(unsigned endcap, unsigned station,
// Motherboard parameters:
edm::ParameterSet tmbParams = conf.getParameter<edm::ParameterSet>("tmbParam");

if (isSLHC && theStation == 1 &&
CSCTriggerNumbering::ringFromTriggerLabels(theStation, theTrigChamber) == 1 ) {
// run upgrade TMBs for all MEX/1 stations
if (isSLHC && CSCTriggerNumbering::ringFromTriggerLabels(theStation, theTrigChamber) == 1 ) {
alctParams = conf.getParameter<edm::ParameterSet>("alctSLHC");
clctParams = conf.getParameter<edm::ParameterSet>("clctSLHC");
tmbParams = conf.getParameter<edm::ParameterSet>("tmbSLHC");
Expand Down
8 changes: 5 additions & 3 deletions L1Trigger/CSCTriggerPrimitives/src/CSCMotherboardME11.cc
Expand Up @@ -2026,10 +2026,12 @@ CSCCorrelatedLCTDigi CSCMotherboardME11::constructLCTsGEM(const CSCALCTDigi& alc
auto mymap(ME==ME1A ? gemPadToCscHsME1a_ : gemPadToCscHsME1b_);
auto wgvshs(ME==ME1A ? lut_wg_vs_hs_me1a : lut_wg_vs_hs_me1b);
if (oldDataFormat){
// CLCT pattern number - set it to a reasonably high value
unsigned int pattern = promoteALCTGEMpattern_ ? 4 : 0;
// CLCT pattern number - set it to a highest value
// hack to get LCTs in the CSCTF
unsigned int pattern = promoteALCTGEMpattern_ ? 10 : 0;

// LCT quality number - set it to a reasonably high value
// LCT quality number - set it to a very high value
// hack to get LCTs in the CSCTF
unsigned int quality = promoteALCTGEMquality_ ? 14 : 11;

// Bunch crossing
Expand Down
15 changes: 11 additions & 4 deletions L1Trigger/CSCTriggerPrimitives/src/CSCMotherboardME21.cc
Expand Up @@ -171,6 +171,11 @@ CSCMotherboardME21::~CSCMotherboardME21()
void CSCMotherboardME21::clear()
{
CSCMotherboard::clear();

for (int bx = 0; bx < MAX_LCT_BINS; bx++)
for (unsigned int mbx = 0; mbx < match_trig_window_size; mbx++)
for (int i=0;i<2;i++)
allLCTs[bx][mbx][i].clear();

gemRollToEtaLimitsShort_.clear();
gemRollToEtaLimitsLong_.clear();
Expand Down Expand Up @@ -747,12 +752,14 @@ CSCCorrelatedLCTDigi CSCMotherboardME21::constructLCTsGEM(const CSCALCTDigi& alc
bool oldDataFormat)
{
if (oldDataFormat){
// CLCT pattern number - set it to a reasonably high value
unsigned int pattern = promoteALCTGEMpattern_ ? 4 : 0;
// CLCT pattern number - set it to a highest value
// hack to get LCTs in the CSCTF
unsigned int pattern = promoteALCTGEMpattern_ ? 10 : 0;

// LCT quality number - set it to a reasonably high value
// LCT quality number - set it to a very high value
// hack to get LCTs in the CSCTF
unsigned int quality = promoteALCTGEMquality_ ? 14 : 11;

// Bunch crossing
int bx = alct.getBX();

Expand Down
5 changes: 5 additions & 0 deletions L1Trigger/CSCTriggerPrimitives/src/CSCMotherboardME3141.cc
Expand Up @@ -118,6 +118,11 @@ void CSCMotherboardME3141::clear()
{
CSCMotherboard::clear();

for (int bx = 0; bx < MAX_LCT_BINS; bx++)
for (unsigned int mbx = 0; mbx < match_trig_window_size; mbx++)
for (int i=0;i<2;i++)
allLCTs[bx][mbx][i].clear();

rpcRollToEtaLimits_.clear();
cscWgToRpcRoll_.clear();
rpcStripToCscHs_.clear();
Expand Down

0 comments on commit 5f3640a

Please sign in to comment.