Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newjec #135

Open
wants to merge 2 commits into
base: 10_6_X
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cmsenv
setenv CMSSW_GIT_REFERENCE /cvmfs/cms.cern.ch/cmssw.git.daily
git cms-init

git clone -b 10_6_X_v1.03 --depth 1 https://github.com/cms-btv-pog/RecoBTag-PerformanceMeasurements.git RecoBTag/PerformanceMeasurements
git clone -b 10_6_X_v1.04 --depth 1 https://github.com/cms-btv-pog/RecoBTag-PerformanceMeasurements.git RecoBTag/PerformanceMeasurements

scram b -j8

Expand Down
Binary file added data/Summer19UL17_RunB_V4_DATA.db
Binary file not shown.
Binary file added data/Summer19UL17_RunC_V4_DATA.db
Binary file not shown.
Binary file added data/Summer19UL17_RunD_V4_DATA.db
Binary file not shown.
Binary file added data/Summer19UL17_RunE_V4_DATA.db
Binary file not shown.
Binary file added data/Summer19UL17_RunF_V4_DATA.db
Binary file not shown.
Binary file added data/Summer19UL17_V4_MC.db
Binary file not shown.
10 changes: 8 additions & 2 deletions python/defaults/2017_UltraLegacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@

mc = {
'inputFiles' : ['/store/mc/RunIISummer19UL17MiniAOD/TTTo2L2Nu_TuneCP5_13TeV-powheg-pythia8/MINIAODSIM/106X_mc2017_realistic_v6-v2/40000/FEDB3CA9-7B9C-4D4B-AB90-C4982D57ADEE.root'],
'JPCalibration' : 'JPcalib_MC106X_UL2017_v1',
'JPCalibration' : 'JPcalib_MC106X_UL2017_v1',
'mcGlobalTag' : '106X_mc2017_realistic_v6',
'usePrivateJEC': True,
'jecDBFileMC': 'Summer19UL17_V4_MC',
'usePFchs': True
}

data = {
'inputFiles' : ['/store/data/Run2017D/JetHT/MINIAOD/17Nov2017-v1/20000/0249B143-8CCC-E711-BA7C-0025905C2CD0.root'],
'JPCalibration' : 'JPcalib_Data106X_UL2017_v1',
'JPCalibration' : 'JPcalib_Data106X_UL2017_v1',
'dataGlobalTag' : '106X_dataRun2_v20',
'usePrivateJEC': True,
'jecDBFileData': 'Summer19UL17_RunD_V4_DATA',
'usePFchs': True
}
80 changes: 46 additions & 34 deletions test/runBTagAnalyzer_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,42 +893,54 @@
if options.runOnData: dbfile=options.jecDBFileData
else: dbfile=options.jecDBFileMC
print "\nUsing private SQLite file", dbfile, "\n"
process.jec = cms.ESSource("PoolDBESSource",CondDBSetup,
connect = cms.string( "sqlite_fip:RecoBTag/PerformanceMeasurements/data/"+dbfile+'.db'),
toGet = cms.VPSet(
cms.PSet(
record = cms.string("JetCorrectionsRecord"),
tag = cms.string("JetCorrectorParametersCollection_"+dbfile+"_AK4PF"),
label= cms.untracked.string("AK4PF")
),
cms.PSet(
record = cms.string("JetCorrectionsRecord"),
tag = cms.string("JetCorrectorParametersCollection_"+dbfile+"_AK4PFchs"),
label= cms.untracked.string("AK4PFchs")
),
cms.PSet(
record = cms.string("JetCorrectionsRecord"),
tag = cms.string("JetCorrectorParametersCollection_"+dbfile+"_AK4PFPuppi"),
label= cms.untracked.string("AK4PFPuppi")
),
cms.PSet(
record = cms.string("JetCorrectionsRecord"),
tag = cms.string("JetCorrectorParametersCollection_"+dbfile+"_AK8PF"),
label= cms.untracked.string("AK8PF")
),
cms.PSet(
record = cms.string("JetCorrectionsRecord"),
tag = cms.string("JetCorrectorParametersCollection_"+dbfile+"_AK8PFchs"),
label= cms.untracked.string("AK8PFchs")
),
cms.PSet(
record = cms.string("JetCorrectionsRecord"),
tag = cms.string("JetCorrectorParametersCollection_"+dbfile+"_AK8PFPuppi"),
label= cms.untracked.string("AK8PFPuppi")
),
if options.usePFchs:
process.jec = cms.ESSource("PoolDBESSource",CondDBSetup,
connect = cms.string( "sqlite_fip:RecoBTag/PerformanceMeasurements/data/"+dbfile+'.db'),
toGet = cms.VPSet(
cms.PSet(
record = cms.string("JetCorrectionsRecord"),
tag = cms.string("JetCorrectorParametersCollection_"+dbfile+"_AK4PFchs"),
label= cms.untracked.string("AK4PFchs")
),
)
)
)
else:

process.jec = cms.ESSource("PoolDBESSource",CondDBSetup,
connect = cms.string( "sqlite_fip:RecoBTag/PerformanceMeasurements/data/"+dbfile+'.db'),
toGet = cms.VPSet(
cms.PSet(
record = cms.string("JetCorrectionsRecord"),
tag = cms.string("JetCorrectorParametersCollection_"+dbfile+"_AK4PF"),
label= cms.untracked.string("AK4PF")
),
cms.PSet(
record = cms.string("JetCorrectionsRecord"),
tag = cms.string("JetCorrectorParametersCollection_"+dbfile+"_AK4PFchs"),
label= cms.untracked.string("AK4PFchs")
),
cms.PSet(
record = cms.string("JetCorrectionsRecord"),
tag = cms.string("JetCorrectorParametersCollection_"+dbfile+"_AK4PFPuppi"),
label= cms.untracked.string("AK4PFPuppi")
),
cms.PSet(
record = cms.string("JetCorrectionsRecord"),
tag = cms.string("JetCorrectorParametersCollection_"+dbfile+"_AK8PF"),
label= cms.untracked.string("AK8PF")
),
cms.PSet(
record = cms.string("JetCorrectionsRecord"),
tag = cms.string("JetCorrectorParametersCollection_"+dbfile+"_AK8PFchs"),
label= cms.untracked.string("AK8PFchs")
),
cms.PSet(
record = cms.string("JetCorrectionsRecord"),
tag = cms.string("JetCorrectorParametersCollection_"+dbfile+"_AK8PFPuppi"),
label= cms.untracked.string("AK8PFPuppi")
),
)
)
process.es_prefer_jec = cms.ESPrefer("PoolDBESSource",'jec')

### to activate the new JP calibration: using the data base
Expand Down