babymaker  e95a6a9342d4604277fe7cc6149b6b5b24447d89
Functions | Variables
bmaker_full_cfg Namespace Reference

Functions

def findFileInPath (theFile)
 

Variables

tuple options = VarParsing('analysis')
 
 outName = options.outputFile
 
tuple rootfile = basename(options.inputFiles[0])
 
 doSystematics = True
 
 doJEC = False
 JECs must be undone and reapplied when rerunning b-tagging => if doJEC = False, DeepCSV discriminator will not be included. More...
 
string jecLabel = 'onthefly_Spring16_23Sep2016V2_MC'
 
 jecCorrLabel = jecLabel
 
 jecBabyLabel = jecLabel
 
 isData = True
 If you only want to re-correct and get the proper uncertainties, no reclustering. More...
 
string globalTag = "80X_dataRun2_2016SeptRepro_v6"
 
string processRECO = "RECO"
 
list jecLevels = ['L1FastJet', 'L2Relative', 'L3Absolute', 'L2L3Residual']
 
tuple process = cms.Process("Baby")
 Defining Baby process, input and output files. More...
 
tuple fileNames = cms.untracked.vstring(options.inputFiles)
 
tuple jsonfile = findFileInPath(options.json)
 
tuple condor_subtime = cms.string(options.condorSubTime)
 Setting global tag From https://twiki.cern.ch/twiki/bin/view/CMSPublic/WorkBookJetEnergyCorrections#JecGlobalTag. More...
 
tuple outputFile = cms.string(outName)
 
tuple inputFiles = cms.vstring(options.inputFiles)
 
tuple json = cms.string(options.json)
 
tuple jec = cms.string(jecBabyLabel)
 
tuple met = cms.InputTag("slimmedMETs")
 
tuple met_nohf = cms.InputTag("slimmedMETsNoHF")
 
tuple jets = cms.InputTag(jets_label)
 
tuple nEventsSample = cms.uint32(options.nEventsSample)
 
tuple doMetRebalancing = cms.bool(True)
 
tuple addBTagWeights = cms.bool(True)
 
tuple isFastSim = cms.bool(fastsim)
 
tuple debugMode = cms.bool(False)
 
tuple allowUnscheduled = cms.untracked.bool(True)
 Setting up number of events, and reporing frequency. More...
 
tuple wantSummary = cms.untracked.bool(False)
 
tuple connect = cms.string('sqlite_fip:babymaker/data/jec/'+jecLabel+'.db')
 
tuple toGet
 
tuple jetSource = cms.InputTag('slimmedJets')
 
string labelName = 'UpdatedJEC'
 
tuple jetCorrections = ('AK4PFchs', cms.vstring(jecLevels), 'None')
 
list btagDiscriminators
 
 fixEE2017 = True,
 
dictionary fixEE2017Params = {'userawPt': True, 'ptThreshold':50.0, 'miniEtaThreshold':2.65, 'maxEtaThreshold':3.139}
 
string postfix = "ModifiedMET"
 

Function Documentation

def bmaker_full_cfg.findFileInPath (   theFile)

Definition at line 8 of file bmaker_full_cfg.py.

Variable Documentation

tuple bmaker_full_cfg.addBTagWeights = cms.bool(True)

Definition at line 144 of file bmaker_full_cfg.py.

Referenced by bmaker_full.analyze().

tuple bmaker_full_cfg.allowUnscheduled = cms.untracked.bool(True)

Setting up number of events, and reporing frequency.

_____________Bad charged candidate filter________________|| _____________Bad muon filter_____________________________||

Definition at line 174 of file bmaker_full_cfg.py.

list bmaker_full_cfg.btagDiscriminators
Initial value:
1 = ["pfDeepCSVJetTags:probudsg",
2  "pfDeepCSVJetTags:probb",
3  "pfDeepCSVJetTags:probc",
4  "pfDeepCSVJetTags:probbb",
5  "pfDeepCSVJetTags:probcc"]

Definition at line 200 of file bmaker_full_cfg.py.

tuple bmaker_full_cfg.condor_subtime = cms.string(options.condorSubTime)
tuple bmaker_full_cfg.connect = cms.string('sqlite_fip:babymaker/data/jec/'+jecLabel+'.db')

Definition at line 182 of file bmaker_full_cfg.py.

tuple bmaker_full_cfg.debugMode = cms.bool(False)

Definition at line 146 of file bmaker_full_cfg.py.

bmaker_full_cfg.doJEC = False

JECs must be undone and reapplied when rerunning b-tagging => if doJEC = False, DeepCSV discriminator will not be included.

Definition at line 53 of file bmaker_full_cfg.py.

Referenced by jet_met_tools.getJetCorrections(), and jet_met_tools.getMETWithJEC().

tuple bmaker_full_cfg.doMetRebalancing = cms.bool(True)

Definition at line 142 of file bmaker_full_cfg.py.

Referenced by bmaker_full.analyze().

tuple bmaker_full_cfg.doSystematics = True
tuple bmaker_full_cfg.fileNames = cms.untracked.vstring(options.inputFiles)

Definition at line 109 of file bmaker_full_cfg.py.

bmaker_full_cfg.fixEE2017 = True,

Definition at line 213 of file bmaker_full_cfg.py.

dictionary bmaker_full_cfg.fixEE2017Params = {'userawPt': True, 'ptThreshold':50.0, 'miniEtaThreshold':2.65, 'maxEtaThreshold':3.139}

Definition at line 214 of file bmaker_full_cfg.py.

string bmaker_full_cfg.globalTag = "80X_dataRun2_2016SeptRepro_v6"

Definition at line 94 of file bmaker_full_cfg.py.

tuple bmaker_full_cfg.inputFiles = cms.vstring(options.inputFiles)

Definition at line 135 of file bmaker_full_cfg.py.

bmaker_full_cfg.isData = True
tuple bmaker_full_cfg.isFastSim = cms.bool(fastsim)
tuple bmaker_full_cfg.jec = cms.string(jecBabyLabel)

Definition at line 137 of file bmaker_full_cfg.py.

bmaker_full_cfg.jecBabyLabel = jecLabel

Definition at line 85 of file bmaker_full_cfg.py.

bmaker_full_cfg.jecCorrLabel = jecLabel

Definition at line 83 of file bmaker_full_cfg.py.

string bmaker_full_cfg.jecLabel = 'onthefly_Spring16_23Sep2016V2_MC'

Definition at line 63 of file bmaker_full_cfg.py.

list bmaker_full_cfg.jecLevels = ['L1FastJet', 'L2Relative', 'L3Absolute', 'L2L3Residual']

Definition at line 96 of file bmaker_full_cfg.py.

tuple bmaker_full_cfg.jetCorrections = ('AK4PFchs', cms.vstring(jecLevels), 'None')

Definition at line 199 of file bmaker_full_cfg.py.

tuple bmaker_full_cfg.jets = cms.InputTag(jets_label)

Definition at line 140 of file bmaker_full_cfg.py.

Referenced by jet_met_tools.getBRanking().

tuple bmaker_full_cfg.jetSource = cms.InputTag('slimmedJets')

Definition at line 197 of file bmaker_full_cfg.py.

tuple bmaker_full_cfg.json = cms.string(options.json)

Definition at line 136 of file bmaker_full_cfg.py.

tuple bmaker_full_cfg.jsonfile = findFileInPath(options.json)

Definition at line 113 of file bmaker_full_cfg.py.

string bmaker_full_cfg.labelName = 'UpdatedJEC'

Definition at line 198 of file bmaker_full_cfg.py.

tuple bmaker_full_cfg.met = cms.InputTag("slimmedMETs")
tuple bmaker_full_cfg.met_nohf = cms.InputTag("slimmedMETsNoHF")

Definition at line 139 of file bmaker_full_cfg.py.

tuple bmaker_full_cfg.nEventsSample = cms.uint32(options.nEventsSample)

Definition at line 141 of file bmaker_full_cfg.py.

tuple bmaker_full_cfg.options = VarParsing('analysis')

Definition at line 19 of file bmaker_full_cfg.py.

string bmaker_full_cfg.outName = options.outputFile

Definition at line 41 of file bmaker_full_cfg.py.

tuple bmaker_full_cfg.outputFile = cms.string(outName)

Definition at line 134 of file bmaker_full_cfg.py.

string bmaker_full_cfg.postfix = "ModifiedMET"

Definition at line 215 of file bmaker_full_cfg.py.

tuple bmaker_full_cfg.process = cms.Process("Baby")

Defining Baby process, input and output files.

Definition at line 107 of file bmaker_full_cfg.py.

string bmaker_full_cfg.processRECO = "RECO"

Definition at line 95 of file bmaker_full_cfg.py.

tuple bmaker_full_cfg.rootfile = basename(options.inputFiles[0])

Definition at line 43 of file bmaker_full_cfg.py.

Referenced by main(), and mergeNtuples().

tuple bmaker_full_cfg.toGet
Initial value:
1 = cms.VPSet(
2  cms.PSet(
3  record = cms.string("JetCorrectionsRecord"),
4  tag = cms.string("JetCorrectorParametersCollection_"+jecCorrLabel+"_AK4PFchs"),
5  label = cms.untracked.string("AK4PFchs")
6  )
7  )

Definition at line 183 of file bmaker_full_cfg.py.

tuple bmaker_full_cfg.wantSummary = cms.untracked.bool(False)

Definition at line 175 of file bmaker_full_cfg.py.