Skip to content

Commit

Permalink
Merge pull request cms-sw#46 from battibass/add_byqual_matching
Browse files Browse the repository at this point in the history
Add L1 matching by quality + other minor changes
  • Loading branch information
HuguesBrun authored Sep 30, 2016
2 parents d8ddfe8 + 01c3ce5 commit fa1f8f3
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
__init__.py
*.root
*.pyc
.*.swp
.#*
Expand Down
6 changes: 3 additions & 3 deletions python/common_variables_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@
l1q = cms.string("userInt('muonL1Info:quality')"),
l1dr = cms.string("userFloat('muonL1Info:deltaR')"),
l1dphi = cms.string("userFloat('muonL1Info:deltaPhi')"),
#l1ptByQ = cms.string("? userCand('muonL1Info:ByQ').isNull ? 0 : userCand('muonL1Info:ByQ').pt"),
#l1qByQ = cms.string("userInt('muonL1Info:qualityByQ')"),
#l1drByQ = cms.string("userFloat('muonL1Info:deltaRByQ')"),
l1ptByQ = cms.string("? userCand('muonL1InfoQuality').isNull ? 0 : userCand('muonL1InfoQuality').pt"),
l1qByQ = cms.string("userInt('muonL1InfoQuality:quality')"),
l1drByQ = cms.string("userFloat('muonL1InfoQuality:deltaR')"),
)
L2Variables = cms.PSet(
l2pt = cms.string("? triggerObjectMatchesByCollection('hltL2MuonCandidates').empty() ? 0 : triggerObjectMatchesByCollection('hltL2MuonCandidates').at(0).pt"),
Expand Down
26 changes: 12 additions & 14 deletions test/zmumu/tp_from_aod_Data.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,19 @@
'/store/data/Run2015D/SingleMuon/AOD/16Dec2015-v1/10000/24537A2D-0BA8-E511-8D7C-20CF300E9ECF.root',
]
elif "CMSSW_8_0_"in os.environ['CMSSW_VERSION']:
process.GlobalTag.globaltag = cms.string('80X_dataRun2_Prompt_v8')
process.GlobalTag.globaltag = cms.string('80X_dataRun2_Prompt_v9')

process.source.fileNames = [
'/store/data/Run2016B/SingleMuon/AOD/PromptReco-v2/000/274/420/00000/04883977-C22C-E611-AAD1-02163E013421.root',
'/store/data/Run2016B/SingleMuon/AOD/PromptReco-v2/000/274/420/00000/061E458C-E12C-E611-9961-02163E0133BB.root',
'/store/data/Run2016B/SingleMuon/AOD/PromptReco-v2/000/274/420/00000/0ACAF05A-E42C-E611-ACB4-02163E0134FA.root',
'/store/data/Run2016B/SingleMuon/AOD/PromptReco-v2/000/274/420/00000/100E452F-CC2C-E611-A998-02163E0143D0.root',
'/store/data/Run2016B/SingleMuon/AOD/PromptReco-v2/000/274/420/00000/10DE2766-CE2C-E611-9736-02163E01349C.root',
'/store/data/Run2016B/SingleMuon/AOD/PromptReco-v2/000/274/420/00000/12611BC4-E82C-E611-89F6-02163E012627.root',
'/store/data/Run2016B/SingleMuon/AOD/PromptReco-v2/000/274/420/00000/1C72C7C7-EB2C-E611-8DD9-02163E01368B.root',
'/store/data/Run2016B/SingleMuon/AOD/PromptReco-v2/000/274/420/00000/1CC274BA-D82C-E611-9D95-02163E014652.root',
'/store/data/Run2016B/SingleMuon/AOD/PromptReco-v2/000/274/420/00000/1EA9E0BA-E72C-E611-8447-02163E0133D0.root',
'/store/data/Run2016B/SingleMuon/AOD/PromptReco-v2/000/274/420/00000/1EEDFD5A-E62C-E611-A07A-02163E0128B3.root',
'/store/data/Run2016C/SingleMuon/AOD/PromptReco-v2/000/276/283/00000/0001E5C0-AE44-E611-9F88-02163E014235.root',
'/store/data/Run2016C/SingleMuon/AOD/PromptReco-v2/000/276/283/00000/007E4250-AE44-E611-867E-02163E011AB6.root',
'/store/data/Run2016C/SingleMuon/AOD/PromptReco-v2/000/276/283/00000/00997A4B-B044-E611-9FBB-02163E011EDE.root',
'/store/data/Run2016C/SingleMuon/AOD/PromptReco-v2/000/276/283/00000/02BB51AA-B044-E611-8DB0-02163E014168.root',
'/store/data/Run2016C/SingleMuon/AOD/PromptReco-v2/000/276/283/00000/0466BA91-AE44-E611-825B-02163E0136EF.root',
'/store/data/Run2016C/SingleMuon/AOD/PromptReco-v2/000/276/283/00000/0485506E-AE44-E611-A24B-02163E0140ED.root',
'/store/data/Run2016C/SingleMuon/AOD/PromptReco-v2/000/276/283/00000/0494A580-B044-E611-993A-02163E012944.root',
'/store/data/Run2016C/SingleMuon/AOD/PromptReco-v2/000/276/283/00000/04C4B374-B044-E611-97D0-02163E011ECD.root',
'/store/data/Run2016C/SingleMuon/AOD/PromptReco-v2/000/276/283/00000/06056373-B044-E611-B41D-02163E0137AA.root',
'/store/data/Run2016C/SingleMuon/AOD/PromptReco-v2/000/276/283/00000/064D926A-B044-E611-9CAA-02163E011FCC.root',
]

else: raise RuntimeError, "Unknown CMSSW version %s" % os.environ['CMSSW_VERSION']
Expand Down Expand Up @@ -150,10 +150,8 @@
from MuonAnalysis.MuonAssociators.patMuonsWithTrigger_cff import *
changeRecoMuonInput(process, "mergedMuons")
useL1Stage2Candidates(process)
#useExtendedL1Match(process)
appendL1MatchingAlgo(process)
#addHLTL1Passthrough(process)


from MuonAnalysis.TagAndProbe.common_variables_cff import *
process.load("MuonAnalysis.TagAndProbe.common_modules_cff")

Expand Down
3 changes: 2 additions & 1 deletion test/zmumu/tp_from_aod_MC.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
process.muonMatchHLTL3.maxDeltaR = 0.1
from MuonAnalysis.MuonAssociators.patMuonsWithTrigger_cff import *
changeRecoMuonInput(process, "mergedMuons")
#useExtendedL1Match(process) #MM no idea what the sequence did, not available since git migration
#useL1Stage2Candidates(process)
#appendL1MatchingAlgo(process)
#addHLTL1Passthrough(process)
#changeTriggerProcessName(process, "*") # auto-guess

Expand Down

0 comments on commit fa1f8f3

Please sign in to comment.