elif not options.doMiniAOD and not options.doJetToolbox: jetCollection = 'selectedPatJets' + params['algo'].upper( ) + 'PF' + pu_method #jetCollection = params['algo']+'PFJets'+pu_method+PUSuffix.upper().replace("L1","L1Fast") ################################################# ## Controls the JER and JES used in the analyzer ################################################# from Analysis.JMEDAS.JetDepot import JetDepot if not options.UncertaintyOTF: if options.JESUncertainty != 'none': process, jetCollection = JetDepot( process, sequence=algorithm + 'Sequence', JetTag=cms.InputTag(jetCollection), JetType=params['jec_payloads'][index], jecUncDir=1 if options.JESUncertainty == "up" else -1, doSmear=False, jerUncDir=0) if options.JERUncertainty != 'none': process, jetCollection = JetDepot( process, sequence=algorithm + 'Sequence', JetTag=cms.InputTag(jetCollection), JetType=params['jec_payloads'][index], jecUncDir=0, doSmear=True, jerUncDir=1 if options.JERUncertainty == "up" else -1 if options.JERUncertainty == "down" else 0) #################################################
jetCollection = 'updatedPatJetsUpdatedJEC'+params['jec_payloads'][index] elif not options.doMiniAOD and not options.doJetToolbox: jetCollection = 'selectedPatJets'+params['algo'].upper()+'PF'+pu_method #jetCollection = params['algo']+'PFJets'+pu_method+PUSuffix.upper().replace("L1","L1Fast") ################################################# ## Controls the JER and JES used in the analyzer ################################################# from Analysis.JMEDAS.JetDepot import JetDepot if not options.UncertaintyOTF: if options.JESUncertainty!='none': process, jetCollection = JetDepot(process, sequence=algorithm + 'Sequence', JetTag=cms.InputTag(jetCollection), JetType=params['jec_payloads'][index], jecUncDir=1 if options.JESUncertainty=="up" else -1, doSmear=False, jerUncDir=0 ) if options.JERUncertainty!='none': process, jetCollection = JetDepot(process, sequence=algorithm + 'Sequence', JetTag=cms.InputTag(jetCollection), JetType=params['jec_payloads'][index], jecUncDir=0, doSmear=True, jerUncDir=1 if options.JERUncertainty=="up" else -1 if options.JERUncertainty=="down" else 0 ) ################################################# ## Controls the vertex collection used in the analyzer