Skip to content

Commit

Permalink
renaming simOmtfPhase1Digis_cfi.py to simOmtfDigis_cfi.py
Browse files Browse the repository at this point in the history
in L1Trigger/L1TMuonOverlapPhase1/python/simOmtfDigis_cfi.py:
- removing ghostBusterType
- removing bxMin and bxMin, so that the default value 0-0 is used

updating all run*.py files in the L1Trigger/L1TMuonOverlapPhase1/test
- simOmtfPhase1Digis_cfi > simOmtfDigis_cfi
- setting bxMin = 0 and bxMax = 0
  • Loading branch information
Karol Bunkowski committed Aug 25, 2021
1 parent ad7c4ad commit bbdb383
Show file tree
Hide file tree
Showing 17 changed files with 67 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
#patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuon/data/omtf_config/Patterns_0x00020007.xml")
#patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuon/data/omtf_config/Patterns_0x0003.xml")

bxMin = cms.int32(-3),
bxMax = cms.int32(4)
#if commented the default values are 0-0
#-3 to 4 is the range of the OMTF DAQ readout, so should be used e.g. in the DQM data to emulator comparison
#bxMin = cms.int32(-3),
#bxMax = cms.int32(4)
)

Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@
#process.TFileService = cms.Service("TFileService", fileName = cms.string('omtfAnalysis1_1.root'), closeFileFast = cms.untracked.bool(True) )

####OMTF Emulator
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfPhase1Digis_cfi')
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfDigis_cfi')

process.simOmtfDigis.bxMin = cms.int32(0)
process.simOmtfDigis.bxMax = cms.int32(0)

process.simOmtfDigis.dumpResultToXML = cms.bool(False)
process.simOmtfDigis.dumpResultToROOT = cms.bool(False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@
#process.TFileService = cms.Service("TFileService", fileName = cms.string('omtfAnalysis1_1.root'), closeFileFast = cms.untracked.bool(True) )

####OMTF Emulator
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfPhase1Digis_cfi')
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfDigis_cfi')

process.simOmtfDigis.bxMin = cms.int32(0)
process.simOmtfDigis.bxMax = cms.int32(0)

process.simOmtfDigis.dumpResultToXML = cms.bool(False)
process.simOmtfDigis.dumpResultToROOT = cms.bool(False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@
#process.TFileService = cms.Service("TFileService", fileName = cms.string('omtfAnalysis1_1.root'), closeFileFast = cms.untracked.bool(True) )

####OMTF Emulator
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfPhase1Digis_cfi')
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfDigis_cfi')

process.simOmtfDigis.bxMin = cms.int32(0)
process.simOmtfDigis.bxMax = cms.int32(0)

process.simOmtfDigis.dumpResultToXML = cms.bool(False)
process.simOmtfDigis.dumpResultToROOT = cms.bool(False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@
process.TFileService = cms.Service("TFileService", fileName = cms.string('omtfAnalysis2_eff_SingleMu_t' + version + '.root'), closeFileFast = cms.untracked.bool(True) )

####OMTF Emulator
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfPhase1Digis_cfi')
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfDigis_cfi')

process.simOmtfDigis.bxMin = cms.int32(0)
process.simOmtfDigis.bxMax = cms.int32(0)

process.simOmtfDigis.dumpResultToXML = cms.bool(False)
process.simOmtfDigis.dumpResultToROOT = cms.bool(False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
process.load('EventFilter.L1TRawToDigi.omtfStage2Raw_cfi') #packer

#### new OMTF Emulator
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfPhase1Digis_cfi')
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfDigis_cfi')

process.simOmtfDigis.srcDTPh = cms.InputTag('omtfStage2Digis')
process.simOmtfDigis.srcDTTh = cms.InputTag('omtfStage2Digis')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@
process.TFileService = cms.Service("TFileService", fileName = cms.string('omtfAnalysis2_v100_Mu_FlatPt2to100_noPU_' + analysisType + '.root'), closeFileFast = cms.untracked.bool(True) )

####OMTF Emulator
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfPhase1Digis_cfi')
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfDigis_cfi')

process.simOmtfDigis.bxMin = cms.int32(0)
process.simOmtfDigis.bxMax = cms.int32(0)

process.simOmtfDigis.dumpResultToXML = cms.bool(False)
process.simOmtfDigis.dumpResultToROOT = cms.bool(False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@
process.TFileService = cms.Service("TFileService", fileName = cms.string('omtfAnalysis2_eff_SingleMu_t' + version + '.root'), closeFileFast = cms.untracked.bool(True) )

####OMTF Emulator
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfPhase1Digis_cfi')
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfDigis_cfi')

process.simOmtfDigis.bxMin = cms.int32(0)
process.simOmtfDigis.bxMax = cms.int32(0)

process.simOmtfDigis.dumpResultToXML = cms.bool(False)
process.simOmtfDigis.dumpResultToROOT = cms.bool(False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@
process.TFileService = cms.Service("TFileService", fileName = cms.string('omtfAnalysis2_v74' + analysisType + '.root'), closeFileFast = cms.untracked.bool(True) )

####OMTF Emulator
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfPhase1Digis_cfi')
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfDigis_cfi')

process.simOmtfDigis.bxMin = cms.int32(0)
process.simOmtfDigis.bxMax = cms.int32(0)

process.simOmtfDigis.dumpResultToXML = cms.bool(False)
process.simOmtfDigis.dumpResultToROOT = cms.bool(False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@
process.TFileService = cms.Service("TFileService", fileName = cms.string('omtfAnalysis2_v100_Mu_FlatPt2to100_noPU_' + analysisType + '_v2.root'), closeFileFast = cms.untracked.bool(True) )

####OMTF Emulator
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfPhase1Digis_cfi')
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfDigis_cfi')

process.simOmtfDigis.bxMin = cms.int32(0)
process.simOmtfDigis.bxMax = cms.int32(0)

process.simOmtfDigis.dumpResultToXML = cms.bool(False)
process.simOmtfDigis.dumpResultToROOT = cms.bool(False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@
process.TFileService = cms.Service("TFileService", fileName = cms.string('omtfAnalysis2_v45' + analysisType + '.root'), closeFileFast = cms.untracked.bool(True) )

####OMTF Emulator
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfPhase1Digis_cfi')
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfDigis_cfi')

process.simOmtfDigis.bxMin = cms.int32(0)
process.simOmtfDigis.bxMax = cms.int32(0)

process.simOmtfDigis.dumpResultToXML = cms.bool(False)
process.simOmtfDigis.dumpResultToROOT = cms.bool(False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@
process.TFileService = cms.Service("TFileService", fileName = cms.string('omtfAnalysis_newerSAmple_v21_1.root'), closeFileFast = cms.untracked.bool(True) )

####OMTF Emulator
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfPhase1Digis_cfi')
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfDigis_cfi')

process.simOmtfDigis.bxMin = cms.int32(0)
process.simOmtfDigis.bxMax = cms.int32(0)

process.simOmtfDigis.dumpResultToXML = cms.bool(False)
process.simOmtfDigis.dumpResultToROOT = cms.bool(False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@
process.load('EventFilter.L1TRawToDigi.omtfStage2Raw_cfi') #packer

#### new OMTF Emulator
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfPhase1Digis_cfi')
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfDigis_cfi')

process.simOmtfDigis.bxMin = cms.int32(0)
process.simOmtfDigis.bxMax = cms.int32(0)

process.simOmtfDigis.srcDTPh = cms.InputTag('omtfStage2Digis')
process.simOmtfDigis.srcDTTh = cms.InputTag('omtfStage2Digis')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@
#process.TFileService = cms.Service("TFileService", fileName = cms.string('omtfAnalysis1_1.root'), closeFileFast = cms.untracked.bool(True) )

####OMTF Emulator
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfPhase1Digis_cfi')
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfDigis_cfi')

process.simOmtfDigis.bxMin = cms.int32(0)
process.simOmtfDigis.bxMax = cms.int32(0)

process.simOmtfDigis.dumpResultToXML = cms.bool(False)
process.simOmtfDigis.dumpResultToROOT = cms.bool(False)
Expand Down
5 changes: 4 additions & 1 deletion L1Trigger/L1TMuonOverlapPhase1/test/runMuonOverlap.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@
#process.TFileService = cms.Service("TFileService", fileName = cms.string('omtfAnalysis1.root'), closeFileFast = cms.untracked.bool(True) )

####OMTF Emulator
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfPhase1Digis_cfi')
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfDigis_cfi')

process.simOmtfDigis.bxMin = cms.int32(0)
process.simOmtfDigis.bxMax = cms.int32(0)

process.simOmtfDigis.dumpResultToXML = cms.bool(False)
process.simOmtfDigis.dumpResultToROOT = cms.bool(False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@
process.TFileService = cms.Service("TFileService", fileName = cms.string('omtfAnalysis1.root'), closeFileFast = cms.untracked.bool(True) )

####OMTF Emulator
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfPhase1Digis_cfi')
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfDigis_cfi')

process.simOmtfDigis.bxMin = cms.int32(0)
process.simOmtfDigis.bxMax = cms.int32(0)

process.simOmtfDigis.dumpResultToXML = cms.bool(True)
process.simOmtfDigis.dumpResultToROOT = cms.bool(False)
Expand Down
9 changes: 6 additions & 3 deletions L1Trigger/L1TMuonOverlapPhase1/test/runMuonOverlap_newPats.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
),
categories = cms.untracked.vstring('l1tOmtfEventPrint', 'OMTFReconstruction'),
omtfEventPrint = cms.untracked.PSet(
filename = cms.untracked.string('log_MuonOverlap_newPats_71'),
filename = cms.untracked.string('log_MuonOverlap_newPats'),
extension = cms.untracked.string('.txt'),
threshold = cms.untracked.string('DEBUG'),
default = cms.untracked.PSet( limit = cms.untracked.int32(0) ),
Expand Down Expand Up @@ -103,7 +103,7 @@
'drop l1tEMTFTrack2016s_simEmtfDigis__HLT')
)

process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1))
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100))


####Event Setup Producer
Expand All @@ -125,7 +125,10 @@


####OMTF Emulator
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfPhase1Digis_cfi')
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfDigis_cfi')

process.simOmtfDigis.bxMin = cms.int32(0)
process.simOmtfDigis.bxMax = cms.int32(0)

process.simOmtfDigis.dumpResultToXML = cms.bool(True)
process.simOmtfDigis.dumpResultToROOT = cms.bool(False)
Expand Down

0 comments on commit bbdb383

Please sign in to comment.