Skip to content

Commit

Permalink
changing simOmtfPhase1Digis to simOmtfDigis in the .py files
Browse files Browse the repository at this point in the history
In the
L1Trigger/L1TMuonOverlapPhase1/python/simOmtfPhase1Digis_cfi.py
changing the EDProducer("L1TMuonOverlapPhase1TrackProducer" name from
simOmtfPhase1Digis to simOmtfDigis - this will allow avoid changing this
name in many .py files in different places in the CMSSW.
Consequently, this name is changed in all .py files in the
L1Trigger/L1TMuonOverlapPhase1/test
  • Loading branch information
Karol Bunkowski committed Aug 25, 2021
1 parent 90273ee commit 86ea298
Show file tree
Hide file tree
Showing 17 changed files with 400 additions and 400 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import FWCore.ParameterSet.Config as cms

###OMTF emulator configuration
simOmtfPhase1Digis = cms.EDProducer("L1TMuonOverlapPhase1TrackProducer",
simOmtfDigis = cms.EDProducer("L1TMuonOverlapPhase1TrackProducer",

srcDTPh = cms.InputTag('simDtTriggerPrimitiveDigis'),
srcDTTh = cms.InputTag('simDtTriggerPrimitiveDigis'),
Expand All @@ -24,7 +24,7 @@
#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)
bxMin = cms.int32(-3),
bxMax = cms.int32(4)
)

Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
l1tOmtfEventPrint = cms.untracked.PSet( limit = cms.untracked.int32(1000000000) ),
OMTFReconstruction = cms.untracked.PSet( limit = cms.untracked.int32(1000000000) )
),
debugModules = cms.untracked.vstring('simOmtfPhase1Digis')
debugModules = cms.untracked.vstring('simOmtfDigis')
#debugModules = cms.untracked.vstring('*')
)

Expand Down Expand Up @@ -184,37 +184,37 @@
####OMTF Emulator
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfPhase1Digis_cfi')

process.simOmtfPhase1Digis.dumpResultToXML = cms.bool(False)
process.simOmtfPhase1Digis.dumpResultToROOT = cms.bool(False)
process.simOmtfPhase1Digis.dumpHitsToROOT = cms.bool(True)
process.simOmtfPhase1Digis.dumpHitsFileName = cms.string(dumpHitsFileName + '.root')
process.simOmtfPhase1Digis.eventCaptureDebug = cms.bool(False)
process.simOmtfDigis.dumpResultToXML = cms.bool(False)
process.simOmtfDigis.dumpResultToROOT = cms.bool(False)
process.simOmtfDigis.dumpHitsToROOT = cms.bool(True)
process.simOmtfDigis.dumpHitsFileName = cms.string(dumpHitsFileName + '.root')
process.simOmtfDigis.eventCaptureDebug = cms.bool(False)

process.simOmtfPhase1Digis.patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuon/data/omtf_config/Patterns_0x0003.xml")
#process.simOmtfPhase1Digis.patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuon/data/omtf_config/Patterns_0x00031_oldSample_10Files.xml")
#process.simOmtfPhase1Digis.patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuon/data/omtf_config/Patterns_0x0006_2_oldSample_10Files.xml") #TODO!!!!!!!!!!!!
process.simOmtfDigis.patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuon/data/omtf_config/Patterns_0x0003.xml")
#process.simOmtfDigis.patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuon/data/omtf_config/Patterns_0x00031_oldSample_10Files.xml")
#process.simOmtfDigis.patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuon/data/omtf_config/Patterns_0x0006_2_oldSample_10Files.xml") #TODO!!!!!!!!!!!!

#process.simOmtfPhase1Digis.gpResultsToPtFile = cms.string("gpResultsToPt_Patterns_0x00031.txt")
#process.simOmtfDigis.gpResultsToPtFile = cms.string("gpResultsToPt_Patterns_0x00031.txt")

#process.simOmtfPhase1Digis.patternType = cms.string("GoldenPatternWithStat")
process.simOmtfPhase1Digis.generatePatterns = cms.bool(False)
#process.simOmtfPhase1Digis.optimisedPatsXmlFile = cms.string("Patterns_0x0005_1.xml")
#process.simOmtfDigis.patternType = cms.string("GoldenPatternWithStat")
process.simOmtfDigis.generatePatterns = cms.bool(False)
#process.simOmtfDigis.optimisedPatsXmlFile = cms.string("Patterns_0x0005_1.xml")

process.simOmtfPhase1Digis.rpcMaxClusterSize = cms.int32(3)
process.simOmtfPhase1Digis.rpcMaxClusterCnt = cms.int32(2)
process.simOmtfPhase1Digis.rpcDropAllClustersIfMoreThanMax = cms.bool(True)
process.simOmtfDigis.rpcMaxClusterSize = cms.int32(3)
process.simOmtfDigis.rpcMaxClusterCnt = cms.int32(2)
process.simOmtfDigis.rpcDropAllClustersIfMoreThanMax = cms.bool(True)

process.simOmtfPhase1Digis.goldenPatternResultFinalizeFunction = cms.int32(5) #valid values are 0, 1, 2, 3, 5
#process.simOmtfPhase1Digis.sorterType = cms.string("byLLH") #TODO
process.simOmtfDigis.goldenPatternResultFinalizeFunction = cms.int32(5) #valid values are 0, 1, 2, 3, 5
#process.simOmtfDigis.sorterType = cms.string("byLLH") #TODO

process.simOmtfPhase1Digis.lctCentralBx = cms.int32(6);#<<<<<<<<<<<<<<<<!!!!!!!!!!!!!!!!!!!!TODO this was changed in CMSSW 10(?) to 8. if the data were generated with the previous CMSSW then you have to use 6
process.simOmtfDigis.lctCentralBx = cms.int32(6);#<<<<<<<<<<<<<<<<!!!!!!!!!!!!!!!!!!!!TODO this was changed in CMSSW 10(?) to 8. if the data were generated with the previous CMSSW then you have to use 6


#process.dumpED = cms.EDAnalyzer("EventContentAnalyzer")
#process.dumpES = cms.EDAnalyzer("PrintEventSetupContent")

process.L1TMuonSeq = cms.Sequence( process.esProd
+ process.simOmtfPhase1Digis
+ process.simOmtfDigis
#+ process.dumpED
#+ process.dumpES
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
l1tOmtfEventPrint = cms.untracked.PSet( limit = cms.untracked.int32(1000000000) ),
OMTFReconstruction = cms.untracked.PSet( limit = cms.untracked.int32(1000000000) )
),
debugModules = cms.untracked.vstring('simOmtfPhase1Digis')
debugModules = cms.untracked.vstring('simOmtfDigis')
#debugModules = cms.untracked.vstring('*')
)

Expand Down Expand Up @@ -163,34 +163,34 @@
####OMTF Emulator
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfPhase1Digis_cfi')

process.simOmtfPhase1Digis.dumpResultToXML = cms.bool(False)
process.simOmtfPhase1Digis.dumpResultToROOT = cms.bool(False)
process.simOmtfPhase1Digis.eventCaptureDebug = cms.bool(False)
process.simOmtfDigis.dumpResultToXML = cms.bool(False)
process.simOmtfDigis.dumpResultToROOT = cms.bool(False)
process.simOmtfDigis.eventCaptureDebug = cms.bool(False)

process.simOmtfPhase1Digis.patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuonOverlapPhase1/test/expert/omtf/Patterns_template.xml")
#process.simOmtfPhase1Digis.patternsXMLFiles = cms.VPSet(cms.PSet(patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuon/data/omtf_config/GPs_parametrised_plus_v1.xml")),
process.simOmtfDigis.patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuonOverlapPhase1/test/expert/omtf/Patterns_template.xml")
#process.simOmtfDigis.patternsXMLFiles = cms.VPSet(cms.PSet(patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuon/data/omtf_config/GPs_parametrised_plus_v1.xml")),
# cms.PSet(patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuon/data/omtf_config/GPs_parametrised_minus_v1.xml"))
#)

process.simOmtfPhase1Digis.patternGenerator = cms.string("patternGen")
process.simOmtfDigis.patternGenerator = cms.string("patternGen")

process.simOmtfPhase1Digis.patternType = cms.string("GoldenPatternWithStat")
process.simOmtfPhase1Digis.generatePatterns = cms.bool(True)
process.simOmtfPhase1Digis.optimisedPatsXmlFile = cms.string("Patterns_0x00011_oldSample_3_30Files_layerStat_test.xml")
process.simOmtfDigis.patternType = cms.string("GoldenPatternWithStat")
process.simOmtfDigis.generatePatterns = cms.bool(True)
process.simOmtfDigis.optimisedPatsXmlFile = cms.string("Patterns_0x00011_oldSample_3_30Files_layerStat_test.xml")

process.simOmtfPhase1Digis.rpcMaxClusterSize = cms.int32(3)
process.simOmtfPhase1Digis.rpcMaxClusterCnt = cms.int32(2)
process.simOmtfPhase1Digis.rpcDropAllClustersIfMoreThanMax = cms.bool(True)
process.simOmtfDigis.rpcMaxClusterSize = cms.int32(3)
process.simOmtfDigis.rpcMaxClusterCnt = cms.int32(2)
process.simOmtfDigis.rpcDropAllClustersIfMoreThanMax = cms.bool(True)

process.simOmtfPhase1Digis.goldenPatternResultFinalizeFunction = cms.int32(3) ## is needed here , becasue it just counts the number of layers with a stub
process.simOmtfPhase1Digis.lctCentralBx = cms.int32(6);#<<<<<<<<<<<<<<<<!!!!!!!!!!!!!!!!!!!!TODO this was changed in CMSSW 10(?) to 8. if the data were generated with the previous CMSSW then you have to use 6
process.simOmtfDigis.goldenPatternResultFinalizeFunction = cms.int32(3) ## is needed here , becasue it just counts the number of layers with a stub
process.simOmtfDigis.lctCentralBx = cms.int32(6);#<<<<<<<<<<<<<<<<!!!!!!!!!!!!!!!!!!!!TODO this was changed in CMSSW 10(?) to 8. if the data were generated with the previous CMSSW then you have to use 6


#process.dumpED = cms.EDAnalyzer("EventContentAnalyzer")
#process.dumpES = cms.EDAnalyzer("PrintEventSetupContent")

process.L1TMuonSeq = cms.Sequence( process.esProd
+ process.simOmtfPhase1Digis
+ process.simOmtfDigis
#+ process.dumpED
#+ process.dumpES
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
l1tOmtfEventPrint = cms.untracked.PSet( limit = cms.untracked.int32(1000000000) ),
OMTFReconstruction = cms.untracked.PSet( limit = cms.untracked.int32(1000000000) )
),
debugModules = cms.untracked.vstring('simOmtfPhase1Digis')
debugModules = cms.untracked.vstring('simOmtfDigis')
#debugModules = cms.untracked.vstring('*')
)

Expand Down Expand Up @@ -158,47 +158,47 @@
####OMTF Emulator
process.load('L1Trigger.L1TMuonOverlapPhase1.simOmtfPhase1Digis_cfi')

process.simOmtfPhase1Digis.dumpResultToXML = cms.bool(False)
process.simOmtfPhase1Digis.dumpResultToROOT = cms.bool(False)
process.simOmtfPhase1Digis.eventCaptureDebug = cms.bool(False)
process.simOmtfDigis.dumpResultToXML = cms.bool(False)
process.simOmtfDigis.dumpResultToROOT = cms.bool(False)
process.simOmtfDigis.eventCaptureDebug = cms.bool(False)

process.simOmtfPhase1Digis.patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuonOverlapPhase1/test/expert/omtf/Patterns_template.xml")
#process.simOmtfPhase1Digis.patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuonOverlapPhase1/test/expert/omtf/Patterns_0x00012_oldSample_3_30Files_grouped1_classProb1_recalib.xml")
#process.simOmtfPhase1Digis.patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuonOverlapPhase1/test/expert/omtf/Patterns_0x00012_oldSample_3_30Files_grouped1_classProb11_recalib2.xml")
#process.simOmtfPhase1Digis.patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuon/data/omtf_config/Patterns_0x0009_oldSample_3_10Files_classProb2.xml")
#process.simOmtfPhase1Digis.patternsXMLFiles = cms.VPSet(cms.PSet(patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuon/data/omtf_config/GPs_parametrised_plus_v1.xml")),
process.simOmtfDigis.patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuonOverlapPhase1/test/expert/omtf/Patterns_template.xml")
#process.simOmtfDigis.patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuonOverlapPhase1/test/expert/omtf/Patterns_0x00012_oldSample_3_30Files_grouped1_classProb1_recalib.xml")
#process.simOmtfDigis.patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuonOverlapPhase1/test/expert/omtf/Patterns_0x00012_oldSample_3_30Files_grouped1_classProb11_recalib2.xml")
#process.simOmtfDigis.patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuon/data/omtf_config/Patterns_0x0009_oldSample_3_10Files_classProb2.xml")
#process.simOmtfDigis.patternsXMLFiles = cms.VPSet(cms.PSet(patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuon/data/omtf_config/GPs_parametrised_plus_v1.xml")),
# cms.PSet(patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuon/data/omtf_config/GPs_parametrised_minus_v1.xml")) )

#process.simOmtfPhase1Digis.patternsXMLFiles = cms.VPSet(#cms.PSet(patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuonOverlapPhase1/test/expert/omtf/PatternsDisplaced_0x0007_minus.xml")),
#process.simOmtfDigis.patternsXMLFiles = cms.VPSet(#cms.PSet(patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuonOverlapPhase1/test/expert/omtf/PatternsDisplaced_0x0007_minus.xml")),
# cms.PSet(patternsXMLFile = cms.FileInPath("L1Trigger/L1TMuonOverlapPhase1/test/expert/omtf/PatternsDisplaced_0x0007_plus.xml"))
# )


#process.simOmtfPhase1Digis.patternGenerator = cms.string("modifyClassProb")
#process.simOmtfPhase1Digis.patternGenerator = cms.string("groupPatterns")
process.simOmtfPhase1Digis.patternGenerator = cms.string("patternGenFromStat")
#process.simOmtfPhase1Digis.patternGenerator = cms.string("") #does nothing except storing the patterns in the root file
process.simOmtfPhase1Digis.patternsROOTFile = cms.FileInPath("L1Trigger/L1TMuonOverlapPhase1/test/expert/omtf/Patterns_0x00011_oldSample_3_30Files_layerStat.root")
#process.simOmtfDigis.patternGenerator = cms.string("modifyClassProb")
#process.simOmtfDigis.patternGenerator = cms.string("groupPatterns")
process.simOmtfDigis.patternGenerator = cms.string("patternGenFromStat")
#process.simOmtfDigis.patternGenerator = cms.string("") #does nothing except storing the patterns in the root file
process.simOmtfDigis.patternsROOTFile = cms.FileInPath("L1Trigger/L1TMuonOverlapPhase1/test/expert/omtf/Patterns_0x00011_oldSample_3_30Files_layerStat.root")

process.simOmtfPhase1Digis.patternType = cms.string("GoldenPatternWithStat")
process.simOmtfPhase1Digis.generatePatterns = cms.bool(True)
#process.simOmtfPhase1Digis.optimisedPatsXmlFile = cms.string("Patterns_0x0009_oldSample_3_10Files_classProb3.xml")
process.simOmtfPhase1Digis.optimisedPatsXmlFile = cms.string("Patterns_0x00012_oldSample_3_30Files_grouped1_classProb17_recalib2.xml")
#process.simOmtfPhase1Digis.optimisedPatsXmlFile = cms.string("PatternsDisplaced_0x0007_p.xml")
process.simOmtfDigis.patternType = cms.string("GoldenPatternWithStat")
process.simOmtfDigis.generatePatterns = cms.bool(True)
#process.simOmtfDigis.optimisedPatsXmlFile = cms.string("Patterns_0x0009_oldSample_3_10Files_classProb3.xml")
process.simOmtfDigis.optimisedPatsXmlFile = cms.string("Patterns_0x00012_oldSample_3_30Files_grouped1_classProb17_recalib2.xml")
#process.simOmtfDigis.optimisedPatsXmlFile = cms.string("PatternsDisplaced_0x0007_p.xml")

process.simOmtfPhase1Digis.rpcMaxClusterSize = cms.int32(3)
process.simOmtfPhase1Digis.rpcMaxClusterCnt = cms.int32(2)
process.simOmtfPhase1Digis.rpcDropAllClustersIfMoreThanMax = cms.bool(True)
process.simOmtfDigis.rpcMaxClusterSize = cms.int32(3)
process.simOmtfDigis.rpcMaxClusterCnt = cms.int32(2)
process.simOmtfDigis.rpcDropAllClustersIfMoreThanMax = cms.bool(True)

process.simOmtfPhase1Digis.goldenPatternResultFinalizeFunction = cms.int32(3) #valid values are 0, 1, 2, 3, 5
process.simOmtfPhase1Digis.lctCentralBx = cms.int32(6);#<<<<<<<<<<<<<<<<!!!!!!!!!!!!!!!!!!!!TODO this was changed in CMSSW 10(?) to 8. if the data were generated with the previous CMSSW then you have to use 6
process.simOmtfDigis.goldenPatternResultFinalizeFunction = cms.int32(3) #valid values are 0, 1, 2, 3, 5
process.simOmtfDigis.lctCentralBx = cms.int32(6);#<<<<<<<<<<<<<<<<!!!!!!!!!!!!!!!!!!!!TODO this was changed in CMSSW 10(?) to 8. if the data were generated with the previous CMSSW then you have to use 6


#process.dumpED = cms.EDAnalyzer("EventContentAnalyzer")
#process.dumpES = cms.EDAnalyzer("PrintEventSetupContent")

process.L1TMuonSeq = cms.Sequence( process.esProd
+ process.simOmtfPhase1Digis
+ process.simOmtfDigis
#+ process.dumpED
#+ process.dumpES
)
Expand Down
Loading

0 comments on commit 86ea298

Please sign in to comment.