Skip to content

Commit

Permalink
Merge pull request cms-sw#97 from thomreis/l1t-muon-dev-CMSSW_8_0_0_p…
Browse files Browse the repository at this point in the history
…re1_GMTInternalMuon_move

Merged
  • Loading branch information
thomreis committed Nov 17, 2015
2 parents d93d617 + 7b6c000 commit b9078cc
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 162 deletions.
2 changes: 1 addition & 1 deletion L1Trigger/L1TMuon/interface/MicroGMTConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

#include "DataFormats/L1Trigger/interface/Muon.h"
#include "DataFormats/L1TMuon/interface/RegionalMuonCandFwd.h"
#include "DataFormats/L1TMuon/interface/GMTInternalMuonFwd.h"
#include "DataFormats/L1TMuon/interface/GMTInputCaloSumFwd.h"
#include "L1Trigger/L1TMuon/interface/GMTInternalMuonFwd.h"

#include <map>
#include <utility>
Expand Down
2 changes: 1 addition & 1 deletion L1Trigger/L1TMuon/plugins/L1TMuonProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
#include "L1Trigger/L1TMuon/interface/MicroGMTIsolationUnit.h"
#include "L1Trigger/L1TMuon/interface/MicroGMTCancelOutUnit.h"
#include "L1Trigger/L1TMuon/interface/MicroGMTLUTFactories.h"
#include "L1Trigger/L1TMuon/interface/GMTInternalMuon.h"

#include "DataFormats/Math/interface/LorentzVector.h"
#include "DataFormats/L1Trigger/interface/Muon.h"
#include "DataFormats/L1TMuon/interface/RegionalMuonCand.h"
#include "DataFormats/L1TMuon/interface/GMTInternalMuon.h"

#include "CondFormats/L1TObjects/interface/L1TMuonGlobalParams.h"
#include "CondFormats/DataRecord/interface/L1TGMTParamsRcd.h"
Expand Down
150 changes: 2 additions & 148 deletions L1Trigger/L1TMuon/python/microgmtemulator_cfi.py
Original file line number Diff line number Diff line change
@@ -1,151 +1,5 @@
import FWCore.ParameterSet.Config as cms

import os

l1tgmt_basedir = "L1Trigger/L1TMuon/"
lut_dir = os.path.join(l1tgmt_basedir, "data/microgmt_luts/")

microGMTEmulator = cms.EDProducer('l1t::L1TMuonProducer',
barrelTFInput = cms.InputTag("L1TMicroGMTInputProducer", "BarrelTFMuons"),
overlapTFInput = cms.InputTag("L1TMicroGMTInputProducer", "OverlapTFMuons"),
forwardTFInput = cms.InputTag("L1TMicroGMTInputProducer", "ForwardTFMuons"),
triggerTowerInput = cms.InputTag("L1TMicroGMTInputProducer", "TriggerTowerSums"),

AbsIsoCheckMemLUTSettings = cms.PSet (
areaSum_in_width = cms.int32(5),
out_width = cms.int32(1),
filename = cms.string(os.path.join(lut_dir, 'AbsIsoCheckMem.lut')),
) ,

IdxSelMemPhiLUTSettings = cms.PSet (
phi_in_width = cms.int32(10),
out_width = cms.int32(6),
filename = cms.string(os.path.join(lut_dir, 'IdxSelMemPhi.lut')),
) ,

FwdPosSingleMatchQualLUTSettings = cms.PSet (
deltaEtaRed_in_width = cms.int32(4),
deltaPhiRed_in_width = cms.int32(3),
out_width = cms.int32(1),
filename = cms.string(os.path.join(lut_dir, 'FwdPosSingleMatchQual.lut')),
) ,

BONegMatchQualLUTSettings = cms.PSet (
deltaEtaRed_in_width = cms.int32(4),
deltaPhiRed_in_width = cms.int32(3),
out_width = cms.int32(1),
filename = cms.string(os.path.join(lut_dir, 'BONegMatchQual.lut')),
) ,

OvlNegSingleMatchQualLUTSettings = cms.PSet (
deltaEtaRed_in_width = cms.int32(4),
deltaPhiRed_in_width = cms.int32(3),
out_width = cms.int32(1),
filename = cms.string(os.path.join(lut_dir, 'OvlNegSingleMatchQual.lut')),
) ,

IdxSelMemEtaLUTSettings = cms.PSet (
eta_in_width = cms.int32(9),
out_width = cms.int32(5),
filename = cms.string(os.path.join(lut_dir, 'IdxSelMemEta.lut')),
) ,

FOPosMatchQualLUTSettings = cms.PSet (
deltaEtaRed_in_width = cms.int32(4),
deltaPhiRed_in_width = cms.int32(3),
out_width = cms.int32(1),
filename = cms.string(os.path.join(lut_dir, 'FOPosMatchQual.lut')),
) ,

FwdNegSingleMatchQualLUTSettings = cms.PSet (
deltaEtaRed_in_width = cms.int32(4),
deltaPhiRed_in_width = cms.int32(3),
out_width = cms.int32(1),
filename = cms.string(os.path.join(lut_dir, 'FwdNegSingleMatchQual.lut')),
) ,

BPhiExtrapolationLUTSettings = cms.PSet (
etaAbsRed_in_width = cms.int32(6),
pTred_in_width = cms.int32(6),
out_width = cms.int32(4),
filename = cms.string(os.path.join(lut_dir, 'BPhiExtrapolation.lut')),
) ,

BrlSingleMatchQualLUTSettings = cms.PSet (
deltaEtaRed_in_width = cms.int32(4),
deltaPhiRed_in_width = cms.int32(3),
out_width = cms.int32(1),
filename = cms.string(os.path.join(lut_dir, 'BrlSingleMatchQual.lut')),
) ,

RelIsoCheckMemLUTSettings = cms.PSet (
areaSum_in_width = cms.int32(5),
pT_in_width = cms.int32(9),
out_width = cms.int32(1),
filename = cms.string(os.path.join(lut_dir, 'RelIsoCheckMem.lut')),
) ,

OPhiExtrapolationLUTSettings = cms.PSet (
etaAbsRed_in_width = cms.int32(6),
pTred_in_width = cms.int32(6),
out_width = cms.int32(4),
filename = cms.string(os.path.join(lut_dir, 'OPhiExtrapolation.lut')),
) ,

OvlPosSingleMatchQualLUTSettings = cms.PSet (
deltaEtaRed_in_width = cms.int32(4),
deltaPhiRed_in_width = cms.int32(3),
out_width = cms.int32(1),
filename = cms.string(os.path.join(lut_dir, 'OvlPosSingleMatchQual.lut')),
) ,

FEtaExtrapolationLUTSettings = cms.PSet (
etaAbsRed_in_width = cms.int32(6),
pTred_in_width = cms.int32(6),
out_width = cms.int32(4),
filename = cms.string(os.path.join(lut_dir, 'FEtaExtrapolation.lut')),
) ,

BOPosMatchQualLUTSettings = cms.PSet (
deltaEtaRed_in_width = cms.int32(4),
deltaPhiRed_in_width = cms.int32(3),
out_width = cms.int32(1),
filename = cms.string(os.path.join(lut_dir, 'BOPosMatchQual.lut')),
) ,

OEtaExtrapolationLUTSettings = cms.PSet (
etaAbsRed_in_width = cms.int32(6),
pTred_in_width = cms.int32(6),
out_width = cms.int32(4),
filename = cms.string(os.path.join(lut_dir, 'OEtaExtrapolation.lut')),
) ,

BEtaExtrapolationLUTSettings = cms.PSet (
etaAbsRed_in_width = cms.int32(6),
pTred_in_width = cms.int32(6),
out_width = cms.int32(4),
filename = cms.string(os.path.join(lut_dir, 'BEtaExtrapolation.lut')),
) ,

FPhiExtrapolationLUTSettings = cms.PSet (
etaAbsRed_in_width = cms.int32(6),
pTred_in_width = cms.int32(6),
out_width = cms.int32(4),
filename = cms.string(os.path.join(lut_dir, 'FPhiExtrapolation.lut')),
) ,

FONegMatchQualLUTSettings = cms.PSet (
deltaEtaRed_in_width = cms.int32(4),
deltaPhiRed_in_width = cms.int32(3),
out_width = cms.int32(1),
filename = cms.string(os.path.join(lut_dir, 'FONegMatchQual.lut')),
) ,

SortRankLUTSettings = cms.PSet (
pT_in_width = cms.int32(9),
qual_in_width = cms.int32(4),
out_width = cms.int32(10),
filename = cms.string(os.path.join(lut_dir, 'SortRank.lut')),
)
)
from L1Trigger.L1TMuon.l1tmicrogmtparamsesproducer_cfi import *

from L1Trigger.L1TMuon.l1tmicrogmtproducer_cfi import *
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "DataFormats/L1TMuon/interface/GMTInternalMuon.h"
#include "L1Trigger/L1TMuon/interface/GMTInternalMuon.h"
#include "L1Trigger/L1TMuon/interface/MicroGMTConfiguration.h"


Expand Down
2 changes: 1 addition & 1 deletion L1Trigger/L1TMuon/src/MicroGMTCancelOutUnit.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "../interface/MicroGMTCancelOutUnit.h"
#include "DataFormats/L1TMuon/interface/GMTInternalMuon.h"
#include "L1Trigger/L1TMuon/interface/GMTInternalMuon.h"

namespace l1t {
MicroGMTCancelOutUnit::MicroGMTCancelOutUnit ()
Expand Down
2 changes: 1 addition & 1 deletion L1Trigger/L1TMuon/src/MicroGMTIsolationUnit.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "../interface/MicroGMTIsolationUnit.h"

#include "L1Trigger/L1TMuon/interface/GMTInternalMuon.h"
#include "DataFormats/L1TMuon/interface/GMTInputCaloSum.h"
#include "DataFormats/L1TMuon/interface/GMTInternalMuon.h"
#include "DataFormats/L1Trigger/interface/Muon.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"

Expand Down
10 changes: 6 additions & 4 deletions L1Trigger/L1TMuon/test/microgmt_from_tfinputs_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@

process.L1TMuonEndcapTrackFinder = cms.EDProducer(
'L1TMuonEndCapTrackProducer',
CSCInput = cms.InputTag('simCscTriggerPrimitiveDigis',''),
primitiveSrcs = cms.VInputTag(
cms.InputTag('L1TMuonTriggerPrimitives', 'CSC'),
cms.InputTag('L1TMuonTriggerPrimitives', 'DT'),
Expand All @@ -108,15 +109,16 @@
process.load('L1Trigger.L1TMuonBarrel.L1TTwinMuxProducer_cfi')

# BMTF Emulator
process.load('L1Trigger.L1TMuonBarrel.l1tmbtfparamsproducer_cfi')
process.load('L1Trigger.L1TMuonBarrel.bmtfDigis_cfi')
process.bmtfDigis.DTDigi_Source=cms.InputTag("L1TTwinMuxProducer")

process.MicroGMTCaloInputProducer = cms.EDProducer("L1TMicroGMTCaloInputProducer",
caloStage2Layer2Label=cms.InputTag("caloStage2Layer1Digis"),
)
# WORKAROUNDS FOR WRONG SCALES / MISSING COLLECTIONS:
process.bmtfConverter = cms.EDProducer("L1TBMTFConverter",
barrelTFInput = cms.InputTag("bmtfDigis", "BM"))
#process.bmtfConverter = cms.EDProducer("L1TBMTFConverter",
# barrelTFInput = cms.InputTag("bmtfDigis", "BM"))

# Adjust input tags if running on GEN-SIM-RAW (have to re-digi)
if SAMPLE == "zmumu" or SAMPLE == "minbias":
Expand All @@ -127,7 +129,7 @@

process.microGMTEmulator.overlapTFInput = cms.InputTag("omtfEmulator", "OMTF")
process.microGMTEmulator.forwardTFInput = cms.InputTag("L1TMuonEndcapTrackFinder", "EMUTF")
process.microGMTEmulator.barrelTFInput = cms.InputTag("bmtfConverter", "ConvBMTFMuons")
process.microGMTEmulator.barrelTFInput = cms.InputTag("bmtfDigis", "BM")
process.microGMTEmulator.triggerTowerInput = cms.InputTag("MicroGMTCaloInputProducer", "TriggerTowerSums")

# output file
Expand Down Expand Up @@ -189,7 +191,7 @@
process.L1TMuonTriggerPrimitives
+ process.L1TTwinMuxProducer
+ process.bmtfDigis
+ process.bmtfConverter
#+ process.bmtfConverter
+ process.omtfEmulator
+ process.L1TMuonEndcapTrackFinder
+ process.L1TCaloStage2_PPFromRaw
Expand Down
14 changes: 9 additions & 5 deletions L1Trigger/L1TMuon/test/produce_l1upgradentuple_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@

process.L1TMuonEndcapTrackFinder = cms.EDProducer(
'L1TMuonEndCapTrackProducer',
CSCInput = cms.InputTag('simCscTriggerPrimitiveDigis',''),
primitiveSrcs = cms.VInputTag(
cms.InputTag('L1TMuonTriggerPrimitives', 'CSC'),
cms.InputTag('L1TMuonTriggerPrimitives', 'DT'),
Expand All @@ -105,15 +106,16 @@
process.load('L1Trigger.L1TMuonBarrel.L1TTwinMuxProducer_cfi')

# BMTF Emulator
process.load('L1Trigger.L1TMuonBarrel.l1tmbtfparamsproducer_cfi')
process.load('L1Trigger.L1TMuonBarrel.bmtfDigis_cfi')
process.bmtfDigis.DTDigi_Source=cms.InputTag("L1TTwinMuxProducer")

process.MicroGMTCaloInputProducer = cms.EDProducer("L1TMicroGMTCaloInputProducer",
caloStage2Layer2Label=cms.InputTag("caloStage2Layer1Digis"),
)
# WORKAROUNDS FOR WRONG SCALES / MISSING COLLECTIONS:
process.bmtfConverter = cms.EDProducer("L1TBMTFConverter",
barrelTFInput = cms.InputTag("bmtfDigis", "BM"))
#process.bmtfConverter = cms.EDProducer("L1TBMTFConverter",
# barrelTFInput = cms.InputTag("bmtfDigis", "BM"))

# Adjust input tags if running on GEN-SIM-RAW (have to re-digi)
if SAMPLE == "zmumu" or SAMPLE == "minbias":
Expand All @@ -135,8 +137,10 @@
process.l1MuonUpgradeTreeProducer.omtfTag = cms.InputTag("omtfEmulator", "OMTF")
process.microGMTEmulator.forwardTFInput = cms.InputTag("L1TMuonEndcapTrackFinder", "EMUTF")
process.l1MuonUpgradeTreeProducer.emtfTag = cms.InputTag("L1TMuonEndcapTrackFinder", "EMUTF")
process.microGMTEmulator.barrelTFInput = cms.InputTag("bmtfConverter", "ConvBMTFMuons")
process.l1MuonUpgradeTreeProducer.bmtfTag = cms.InputTag("bmtfConverter", "ConvBMTFMuons")
#process.microGMTEmulator.barrelTFInput = cms.InputTag("bmtfConverter", "ConvBMTFMuons")
#process.l1MuonUpgradeTreeProducer.bmtfTag = cms.InputTag("bmtfConverter", "ConvBMTFMuons")
process.microGMTEmulator.barrelTFInput = cms.InputTag("bmtfDigis", "BM")
process.l1MuonUpgradeTreeProducer.bmtfTag = cms.InputTag("bmtfDigis", "BM")
process.microGMTEmulator.triggerTowerInput = cms.InputTag("MicroGMTCaloInputProducer", "TriggerTowerSums")
process.l1MuonUpgradeTreeProducer.calo2x2Tag = cms.InputTag("MicroGMTCaloInputProducer", "TriggerTower2x2s")
process.l1MuonUpgradeTreeProducer.caloTag = cms.InputTag("caloStage2Layer1Digis")
Expand Down Expand Up @@ -230,7 +234,7 @@
process.L1TMuonTriggerPrimitives
+ process.L1TTwinMuxProducer
+ process.bmtfDigis
+ process.bmtfConverter
#+ process.bmtfConverter
+ process.omtfEmulator
+ process.L1TMuonEndcapTrackFinder
+ process.L1TCaloStage2_PPFromRaw
Expand Down

0 comments on commit b9078cc

Please sign in to comment.