예제 #1
0
def config():
    cfg = configtools.getConfig('data', 2016, CH, bunchcrossing='25ns')
    cfg["InputFiles"].set_input(
        ekppathC1=
        "srm://cmssrm-kit.gridka.de:8443/srm/managerv2?SFN=/pnfs/gridka.de/cms/disk-only/store/user/dsavoiu/Skimming/ZJet_DoubleMuon_Run2017C-PromptReco-v1/*.root",
        ekppathC2=
        "srm://cmssrm-kit.gridka.de:8443/srm/managerv2?SFN=/pnfs/gridka.de/cms/disk-only/store/user/dsavoiu/Skimming/ZJet_DoubleMuon_Run2017C-PromptReco-v2/*.root",
        ekppathC3=
        "srm://cmssrm-kit.gridka.de:8443/srm/managerv2?SFN=/pnfs/gridka.de/cms/disk-only/store/user/dsavoiu/Skimming/ZJet_DoubleMuon_Run2017C-PromptReco-v3/*.root",
    )
    cfg['JsonFiles'] = [
        os.path.join(
            configtools.getPath(), 'data/json/Cert_' + RUN +
            '_13TeV_PromptReco_Collisions17_JSON.txt')
    ]
    cfg['Jec'] = os.path.join(
        configtools.getPath(),
        '../JECDatabase/textFiles/' + JEC + '_DATA/' + JEC + '_DATA')
    cfg['VertexSummary'] = 'offlinePrimaryVerticesSummary'
    cfg = configtools.expand(cfg, [
        'nocuts', 'noalphanoetacuts', 'noetaphicleaning', 'basiccuts',
        'finalcuts'
    ], ['None', 'L1', 'L1L2L3', 'L1L2Res', 'L1L2L3Res'])
    configtools.remove_quantities(cfg, ['jet1qgtag'])
    return cfg
예제 #2
0
def config():
    cfg = configtools.getConfig('data', 2016, CH, JEC=JEC, IOV=RUN)
    cfg["InputFiles"].set_input(
        pathF=
        "{}/tberger/Skimming/ZJet_DoubleMuon_Run2016F-Legacy-07Aug2017-v1/*.root"
        .format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        pathG=
        "{}/tberger/Skimming/ZJet_DoubleMuon_Run2016G-Legacy-07Aug2017-v1/*.root"
        .format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        pathH=
        "{}/tberger/Skimming/ZJet_DoubleMuon_Run2016H-Legacy-07Aug2017-v1/*.root"
        .format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        # bmspathF="{}/tberger/Skimming/ZJet_DoubleMuon_Run2016F-Legacy-07Aug2017-v1/*.root".format(SE_PATH_PREFIXES['srm_gridka_nrg']),
        # bmspathG="{}/tberger/Skimming/ZJet_DoubleMuon_Run2016G-Legacy-07Aug2017-v1/*.root".format(SE_PATH_PREFIXES['srm_gridka_nrg']),
        # bmspathH="{}/tberger/Skimming/ZJet_DoubleMuon_Run2016H-Legacy-07Aug2017-v1/*.root".format(SE_PATH_PREFIXES['srm_gridka_nrg']),
        # ekppathF="{}/tberger/Skimming/ZJet_DoubleMuon_Run2016F-Legacy-07Aug2017-v1/*.root".format(SE_PATH_PREFIXES['srm_gridka_nrg']),
        # ekppathG="{}/tberger/Skimming/ZJet_DoubleMuon_Run2016G-Legacy-07Aug2017-v1/*.root".format(SE_PATH_PREFIXES['srm_gridka_nrg']),
        # ekppathH="{}/tberger/Skimming/ZJet_DoubleMuon_Run2016H-Legacy-07Aug2017-v1/*.root".format(SE_PATH_PREFIXES['srm_gridka_nrg']),
    )
    cfg['JsonFiles'] = [
        os.path.join(
            configtools.getPath(),
            'data/json/Cert_{}_13TeV_23Sep2016ReReco_Collisions16_JSON.txt'.
            format(RUN))
    ]

    cfg['VertexSummary'] = 'offlinePrimaryVerticesSummary'  # above skims do not contain 'goodOfflinePrimaryVerticesSummary'
    cfg['ProvideL2ResidualCorrections'] = True
    cfg = configtools.expand(cfg, ['basiccuts', 'finalcuts'],
                             ['None', 'L1', 'L1L2L3', 'L1L2Res', 'L1L2L3Res'])

    return cfg
예제 #3
0
def config():
    cfg = configtools.getConfig('data', 2016, CH, JEC=JEC, IOV=RUN)
    cfg["InputFiles"].set_input(
        # bmspathB1="{}/dsavoiu/Skimming/ZJet_DoubleEG_Run2016B-Legacy-07Aug2017_ver1-v1_egmSSbackport/*.root".format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        # bmspathB2="{}/dsavoiu/Skimming/ZJet_DoubleEG_Run2016B-Legacy-07Aug2017_ver2-v2_egmSSbackport/*.root".format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        # bmspathC="{}/dsavoiu/Skimming/ZJet_DoubleEG_Run2016C-Legacy-07Aug2017-v1_egmSSbackport/*.root".format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        # bmspathD="{}/dsavoiu/Skimming/ZJet_DoubleEG_Run2016D-Legacy-07Aug2017-v1_egmSSbackport/*.root".format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        # ekppathB1="{}/dsavoiu/Skimming/ZJet_DoubleEG_Run2016B-Legacy-07Aug2017_ver1-v1_egmSSbackport/*.root".format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        # ekppathB2="{}/dsavoiu/Skimming/ZJet_DoubleEG_Run2016B-Legacy-07Aug2017_ver2-v2_egmSSbackport/*.root".format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        # ekppathC="{}/dsavoiu/Skimming/ZJet_DoubleEG_Run2016C-Legacy-07Aug2017-v1_egmSSbackport/*.root".format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        # ekppathD="{}/dsavoiu/Skimming/ZJet_DoubleEG_Run2016D-Legacy-07Aug2017-v1_egmSSbackport/*.root".format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        pathB1="{}/dsavoiu/Skimming/ZJet_DoubleEG_Run2016B-Legacy-07Aug2017_ver1-v1_egmSSbackport/*.root".format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        pathB2="{}/dsavoiu/Skimming/ZJet_DoubleEG_Run2016B-Legacy-07Aug2017_ver2-v2_egmSSbackport/*.root".format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        pathC="{}/dsavoiu/Skimming/ZJet_DoubleEG_Run2016C-Legacy-07Aug2017-v1_egmSSbackport/*.root".format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        pathD="{}/dsavoiu/Skimming/ZJet_DoubleEG_Run2016D-Legacy-07Aug2017-v1_egmSSbackport/*.root".format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        # bmspathB1="{}/dsavoiu/Skimming/ZJet_DoubleEG_Run2016B-Legacy-07Aug2017_ver1-v1_egmSSbackport/*.root".format(SE_PATH_PREFIXES['srm_gridka_nrg']),
        # bmspathB2="{}/dsavoiu/Skimming/ZJet_DoubleEG_Run2016B-Legacy-07Aug2017_ver2-v2_egmSSbackport/*.root".format(SE_PATH_PREFIXES['srm_gridka_nrg']),
        # bmspathC="{}/dsavoiu/Skimming/ZJet_DoubleEG_Run2016C-Legacy-07Aug2017-v1_egmSSbackport/*.root".format(SE_PATH_PREFIXES['srm_gridka_nrg']),
        # bmspathD="{}/dsavoiu/Skimming/ZJet_DoubleEG_Run2016D-Legacy-07Aug2017-v1_egmSSbackport/*.root".format(SE_PATH_PREFIXES['srm_gridka_nrg']),
        # ekppathB1="{}/dsavoiu/Skimming/ZJet_DoubleEG_Run2016B-Legacy-07Aug2017_ver1-v1_egmSSbackport/*.root".format(SE_PATH_PREFIXES['srm_gridka_nrg']),
        # ekppathB2="{}/dsavoiu/Skimming/ZJet_DoubleEG_Run2016B-Legacy-07Aug2017_ver2-v2_egmSSbackport/*.root".format(SE_PATH_PREFIXES['srm_gridka_nrg']),
        # ekppathC="{}/dsavoiu/Skimming/ZJet_DoubleEG_Run2016C-Legacy-07Aug2017-v1_egmSSbackport/*.root".format(SE_PATH_PREFIXES['srm_gridka_nrg']),
        # ekppathD="{}/dsavoiu/Skimming/ZJet_DoubleEG_Run2016D-Legacy-07Aug2017-v1_egmSSbackport/*.root".format(SE_PATH_PREFIXES['srm_gridka_nrg']),
    )
    cfg['JsonFiles'] =  [os.path.join(configtools.getPath(),'data/json/Cert_{}_13TeV_23Sep2016ReReco_Collisions16_JSON.txt'.format(RUN))]

    cfg['ProvideL2ResidualCorrections'] = True
    cfg = configtools.expand(cfg, ['basiccuts', 'finalcuts'], ['None', 'L1', 'L1L2L3', 'L1L2Res', 'L1L2L3Res'])

    return cfg
예제 #4
0
def config():
    cfg = configtools.getConfig('data', 2016, 'mm', bunchcrossing='25ns')
    cfg["InputFiles"].set_input(
        #		ekppath="/storage/a/cheidecker/cmssw807_calo_freiburg/Zll_DoMuRun2016B-PromptReco-v1/*.root",
        #		ekppath="/storage/a/cheidecker/cmssw807_calo_naf/Zll_DoMuRun2016B-PromptReco-v1/*.root",
        #		ekppath="/storage/jbod/cheidecker/cmssw807_calo_noPUJetID/Zll_DoMuRun2016*-PromptReco-v2/*.root",
        ekppath=
        "/storage/sg/cheidecker/cmssw807_calo_noPUJetID/Zll_DoMuRun2016*-PromptReco-v*/*.root",
        nafpathB=
        "/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/rereco_2016-11-11/Zll_DoMuRun2016B-ReReco-v3/*.root",
        nafpathC=
        "/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/rereco_2016-11-11/Zll_DoMuRun2016C-ReReco-v1/*.root",
        nafpathD=
        "/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/rereco_2016-11-11/Zll_DoMuRun2016D-ReReco-v1/*.root",
        nafpathE=
        "/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/rereco_2016-11-11/Zll_DoMuRun2016E-ReReco-v1/*.root",
        nafpathF=
        "/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/rereco_2016-11-11/Zll_DoMuRun2016F-ReReco-v1/*.root",
        nafpathG=
        "/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/rereco_2016-11-11/Zll_DoMuRun2016G-ReReco-v1/*.root",
        nafpathH=
        "/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/rereco_2016-11-11/Zll_DoMuRun2016H-ReReco-v1/*.root"
        #		ekppath="/storage/gridka-nrg/store/user/cheideck/Skimming/cmssw807_calo_noPUJetID_freiburg/Zll_DoMuRun2016B-PromptReco-v2/*.root",
    )
    cfg = configtools.expand(cfg, [
        'nocuts', 'zcuts', 'noalphanoetacuts', 'noalphacuts', 'noetacuts',
        'finalcuts'
    ], ['None', 'L1', 'L1L2L3', 'L1L2L3Res'])
    #	cfg = configtools.expand(cfg, ['finalcuts'], ['L1L2L3Res'])
    configtools.remove_quantities(
        cfg, ['jet1btag', 'jet1qgtag', 'jet1ptl1l2l3', 'jet1res', 'jet1rc'])
    return cfg
예제 #5
0
def config():
    cfg = configtools.getConfig('mc', 2017, CH, JEC=JEC, JER=JER)
    cfg["InputFiles"].set_input(
        # bmspath3="{}/dsavoiu/Skimming/ZJet_DY3JetsToLL_Fall17-madgraphMLM_realistic_v10-v2/*.root".format(SE_PATH_PREFIXES['srm_gridka_nrg']),
        # ekppath3="{}/dsavoiu/Skimming/ZJet_DY3JetsToLL_Fall17-madgraphMLM_realistic_v10-v2/*.root".format(SE_PATH_PREFIXES['srm_gridka_nrg']),
        path=
        "{}/dsavoiu/Skimming/ZJet_DY3JetsToLL_Fall17-madgraphMLM_realistic_v10-v2/*.root"
        .format(SE_PATH_PREFIXES['xrootd_gridka_nrg']), )
    cfg['JsonFiles'] = [
        os.path.join(
            configtools.getPath(),
            'data/json/Cert_294927-306462_13TeV_PromptReco_Collisions17_JSON.txt'
        )
    ]

    cfg = configtools.expand(cfg, ['nocuts', 'basiccuts', 'finalcuts'],
                             ['None', 'L1', 'L1L2L3'])
    cfg['PileupWeightFile'] = os.path.join(
        configtools.getPath(),
        'data/pileup/mc_weights/mc17_DYJets_madgraph/PUWeights_BCDEF_17Nov2017_DY3JetsToLL_Fall17-madgraphMLM_realistic_v10-v2.root'
    )
    cfg['NumberGeneratedEvents'] = 4779068
    cfg['GeneratorWeight'] = 1.0
    cfg['CrossSection'] = 101.8 * 1.23  # from mc16 config

    cfg['VertexSummary'] = 'offlinePrimaryVerticesSummary'

    return cfg
예제 #6
0
def config():
    cfg = configtools.getConfig('data', 2016, CH, bunchcrossing='25ns')
    cfg["InputFiles"].set_input(
        #ekppath="/storage/jbod/tberger/SkimmingResults/Zll_DoElRun2016B-PromptReco-v2/*.root"
        ekppath0=
        "srm://dcache-se-cms.desy.de:8443/srm/managerv2?SFN=/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/reminiaod03Feb2017_metfix/Zll_DoElRun2016F-03Feb2017-v1/*.root",
        ekppath1=
        "srm://dcache-se-cms.desy.de:8443/srm/managerv2?SFN=/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/reminiaod03Feb2017_metfix/Zll_DoElRun2016G-03Feb2017-v1/*.root",
        nafpath0=
        "/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/reminiaod03Feb2017_metfix/Zll_DoElRun2016F-03Feb2017-v1/*.root",
        nafpath1=
        "/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/reminiaod03Feb2017_metfix/Zll_DoElRun2016G-03Feb2017-v1/*.root"
    )
    cfg['JsonFiles'] = [
        os.path.join(
            configtools.getPath(), 'data/json/Cert_' + RUN +
            '_13TeV_23Sep2016ReReco_Collisions16_JSON.txt')
    ]
    cfg['Jec'] = os.path.join(
        configtools.getPath(),
        '../JECDatabase/textFiles/' + JEC + '_DATA/' + JEC + '_DATA')
    cfg = configtools.expand(cfg, [
        'nocuts', 'noalphanoetacuts', 'noetaphicleaning', 'basiccuts',
        'finalcuts'
    ], ['None', 'L1', 'L1L2L3', 'L1L2Res', 'L1L2L3Res'])
    configtools.remove_quantities(cfg, ['jet1qgtag'])
    return cfg
예제 #7
0
def config():
    cfg = configtools.getConfig('data', 2016, CH, JEC=JEC, IOV=RUN)
    cfg["InputFiles"].set_input(
        pathB1=
        "{}/tberger/Skimming_94X/SingleMuon_Run2016B-17Jul2018_ver1-v1/*.root".
        format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        pathB2=
        "{}/tberger/Skimming_94X/SingleMuon_Run2016B-17Jul2018_ver2-v1/*.root".
        format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        pathC="{}/tberger/Skimming_94X/SingleMuon_Run2016C-17Jul2018-v1/*.root"
        .format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        pathD="{}/tberger/Skimming_94X/SingleMuon_Run2016D-17Jul2018-v1/*.root"
        .format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
    )
    cfg['JsonFiles'] = [
        os.path.join(
            configtools.getPath(),
            'data/json/Cert_{}_13TeV_23Sep2016ReReco_Collisions16_JSON.txt'.
            format(RUN))
    ]
    cfg['VertexSummary'] = 'offlinePrimaryVerticesSummary'  # above skims do not contain 'goodOfflinePrimaryVerticesSummary'
    cfg['ProvideL2ResidualCorrections'] = True
    cfg = configtools.expand(cfg, ['basiccuts', 'finalcuts'],
                             ['None', 'L1', 'L1L2L3', 'L1L2Res', 'L1L2L3Res'])
    return cfg
예제 #8
0
def config():
    cfg = configtools.getConfig('mc', 2016, CH, bunchcrossing='25ns')
    cfg["InputFiles"].set_input(
        #ekppath="/storage/jbod/tberger/SkimmingResults/Zll_DYJetsToLL_M-50_amcatnloFXFX-Summer16-pythia8_25ns/Zll_DYJetsToLL_M-50_amcatnloFXFX-pythia8_RunIISummer16/*.root"
        #ekppath="srm://grid-srm.physik.rwth-aachen.de:8443/srm/managerv2?SFN=/pnfs/physik.rwth-aachen.de/cms/store/user/tberger/Zll_DYJetsToLL_M-50_amcatnloFXFX-pythia8_RunIISummer16/*.root"
        #ekppath="srm://dcache-se-cms.desy.de:8443/srm/managerv2?SFN=/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/dataminiaod_BC_2016-10-24/Zll_DYJetsToLL_M-50_amcatnloFXFX-pythia8_25nsv2_v0-v1/*.root"
        #ekppath="/storage/jbod/tberger/SkimmingResults/Zll_DYJetsToLL_M-50_amcatnloFXFX-pythia8_25nsv2_v0-v1/*.root"
        ekppath=
        "srm://dcache-se-cms.desy.de:8443/srm/managerv2?SFN=/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/MC-Summer16_metfix/Zll_DYJetsToLL_M-50_amcatnloFXFX-pythia8_RunIISummer16/*.root",
        nafpath=
        "/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/MC-Summer16_metfix/Zll_DYJetsToLL_M-50_amcatnloFXFX-pythia8_RunIISummer16/*.root"
    )
    cfg['JsonFiles'] = [
        os.path.join(
            configtools.getPath(), 'data/json/Cert_' + RUN +
            '_13TeV_23Sep2016ReReco_Collisions16_JSON.txt')
    ]
    cfg['Jec'] = os.path.join(
        configtools.getPath(),
        '../JECDatabase/textFiles/' + JEC + '_MC/' + JEC + '_MC')
    cfg = configtools.expand(
        cfg, ['nocuts', 'noalphanoetacuts', 'basiccuts', 'finalcuts'],
        ['None', 'L1', 'L1L2L3'])
    configtools.remove_quantities(cfg, ['jet1qgtag'])
    cfg['PileupWeightFile'] = os.path.join(
        configtools.getPath(), 'data/pileup/pileup_weights_' + RUN +
        '_13TeV_23Sep2016ReReco_Zll_DYJetsToLL_M-50_amcatnloFXFX-pythia8_RunIISummer16.root'
    )
    cfg['NumberGeneratedEvents'] = 11043183  #28968252 # for: amc@nlo
    cfg['GeneratorWeight'] = 0.670123731536
    cfg['CrossSection'] = 1921.8 * 3
    return cfg
예제 #9
0
def config():
    cfg = configtools.getConfig('mc', 2017, CH)
    cfg["InputFiles"].set_input(
        ekppathB=
        "srm://cmssrm-kit.gridka.de:8443/srm/managerv2?SFN=/pnfs/gridka.de/cms/disk-only/store/user/dsavoiu/Skimming/ZJet_DYJetsToLL_Fall17-amcatnloFXFX_PU2017RECOPF_12Apr2018_realistic_v14-v1/*.root",
        #ekppathB="/storage/gridka-nrg/dsavoiu/Skimming/ZJet_DYJetsToLL_Fall17-amcatnloFXFX_PU2017RECOPF_12Apr2018_realistic_v14-v1/*.root",
    )
    cfg['JsonFiles'] = [
        os.path.join(
            configtools.getPath(),
            'data/json/Cert_294927-306462_13TeV_PromptReco_Collisions17_JSON.txt'
        )
    ]
    cfg['Jec'] = os.path.join(
        configtools.getPath(),
        '../JECDatabase/textFiles/' + JEC + '_MC/' + JEC + '_MC')

    cfg = configtools.expand(cfg, ['nocuts', 'basiccuts', 'finalcuts'],
                             ['None', 'L1', 'L1L2L3'])

    cfg['PileupWeightFile'] = os.path.join(
        configtools.getPath(),
        'data/pileup/mc_weights/mc17_DYJets_amcatnlo/PUWeights_BCDEF_17Nov2017_DYJetsToLL_Fall17-amcatnloFXFX_PU2017RECOPF_12Apr2018_realistic_v14-v1.root'
    )
    cfg['NumberGeneratedEvents'] = 4999851
    cfg['GeneratorWeight'] = 1.0
    cfg['CrossSection'] = 1012.5 * 1.23  # from mc16 config

    return cfg
예제 #10
0
def config():
    cfg = configtools.getConfig('mc', 2016, CH, bunchcrossing='25ns')
    cfg["InputFiles"].set_input(
        #bmspath="srm://grid-srm.physik.rwth-aachen.de:8443/srm/managerv2?SFN=/pnfs/physik.rwth-aachen.de/cms/store/user/tberger/Zll_DYJetsToLL_M-50_amcatnloFXFX-pythia8_RunIISummer16/*.root"
        #bmspath="srm://dcache-se-cms.desy.de:8443/srm/managerv2?SFN=/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/dataminiaod_BC_2016-10-24/Zll_DYJetsToLL_M-50_amcatnloFXFX-pythia8_25nsv2_v0-v1/*.root"
        bmspath=
        "srm://dcache-se-cms.desy.de:8443/srm/managerv2?SFN=/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/MC-Summer16_metfix/Zll_DYJetsToLL_M-50_madgraphMLM-pythia8_RunIISummer16/*.root",
        nafpath=
        "/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/MC-Summer16_metfix/Zll_DYJetsToLL_M-50_madgraphMLM-pythia8_RunIISummer16/*.root",
    )
    cfg['JsonFiles'] = [
        os.path.join(
            configtools.getPath(), 'data/json/Cert_' + RUN +
            '_13TeV_23Sep2016ReReco_Collisions16_JSON.txt')
    ]
    cfg['Jec'] = os.path.join(
        configtools.getPath(),
        '../JECDatabase/textFiles/' + JEC + '_MC/' + JEC + '_MC')
    cfg = configtools.expand(
        cfg, ['nocuts', 'noalphanoetacuts', 'basiccuts', 'finalcuts'],
        ['None', 'L1', 'L1L2L3'])

    cfg['PileupWeightFile'] = os.path.join(
        configtools.getPath(), 'data/pileup/PUWeights_' + RUN +
        '_13TeV_23Sep2016ReReco_DYJetsToLL_M-50_amcatnloFXFX-pythia8_RunIISummer16.root'
    )
    cfg['NumberGeneratedEvents'] = 49144274  # for: HT-full_madgraphMLM
    cfg['GeneratorWeight'] = 1.0
    cfg['CrossSection'] = 1921.8 * 3
    return cfg
예제 #11
0
def config():
    cfg = configtools.getConfig('mc', 2017, CH, JEC=JEC, JER=JER)
    cfg["InputFiles"].set_input(
        path=
        "{}/cheideck/Skimming/ZJet_DY4JetsToLL_Fall17-madgraphMLM_realistic_v10-v1/*.root"
        .format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        # bmspath4="{}/dsavoiu/Skimming/ZJet_DY4JetsToLL_Fall17-madgraphMLM_realistic_v10-v1/*.root".format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        # ekppath4="{}/dsavoiu/Skimming/ZJet_DY4JetsToLL_Fall17-madgraphMLM_realistic_v10-v1/*.root".format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
    )
    cfg['JsonFiles'] = [
        os.path.join(
            configtools.getPath(),
            'data/json/Cert_294927-306462_13TeV_PromptReco_Collisions17_JSON.txt'
        )
    ]

    cfg = configtools.expand(cfg, ['nocuts', 'basiccuts', 'finalcuts'],
                             ['None', 'L1', 'L1L2L3'])
    cfg['PileupWeightFile'] = os.path.join(
        configtools.getPath(),
        'data/pileup/mc_weights/mc17_DYJets_madgraph/PUWeights_BCDEF_17Nov2017_DY4JetsToLL_Fall17-madgraphMLM_realistic_v10-v1.root'
    )
    cfg['NumberGeneratedEvents'] = 4337967
    cfg['GeneratorWeight'] = 1.0
    cfg['CrossSection'] = 54.8 * 1.23  # from mc16 config

    cfg['VertexSummary'] = 'offlinePrimaryVerticesSummary'

    cfg['ElectronID'] = 'user'  # old ID no longer written out in new skim
    cfg['ApplyElectronVID'] = True
    cfg['ElectronVIDName'] = "Fall17-94X-V1"
    cfg['ElectronVIDType'] = "cutbased_v2"
    cfg['ElectronVIDWorkingPoint'] = "tight"

    return cfg
예제 #12
0
def config():
    cfg = configtools.getConfig('mc',
                                2016,
                                CH,
                                JEC=JEC,
                                JER=JER,
                                bunchcrossing='25ns')
    cfg["InputFiles"].set_input(
        path=
        "{}/tberger/Skimming_94X/DYJetsToLL_amcatnloFXFX-pythia8_RunIISummer16/*.root"
        .format(SE_PATH_PREFIXES['xrootd_gridka_nrg']), )

    # cfg = configtools.expand(cfg, ['nocuts','noalphanoetacuts','basiccuts','finalcuts'], ['None', 'L1', 'L1L2L3'])
    cfg = configtools.expand(cfg, ['basiccuts', 'finalcuts'],
                             ['None', 'L1L2L3'])

    cfg['PileupWeightFile'] = os.path.join(
        configtools.getPath(), 'data/pileup/PUWeights_' + RUN +
        '_13TeV_23Sep2016ReReco_DYJetsToLL_M-50_amcatnloFXFX-pythia8_RunIISummer16.root'
    )

    cfg['NumberGeneratedEvents'] = 11043183  #28968252 # for: amc@nlo
    cfg['GeneratorWeight'] = 0.670123731536
    cfg['CrossSection'] = 1921.8 * 3

    return cfg
예제 #13
0
def config():
    cfg = configtools.getConfig('mc', 2018, 'mm', bunchcrossing='25ns')
    cfg["InputFiles"].set_input(
        #ekppath='/storage/c/tberger/testfiles/skimming_output/mc/ZJet_DYJetsToLL_amcatnloFXFX-pythia8_RunIISummer16_testfile.root',
        #bmspath='/storage/c/tberger/testfiles/skimming_output/mc/ZJet_DYJetsToLL_amcatnloFXFX-pythia8_RunIISummer16_localtestfile.root',
        #ekppath='/storage/c/tberger/testfiles/skimming_output/mc/ZJet_DYJetsToLL_amcatnloFXFX-pythia8_RunIISummer16_inclPFcand_testfile.root',
        #nafpath="/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/testfiles/Zll_DYJetsToLL_M-50_amcatnloFXFX-pythia8_RunIISummer16_testfile_noJTB.root",
        #bmspath='/ceph/mschnepf/skimming/job_0_output.root'
        bmspath='root://cmsxrootd-redirectors.gridka.de//pnfs/gridka.de/cms/disk-only/store/user/mschnepf/Skimming/ZJet_DYJetsToLL_M-50_TuneCP5_13TeV-amcatnloFXFX-pythia8/*.root'


        )
    cfg = configtools.expand(cfg, 
                                ['nocuts','leptoncuts','genleptoncuts', 'allleptoncuts','zjetcuts','genzjetcuts','allzjetcuts'],
                                ['None','L1','L1L2L3'])#,'zcuts','genzcuts','allzcuts'
    configtools.remove_quantities(cfg, ['jet1flavor','jet1rc'])
    configtools.add_quantities(cfg, [   'mu1IDSFWeight', 'mu2IDSFWeight', 'leptonIDSFWeight',
                                        'mu1IsoSFWeight','mu2IsoSFWeight','leptonIsoSFWeight',
                                        'mu1TrackingSFWeight','mu2TrackingSFWeight','leptonTrackingSFWeight',  
                                        'mu1TriggerSFWeight','mu2TriggerSFWeight','leptonTriggerSFWeight',     
                                        'jet1puidraw',
                                        ])
##### Add Producers: #####
    cfg['Processors'] = [  'producer:MuonTriggerMatchingProducer',
                            ] + cfg['Processors'] + [
                            'producer:LeptonIDSFProducer',
                            'producer:LeptonIsoSFProducer',
#                            'producer:LeptonTrackingSFProducer',
                            'producer:LeptonTriggerSFProducer',
                            'producer:LeptonSFProducer',
                            ]
    cfg['Processors'].insert(cfg['Processors'].index('producer:ValidMuonsProducer'), 'producer:MuonCorrectionsProducer',)
##### Specify input sources for Jets & Muons: #####
    cfg['VertexSummary'] = 'offlinePrimaryVerticesSummary'
    cfg['ValidMuonsInput'] = "corrected"
    cfg['GenJets'] = 'ak4GenJetsNoNu'   # JTB switched off
    cfg['TaggedJets'] = 'ak4PFJetsCHS'
#    cfg['Jec'] = os.path.join(configtools.getPath(), '../JECDatabase/textFiles/Summer16_07Aug2017_V11_MC/Summer16_07Aug2017_V11_MC') ## need to be updated when available
##### Change selection: (see also http://cms.cern.ch/iCMS/analysisadmin/cadilines?line=SMP-17-002&tp=an&id=1891&ancode=SMP-17-002) #####
    cfg['MuonIso'] = 'loose_2018'
    cfg['MuonID'] = 'tight'
    cfg['CutMuonPtMin'] = 25.0
    cfg['CutMuonEtaMax'] = 2.4
    cfg['ZMassRange'] = 20.0
    cfg['CutLeadingJetPtMin'] = 15.0
    cfg['MinPUJetID'] = -9999
    cfg['HltPaths'] = ['HLT_IsoMu24', 'HLT_IsoTkMu24']
    cfg["MuonTriggerFilterNames"] = ['HLT_IsoMu24_v2:hltL3crIsoL1sMu22L1f0L2f10QL3f24QL3trkIsoFiltered0p09','HLT_IsoTkMu24_v3:hltL3fL1sMu22L1f0Tkf24QL3trkIsoFiltered0p09']
##### LeptonSF files: #####
## https://twiki.cern.ch/twiki/bin/view/CMS/MuonPOG ##
    cfg['LeptonIDSFRootfile'] = os.path.join(configtools.getPath(),"data/scalefactors/2017/ID_EfficienciesAndSF_BCDEF_Nov17Nov2017.root")
    cfg['LeptonIsoSFRootfile'] = os.path.join(configtools.getPath(),"data/scalefactors/2017/Iso_EfficienciesAndSF_BCDEF_Nov17Nov2017.root")
    cfg['LeptonTriggerSFRootfile'] = os.path.join(configtools.getPath(),"data/scalefactors/2017/Trigger_EfficienciesAndSF_BCDEF_Nov17Nov2017.root")
#    cfg['LeptonTrackingSFRootfile'] = os.path.join(configtools.getPath(),"data/scalefactors/2016latest/Tracking_EfficienciesAndSF_BCDEFGH.root")
##### MC specific properties: #####
    cfg['NumberGeneratedEvents'] = 122055388 # from geteventsscript
    cfg['GeneratorWeight'] =  0.670123731536
    cfg['CrossSection'] = 1921.8*3
    cfg['PileupWeightFile'] = os.path.join(configtools.getPath() , 'data/pileup/PUWeights_BCDEFGH_13TeV_23Sep2016ReReco_DYJetsToLL_M-50_amcatnloFXFX-pythia8_RunIISummer16.root')
    return cfg
예제 #14
0
def config():
    cfg = configtools.getConfig('mc', 2018, CH, JEC=JEC, JER=JER)
    cfg["InputFiles"].set_input(
        path1=
        "{}/cheideck/Skimming/ZJet_DY1JetsToLL_Autumn18_LHEZpT_250-400_amcnloFXFX-pythia8_upgrade2018_realistic_v15-v1/*.root"
        .format(SE_PATH_PREFIXES['xrootd_gridka_nrg']), )

    cfg = configtools.expand(cfg, ['basiccuts', 'finalcuts'],
                             ['None', 'L1', 'L1L2L3'])

    cfg['PileupWeightFile'] = os.path.join(
        configtools.getPath(),
        'data/pileup/mc_weights/mc18_DYJets_madgraph/PUWeights_ABCD_17Sep2018_DY1JetsToLL_Autumn18-madgraphMLM_realistic_v15-v2.root'
    )

    cfg['NumberGeneratedEvents'] = 7531281
    cfg['GeneratorWeight'] = 0.63369392272
    cfg['CrossSection'] = 1.098  # from XSDB: https://cms-gen-dev.cern.ch/xsdb/?searchQuery=DAS=DY1JetsToLL_M-50_LHEZpT_250-400_TuneCP5_13TeV-amcnloFXFX-pythia8

    cfg['VertexSummary'] = 'goodOfflinePrimaryVerticesSummary'

    # for testing JetID differences
    cfg['JetIDVersion'] = 2018  # for object-based JetID
    cfg['CutJetIDVersion'] = 2018  # for event-based JetID

    cfg['PUJetIDModuleName'] = 'pileupJetId'

    return cfg
예제 #15
0
def config():
    cfg = configtools.getConfig('data', 2016, 'mm', bunchcrossing='25ns')
    cfg["InputFiles"].set_input(
        ekppath=
        "srm://dcache-se-cms.desy.de:8443/srm/managerv2?SFN=/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/dataminiaod_BC_2016-10-24/Zll_SiMuRun2016B-PromptReco-v2/*.root",
        #ekppath='/storage/a/afriedel/zjets/data_miniAOD_singleMu_run2016D.root',
        nafpathB=
        '/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/dataminiaod_BC_2016-10-24/Zll_SiMuRun2016B-PromptReco-v2/*.root',
        nafpathC=
        '/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/dataminiaod_BC_2016-10-24/Zll_SiMuRun2016C-PromptReco-v2/*.root',
        nafpathD=
        '/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/dataminiaod_BC_2016-10-24/Zll_SiMuRun2016D-PromptReco-v2/*.root',
    )
    cfg = configtools.expand(cfg, ['zcuts', 'leptoncuts'], ['None'], True)
    configtools.remove_quantities(
        cfg, ['jet1btag', 'jet1qgtag', 'jet1ptl1l2l3', 'jet1res', 'jet1rc'])
    cfg['MuonID'] = 'tight'
    cfg['MuonIso'] = 'loose'
    cfg['LeptonSFRootfile'] = configtools.getPath(
    ) + "/data/scalefactors/2016/SFData_ICHEP.root"
    cfg['LeptonTriggerSFRootfile'] = configtools.getPath(
    ) + "/data/scalefactors/2016/SFTriggerData.root"
    cfg['HltPaths'] = ['HLT_IsoMu22', 'HLT_IsoTkMu22']
    #cfg['UseHighPtID'] = True
    return cfg
예제 #16
0
def config():
    cfg = configtools.getConfig('mc', 2018, CH, JEC=JEC, JER=JER)
    cfg["InputFiles"].set_input(
        bmspath3=
        "{}/dsavoiu/Skimming/ZJet_DY3JetsToLL_Autumn18-madgraphMLM_realistic_v15-v2/*.root"
        .format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        ekppath3=
        "{}/dsavoiu/Skimming/ZJet_DY3JetsToLL_Autumn18-madgraphMLM_realistic_v15-v2/*.root"
        .format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
        sg0path3=
        "{}/dsavoiu/Skimming/ZJet_DY3JetsToLL_Autumn18-madgraphMLM_realistic_v15-v2/*.root"
        .format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
    )

    cfg = configtools.expand(cfg, ['basiccuts', 'finalcuts'],
                             ['None', 'L1', 'L1L2L3'])

    cfg['PileupWeightFile'] = os.path.join(
        configtools.getPath(),
        'data/pileup/mc_weights/mc18_DYJets_madgraph/PUWeights_ABCD_17Sep2018_DY3JetsToLL_Autumn18-madgraphMLM_realistic_v15-v2.root'
    )

    cfg['NumberGeneratedEvents'] = 5652357
    cfg['GeneratorWeight'] = 1.0
    cfg['CrossSection'] = 111.5  # from XSDB

    cfg['VertexSummary'] = 'goodOfflinePrimaryVerticesSummary'

    return cfg
예제 #17
0
def config():
    cfg = configtools.getConfig('data', 2016, 'ee', bunchcrossing='25ns')
    cfg["InputFiles"].set_input(
        #		ekppath="/storage/a/wayand/data2016_nopujetid_v1/DoubleEG/crab_Zll_DoElRun2016B-PromptReco-v1/160524_222650/0000/*.root",
        ekppath=
        "/storage/sg/cheidecker/cmssw807_calo_noPUJetID/Zll_DoElRun2016*-PromptReco-v*/*.root",
        nafpathB=
        "/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/rereco_2016-11-11/Zll_DoElRun2016B-ReReco-v3/*.root",
        nafpathC=
        "/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/rereco_2016-11-11/Zll_DoElRun2016C-ReReco-v1/*.root",
        nafpathD=
        "/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/rereco_2016-11-11/Zll_DoElRun2016D-ReReco-v1/*.root",
        nafpathE=
        "/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/rereco_2016-11-11/Zll_DoElRun2016E-ReReco-v1/*.root",
        nafpathF=
        "/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/rereco_2016-11-11/Zll_DoElRun2016F-ReReco-v1/*.root",
        nafpathG=
        "/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/rereco_2016-11-11/Zll_DoElRun2016G-ReReco-v1/*.root",
        nafpathH=
        "/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/rereco_2016-11-11/Zll_DoElRun2016H-ReReco-v1/*.root"
    )
    cfg = configtools.expand(cfg, [
        'nocuts', 'zcuts', 'noalphanoetacuts', 'noalphacuts', 'noetacuts',
        'finalcuts'
    ], ['None', 'L1', 'L1L2L3', 'L1L2L3Res'])
    configtools.remove_quantities(
        cfg, ['jet1btag', 'jet1qgtag', 'jet1ptl1l2l3', 'jet1res', 'jet1rc'])
    return cfg
예제 #18
0
def config():
	cfg = configtools.getConfig('data', 2015, 'mm', bunchcrossing='25ns')
	cfg["InputFiles"].set_input(
		ekppath="/storage/8/wayand/gc_zjets/full_lep_v4/crab_Zll_DoMuRun2015D-16Dec2015-v1/results//*.root",
	)
	cfg = configtools.expand(cfg, ['nocuts', 'zcuts', 'noalphanoetacuts', 'noalphacuts', 'noetacuts', 'finalcuts'], ['None', 'L1', 'L1L2L3', 'L1L2L3Res'])
	configtools.remove_quantities(cfg, ['jet1btag', 'jet1qgtag', 'jet1ptl1l2l3', 'jet1res', 'jet1rc'])
	return cfg
예제 #19
0
def config():
    cfg = configtools.getConfig('data', 2016, 'mm', bunchcrossing='25ns')
    cfg["InputFiles"].set_input(
        ekppath=
        "srm://dcache-se-cms.desy.de:8443/srm/managerv2?SFN=/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/dataminiaod_BC_2016-10-24/Zll_SiMuRun2016C-PromptReco-v2/*.root",
        #ekppath='/storage/a/afriedel/zjets/data_miniAOD_singleMu_run2016D.root',
    )
    cfg = configtools.expand(cfg, ['zcuts', 'leptoncuts'], ['None'], True)
    configtools.remove_quantities(
        cfg, ['jet1btag', 'jet1qgtag', 'jet1ptl1l2l3', 'jet1res', 'jet1rc'])
    return cfg
예제 #20
0
def config():
	cfg = configtools.getConfig('mc', 2015, 'mm', bunchcrossing='25ns')
	cfg["InputFiles"].set_input(
		ekppath="/storage/a/wayand/cmss80x/*.root",
	)
	cfg = configtools.expand(cfg, ['nocuts', 'zcuts', 'noalphanoetacuts', 'noalphacuts', 'noetacuts', 'finalcuts'], ['None', 'L1', 'L1L2L3'])
	configtools.remove_quantities(cfg, ['jet1btag', 'jet1qgtag', 'jet1rc'])
	cfg['NumberGeneratedEvents'] = 29193937 #for: Zmm_Zmm_DYJetsToLL_M-50_amcatnloFXFX-pythia8_HCALDebug_25ns
#	cfg['GeneratorWeight'] =  0.665689483222 #for: Zmm_Zmm_DYJetsToLL_M-50_amcatnloFXFX-pythia8_HCALDebug_25ns
	cfg['CrossSection'] = 6025.2  # https://twiki.cern.ch/twiki/bin/viewauth/CMS/StandardModelCrossSectionsat13TeV
	return cfg
예제 #21
0
def config():
	cfg = configtools.getConfig('data', 2016, 'mm', bunchcrossing='25ns')
	cfg["InputFiles"].set_input(
		ekppath="/storage/sg/tberger/SkimmingResults/Zll_DoMuRun2016*-PromptReco-v*/*.root",
	)
	cfg['TaggedJets'] = 'ak4PFJetsPuppi'
	cfg['Met'] = 'metPuppi'
        cfg['RC'] = False
	cfg = configtools.expand(cfg, ['nocuts', 'zcuts', 'noalphanoetacuts', 'noalphacuts', 'noetacuts', 'finalcuts'], ['None', 'L1', 'L1L2L3', 'L1L2L3Res'])
	configtools.remove_quantities(cfg, ['jet1btag', 'jet1qgtag', 'jet1ptl1l2l3', 'jet1res', 'jet1rc'])
	return cfg
예제 #22
0
def config():
    cfg = configtools.getConfig('data', 2018, CH, JEC=JEC)
    cfg["InputFiles"].set_input(
        pathB="{}/dsavoiu/Skimming/ZJet_EGamma_Run2018B-17Sep2018-v1/*.root".format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
    )
    cfg['JsonFiles'] = [os.path.join(configtools.getPath(), 'data/json/{}'.format(GOLDEN_JSON))]

    cfg['VertexSummary'] = 'offlinePrimaryVerticesSummary'

    cfg['ProvideL2ResidualCorrections'] = True
    cfg = configtools.expand(cfg, ['basiccuts', 'finalcuts'], ['None', 'L1', 'L1L2L3', 'L1L2Res', 'L1L2L3Res'])
def config():
    cfg = configtools.getConfig('data', 2016, 'mm', JEC=JEC, IOV=RUN)
    cfg["InputFiles"].set_input(
        #path = '/portal/ekpbms1/home/tberger/Excalibur/CMSSW_9_4_12/src/Kappa/Skimming/zjet/output_numEvent100.root',
        pathF ='root://cmsxrootd-redirectors.gridka.de//store/user/tberger/Skimming_94X/SingleMuon_Run2016F-17Jul2018-v1/*.root',
        pathG ='root://cmsxrootd-redirectors.gridka.de//store/user/tberger/Skimming_94X/SingleMuon_Run2016G-17Jul2018-v1/*.root',
        pathH ='root://cmsxrootd-redirectors.gridka.de//store/user/tberger/Skimming_94X/SingleMuon_Run2016H-17Jul2018-v1/*.root',
    )
    cfg = configtools.expand(cfg, 
                                ['nocuts','zjetcuts'],
                                ['None','L1L2L3Res'])
    configtools.remove_quantities(cfg, [
        'jet1area','jet1l1', 'jet1rc', 'jet1l2','jet1ptraw', 'jet1ptl1','jet1ptl1l2l3', 'jet1res',
        #'jet2pt', 'jet2eta', 'jet2y', 'jet2phi',
        #'jet3pt', 'jet3eta', 'jet3y', 'jet3phi',
        'mpf', 'rawmpf', 'met', 'metphi', 'rawmet', 'rawmetphi', 'sumet','mettype1vecpt', 'mettype1pt',
        ])
    configtools.add_quantities(cfg, ['lepton'+x+'SFWeight'+y for x in ['ID','Iso','Trigger'] for y in ['Up','Down']])
##### Add Producers: #####
    cfg['Processors'].remove("producer:JetEtaPhiCleaner")
    cfg['Processors'] = ['producer:MuonTriggerMatchingProducer'] + cfg['Processors']
    cfg['Processors'].insert(cfg['Processors'].index('producer:ValidMuonsProducer'), 'producer:MuonCorrectionsProducer',)
    cfg['Processors'].insert(cfg['Processors'].index('producer:ValidMuonsProducer'), 'producer:PFCandidatesProducer',)
    cfg['Processors'].insert(cfg['Processors'].index('producer:ValidMuonsProducer')+1, 'producer:ZJetDressedMuonsProducer',)
##### Specify input sources for Jets & Muons: #####
    cfg['PackedPFCandidates'] = 'pfCandidates'
    cfg['MaxZJetDressedMuonDeltaR'] = 0.1
    cfg['VertexSummary'] = 'offlinePrimaryVerticesSummary'
    cfg['ValidMuonsInput'] = "corrected"
    cfg['UseObjectJetYCut'] = True
    cfg['TaggedJets'] = 'ak4PFJetsCHS'
    cfg['ProvideJECUncertainties'] = True
    cfg['JetEnergyCorrectionUncertaintyShift'] = -1
    cfg['JetID'] = 'loose'
    cfg['PUJetID'] = 'medium'
##### Change selection: (see also http://cms.cern.ch/iCMS/analysisadmin/cadilines?line=SMP-17-002&tp=an&id=1891&ancode=SMP-17-002) #####
    cfg['MuonIso'] = 'loose_2016'
    cfg['MuonID'] = 'tight'
    cfg['CutMuonPtMin'] = 25.0
    cfg['CutMuonEtaMax'] = 2.4
    cfg['ZMassRange'] = 20.0
    cfg['CutLeadingJetPtMin'] = 10.0
    cfg['MinPUJetID'] = -0.2
    cfg['HltPaths'] = ['HLT_IsoMu24', 'HLT_IsoTkMu24']
    cfg["MuonTriggerFilterNames"] = ['HLT_IsoMu24_v2:hltL3crIsoL1sMu22L1f0L2f10QL3f24QL3trkIsoFiltered0p09','HLT_IsoTkMu24_v3:hltL3fL1sMu22L1f0Tkf24QL3trkIsoFiltered0p09']
##### LeptonSF files: #####
    cfg['LeptonSFVariation'] = True
    cfg['LeptonIDSFRootfile']      = os.path.join(configtools.getPath(),"data/scalefactors/2016/RunGH_SF_ID.root")
    cfg['LeptonIsoSFRootfile']     = os.path.join(configtools.getPath(),"data/scalefactors/2016/RunGH_SF_ISO.root")
    cfg['LeptonTriggerSFRootfile'] = os.path.join(configtools.getPath(),"data/scalefactors/2016/RunGH_SF_Trigger.root")
##### Json & JEC #####
    cfg['JsonFiles'] = [os.path.join(configtools.getPath(),'data/json/Cert_GH_13TeV_23Sep2016ReReco_Collisions16_JSON.txt')]
    return cfg
def config():
    cfg = configtools.getConfig('mc', 2016, 'mm', JEC=JEC)
    cfg["InputFiles"].set_input(
        path="root://cmsxrootd-redirectors.gridka.de//store/user/tberger/Skimming_94X/TTJets_madgraphMLM-pythia8_RunIISummer16/*.root",
        )
    cfg = configtools.expand(cfg, 
                                ['nocuts','zjetcuts','genzjetcuts'],
                                ['None','L1L2L3'])
    configtools.remove_quantities(cfg, [
        'jet1area','jet1l1', 'jet1rc', 'jet1l2','jet1ptraw', 'jet1ptl1',
        #'jet2pt', 'jet2eta', 'jet2y', 'jet2phi',
        #'jet3pt', 'jet3eta', 'jet3y', 'jet3phi',
        'mpf', 'rawmpf', 'met', 'metphi', 'rawmet', 'rawmetphi', 'sumet','mettype1vecpt', 'mettype1pt',
        #'genjet2pt','genjet2eta','genjet2y','genjet2phi',
        #'genjet3pt','genjet3eta','genjet3y','genjet3phi',
        ])
##### Add Producers: #####
    cfg['Processors'] = ['producer:MuonTriggerMatchingProducer',] + cfg['Processors']
    cfg['Processors'].insert(cfg['Processors'].index('producer:ValidMuonsProducer'), 'producer:MuonCorrectionsProducer',)
    cfg['Processors'].insert(cfg['Processors'].index('producer:ValidMuonsProducer'), 'producer:PFCandidatesProducer',)
    cfg['Processors'].insert(cfg['Processors'].index('producer:ValidMuonsProducer')+1, 'producer:ZJetDressedMuonsProducer',)
    cfg['Processors'].insert(cfg['Processors'].index('producer:GenZmmProducer'), 'producer:ZJetGenPhotonsProducer',)
    cfg['Processors'].insert(cfg['Processors'].index('producer:GenZmmProducer'), 'producer:ZJetDressedGenMuonsProducer',)
    #cfg['Processors'].insert(cfg['Processors'].index('producer:GenZmmProducer'), 'producer:ZJetTrueGenMuonsProducer',)
##### Specify input sources for Jets & Muons: #####
    cfg['PackedPFCandidates'] = 'pfCandidates'
    cfg['MaxZJetDressedMuonDeltaR'] = 0.1
    cfg['VertexSummary'] = 'offlinePrimaryVerticesSummary'
    cfg['ValidMuonsInput'] = "corrected"
    cfg['GenJets'] = 'ak4GenJets'
    cfg['TaggedJets'] = 'ak4PFJetsPuppi'
    cfg['RC'] = False
    cfg['UseObjectJetYCut'] = True
    cfg['Jec'] = os.path.join(configtools.getPath(), '../JECDatabase/textFiles/Summer16_07Aug2017_V11_MC/Summer16_07Aug2017_V11_MC')
    cfg['JetID'] = 'loose'
    cfg['PUJetID'] = 'none'
##### Change selection: (see also http://cms.cern.ch/iCMS/analysisadmin/cadilines?line=SMP-17-002&tp=an&id=1891&ancode=SMP-17-002) #####
    cfg['MuonIso'] = 'loose_2016'
    cfg['MuonID'] = 'tight'
    cfg['CutMuonPtMin'] = 25.0
    cfg['CutMuonEtaMax'] = 2.4
    cfg['ZMassRange'] = 20.0
    cfg['CutLeadingJetPtMin'] = 10.0
    cfg['MinPUJetID'] = -9999
    cfg['HltPaths'] = ['HLT_IsoMu24', 'HLT_IsoTkMu24']
    cfg["MuonTriggerFilterNames"] = ['HLT_IsoMu24_v2:hltL3crIsoL1sMu22L1f0L2f10QL3f24QL3trkIsoFiltered0p09','HLT_IsoTkMu24_v3:hltL3fL1sMu22L1f0Tkf24QL3trkIsoFiltered0p09']
##### MC specific properties: #####
    cfg['NumberGeneratedEvents'] = 10139950
    cfg['GeneratorWeight'] =  1.0
    cfg['CrossSection'] = 511.3
    cfg['PileupWeightFile'] = os.path.join(configtools.getPath() , 'data/pileup/PUWeights_BCDEFGH_13TeV_23Sep2016ReReco_TTJets_madgraphMLM-pythia8_RunIISummer16.root')
    return cfg
예제 #25
0
def config():
	cfg = configtools.getConfig('mc', 2016, 'mm', bunchcrossing='25ns')
	cfg["InputFiles"].set_input(
		#ekppath="/storage/sg/cheidecker/cmssw807_calo_noPUJetID/Zll_DYJetsToLL_M-50_amcatnloFXFX-pythia8_25ns_v7/*.root",
		ekppath="/storage/jbod/tberger/Skimming/results-mc8014/Zll_DYJetsToLL_M-50_amcatnloFXFX-pythia8_25ns_v7/*.root",
		nafpathB="/pnfs/desy.de/cms/tier2/store/user/tberger/Skimming/MC/Zll_DYJetsToLL_M-50_madgraphMLM-pythia8_RunIISummer16D_AOD/*.root"
	)
	cfg = configtools.expand(cfg, ['nocuts', 'zcuts', 'noalphanoetacuts', 'noalphacuts', 'noetacuts', 'finalcuts'], ['None', 'L1', 'L1L2L3'])
	configtools.remove_quantities(cfg, ['jet1btag', 'jet1qgtag', 'jet1rc'])
	cfg['NumberGeneratedEvents'] = 28696958 #for: Zll_DYJetsToLL_M-50_amcatnloFXFX-pythia8_25ns_v7
	cfg['GeneratorWeight'] =  0.669888076639 #for: Zll_DYJetsToLL_M-50_amcatnloFXFX-pythia8_25ns_v7
	cfg['CrossSection'] = 6025.2  # https://twiki.cern.ch/twiki/bin/viewauth/CMS/StandardModelCrossSectionsat13TeV
	return cfg
예제 #26
0
def config():
    cfg = configtools.getConfig('data', 2015, 'mm', bunchcrossing='25ns')
    cfg["InputFiles"].set_input(
        ekppath=
        "/storage/a/mfischer/skims/zjet/2016-01-19/Zmm_Zmm_Run2015D-16Dec2015-v1/*.root",
        #old		nafpath="/pnfs/desy.de/cms/tier2/store/user/mafische/skims/MF_Zll_run2/2016-01-19/Zmm_Zmm_Run2015D-16Dec2015-v1/*.root",
    )
    cfg = configtools.expand(cfg, [
        'nocuts', 'zcuts', 'noalphanoetacuts', 'noalphacuts', 'noetacuts',
        'finalcuts'
    ], ['None', 'L1', 'L1L2L3', 'L1L2L3Res'])
    configtools.remove_quantities(
        cfg, ['jet1btag', 'jet1qgtag', 'jet1ptl1l2l3', 'jet1res', 'jet1rc'])
    return cfg
예제 #27
0
def config():
    cfg = configtools.getConfig('data', 2015, 'mm', bunchcrossing='25ns')
    cfg["InputFiles"].set_input(
        ekppath=
        "/storage/a/afriedel/freiburg/workdir-data-matched/se_output/Zll_SiMuRun2015D-16Dec2015-v2/*.root"
        #ekppath="/home/afriedel/CMSSW_7_6_4/src/Kappa/Skimming/zjet/skim76_jtb.root",
    )
    cfg = configtools.expand(cfg, [
        'nocuts', 'zcuts', 'noalphanoetacuts', 'noalphacuts', 'noetacuts',
        'finalcuts'
    ], ['None', 'L1', 'L1L2L3', 'L1L2L3Res'])
    configtools.remove_quantities(
        cfg, ['jet1btag', 'jet1qgtag', 'jet1ptl1l2l3', 'jet1res', 'jet1rc'])
    return cfg
예제 #28
0
def config():
    cfg = configtools.getConfig('data', 2017, CH, JEC=JEC)
    cfg["InputFiles"].set_input(
        ekppathF="{}/dsavoiu/Skimming/ZJet_DoubleMuon_Run2017F-09May2018-v1/*.root".format(SE_PATH_PREFIXES['srm_gridka_nrg']),
        bmspathF="{}/dsavoiu/Skimming/ZJet_DoubleMuon_Run2017F-09May2018-v1/*.root".format(SE_PATH_PREFIXES['srm_gridka_nrg']),
    )
    cfg['JsonFiles'] = [os.path.join(configtools.getPath(), 'data/json/Cert_294927-306462_13TeV_PromptReco_Collisions17_JSON.txt')]

    cfg['VertexSummary'] = 'offlinePrimaryVerticesSummary'

    cfg['ProvideL2ResidualCorrections'] = True
    cfg = configtools.expand(cfg, ['nocuts','basiccuts','finalcuts'], ['None', 'L1', 'L1L2L3', 'L1L2Res', 'L1L2L3Res'])

    return cfg
def config():
    cfg = configtools.getConfig('mc', 2016, CH, JEC=JEC, JER=JER)
    cfg["InputFiles"].set_input(
        # ekppath="{}/tberger/Skimming/MC-Summer16_metfix/Zll_DY3JetsToLL_M-50_madgraphMLM-pythia8_RunIISummer16/*.root".format(SE_PATH_PREFIXES['srm_desy_dcache']),
        # bmspath="{}/tberger/Skimming/MC-Summer16_metfix/Zll_DY3JetsToLL_M-50_madgraphMLM-pythia8_RunIISummer16/*.root".format(SE_PATH_PREFIXES['srm_desy_dcache']),
        # nafpath="{}/tberger/Skimming/MC-Summer16_metfix/Zll_DY3JetsToLL_M-50_madgraphMLM-pythia8_RunIISummer16/*.root".format(SE_PATH_PREFIXES['local_desy_dcache']),
        path="{}/dsavoiu/Skimming/ZJet_DY3JetsToLL_Summer16-madgraphMLM_asymptotic_2016_TrancheIV_v6-v1_egmSSbackport/*.root".format(SE_PATH_PREFIXES['xrootd_gridka_nrg']),
    )
    cfg = configtools.expand(cfg, ['basiccuts','finalcuts'], ['None', 'L1', 'L1L2L3'])
    cfg['PileupWeightFile'] = os.path.join(configtools.getPath() , 'data/pileup/PUWeights_'+RUN+'_13TeV_23Sep2016ReReco_DYJetsToLL_M-50_amcatnloFXFX-pythia8_RunIISummer16.root')
    cfg['NumberGeneratedEvents'] = 5856110
    cfg['GeneratorWeight'] = 1.0
    cfg['CrossSection'] = 101.8*1.23 # for: 3Jet_madgraphMLM
    return cfg
예제 #30
0
def config():
	cfg = configtools.getConfig('mc', 2016, 'mm', bunchcrossing='25ns')
	cfg["InputFiles"].set_input(
		ekppath="/storage/a/afriedel/workdir-mc2016/*.root",
		#ekppath='/home/afriedel/CMSSW_8_0_22/src/Kappa/Skimming/zjet/skim80_jtb.root',
		#ekppath="srm://dgridsrm-fzk.gridka.de:8443/srm/managerv2?SFN=/pnfs/gridka.de/dcms/disk-only/store/user/afriedel/Skimming/mc2016/MC_DYJets_to_LL/*.root"
	)	
	cfg = configtools.expand(cfg, ['zcuts',  'leptoncuts', 'genzcuts', 'genleptoncuts', 'allleptoncuts', 'allzcuts', 'nocuts'], ['None'])
	#cfg = configtools.expand(cfg, ['allleptoncuts', 'allzcuts'], ['None'])
	configtools.remove_quantities(cfg, ['jet1btag', 'jet1qgtag', 'jet1rc'])
	cfg['NumberGeneratedEvents'] = 104113466 #for:  /DYJetsToLL_M-50_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8/RunIIFall15DR76-PU25nsData2015v1_76X_mcRun2_asymptotic_v12_ext4-v1/AODSIM
	cfg['GeneratorWeight'] =  0.670104921874 #for: Zll_DYJetsToLL_M-50_amcatnloFXFX-pythia8_ext4_25ns
	cfg['CrossSection'] = 5765.4  # https://twiki.cern.ch/twiki/bin/viewauth/CMS/StandardModelCrossSectionsat13TeV
	return cfg