Beispiel #1
0
        'keep *_mcStat_*_*',
        'keep *_skimmedGeneralTracks_*_*',
        'keep recoGenParticles_genParticles_*_*',
        'keep *_preselectedPatJets_*_*',
        'keep patMuons_patMuons_*_*',
        'keep patElectrons_patElectrons_*_*',
        'keep *_patMETsNoHF_*_*',
        'keep recoBeamSpot_offlineBeamSpot_*_*',
        'keep recoVertexs_offlinePrimaryVertices_*_*',
        'keep *_TriggerResults_*_HLT',
        'keep *_TriggerResults_*_PAT',
        'keep GenEventInfoProduct_generator_*_*',
        'keep *_addPileupInfo_*_*',
        ]

process = pat_tuple_process(customize_before_unscheduled, is_mc)
process.out.fileName = 'miniaod.root'

process.out.outputCommands += [
    # these three get added to the end somehow
    'drop patMETs_patPFMetPuppi__PAT',
    'drop patMETs_patCaloMet__PAT',
    'drop patMETs_patMETPuppi__PAT',
    ]

process.skimmedGeneralTracks = cms.EDProducer('MFVSkimmedTracks')

process.patJets.embedPFCandidates = True
process.preselectedPatJets = process.selectedPatJets.clone(cut = process.jtupleParams.jetPresel)
process.patMuons.embedTrack = True
process.patElectrons.embedTrack = True
Beispiel #2
0
from JMTucker.Tools.MiniAOD_cfg import cms, pat_tuple_process
from JMTucker.Tools.CMSSWTools import *

# 3 magic lines, don't touch
is_mc = True
njets = 2
nbjets = 0

ints = typed_from_argv(int, default_value=[], return_multiple=True)
if len(ints) > 0:
    if len(ints) != 2:
        raise RuntimeError("if you put any ints there must be two")
    njets, nbjets = ints


process = pat_tuple_process(None, is_mc=is_mc)

tfileservice(process, "movedtree.root")
random_service(process, {"mfvVertices": 12179, "mfvMovedTracks": 13068})

if is_mc:
    process.mcStat.histos = True

process.patMuons.embedTrack = False
process.patElectrons.embedTrack = False

del process.outp
del process.out

for p in process.paths.keys():
    if p.startswith("Flag_"):