Exemple #1
0
def get_my_component(ps_name):
  from os import listdir
  from os.path import isfile, join
  prefix = "root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v02/" + ps_name + "//"
  mypath = "/eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v02/" + ps_name
  try:
    files_list = [prefix + f for f in listdir(mypath) if isfile(join(mypath, f)) and f.endswith('.root')]
    print files_list
    return cfg.MCComponent(ps_name, files=files_list)
  except:
    return None
Exemple #2
0
def load_components(pattern=None, mode=None):
    if mode and mode not in ['pythia', 'heppy']:
        raise ValueError(
            "if you provide mode, it should be set to 'pythia' or 'heppy'")
    print 'loading all components:'
    base = SampleBase(basedir(), pattern)
    treenames = [
        'fcc_ee_higgs.analyzers.ZHTreeProducer.ZHTreeProducer_1/tree.root',
        'heppy.analyzers.examples.zh.ZHTreeProducer.ZHTreeProducer_1/tree.root',
        'heppy.analyzers.examples.missE.TreeProducer.TreeProducer_1/tree.root'
    ]
    components = dict()
    for name in sorted(base.keys()):
        info = base[name]
        name = info.name
        files = []
        rootfile = None
        tree = None
        sampledir = info['sample']['directory']
        if mode is None:
            files = read_pythia(sampledir)
            files, rootfile, tree = read_heppy(sampledir, treenames)
        elif mode == 'pythia':
            files = read_pythia(sampledir)
        elif mode == 'heppy':
            files, rootfile, tree = read_heppy(sampledir, treenames)
        if len(files) == 0:
            continue  # skipping heppy components in pythia mode, and vice versa
        oldest_ancestor = base.oldest_ancestor(info)
        xSection = oldest_ancestor['sample']['xsection'] * 1e9  # now in pb
        nGenEvents = oldest_ancestor['sample']['nevents']
        global_eff = 1.
        for ancestor in base.ancestors(info):
            eff = float(ancestor['sample']['njobs_ok']) / float(
                ancestor['sample']['njobs'])
            global_eff *= eff
        comp = cfg.MCComponent(name=name,
                               files=files,
                               xSection=xSection,
                               nGenEvents=nGenEvents,
                               effCorrFactor=global_eff)
        print comp.name
        print comp.files
        if rootfile and tree:
            comp.rootfile = rootfile
            comp.tree = tree
        components[name] = comp
        print name
    return components
logging.shutdown()
reload(logging)
logging.basicConfig(level=logging.WARNING)

#selectedComponents = [
#  MinBiasDistribution_100TeV_DelphesFCC_CMSJets,
#  MinBiasDistribution_13TeV_DelphesCMS_CMSJets
#]

# Retrieving the sample to analyse

#sampleName = _heppyGlobalOptions["sample"]
#sample = globals()[sampleName]

test_classification = cfg.MCComponent(
    'test_classification_1kevents',
    files=["../FCCSW/test_classification_1kevents.root"])

selectedComponents = [
    NeutrinoGun_PU140_14TeV_OnlyGenParticleClassification_JetPTMin_3_PropagatedGenJetAtECAL_VertexSpread
]

# Defining pdgids

pdgIds = {'electron-': 11, 'muon-': 13, 'tau-': 15, 'photon': 22}

source = cfg.Analyzer(
    Reader,

    #gen_particles = 'skimmedGenParticles',
Exemple #4
0
cmsMatching_SingleNeutrinoPU140_BarrelOnly_HT = cfg.MCComponent(
    "cmsMatching_SingleNeutrinoPU140_BarrelOnly_HT",
    tree_name="ComputeMHT/htTree",
    files=[
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.0.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.100.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.101.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.102.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.103.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.104.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.105.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.106.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.107.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.108.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.109.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.10.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.110.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.111.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.112.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.113.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.114.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.115.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.116.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.117.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.118.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.119.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.11.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.120.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.121.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.122.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.123.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.124.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.125.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.126.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.127.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.128.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.129.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.12.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.130.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.131.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.132.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.13.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.14.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.15.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.16.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.17.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.18.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.19.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.1.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.20.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.21.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.22.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.23.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.24.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.25.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.26.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.27.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.28.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.29.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.2.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.30.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.31.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.32.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.33.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.34.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.35.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.36.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.37.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.38.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.39.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.3.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.40.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.41.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.42.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.43.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.44.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.45.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.46.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.47.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.48.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.49.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.4.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.50.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.51.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.52.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.53.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.54.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.55.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.56.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.57.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.58.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.59.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.5.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.60.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.61.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.62.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.63.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.64.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.65.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.66.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.67.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.68.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.69.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.6.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.70.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.71.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.72.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.73.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.74.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.75.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.76.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.77.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.78.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.79.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.7.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.80.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.81.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.82.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.83.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.84.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.85.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.86.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.87.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.88.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.89.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.8.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.90.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.91.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.92.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.93.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.94.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.95.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.96.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.97.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.98.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.99.root",
        "/hdfs/FCC-hh/l1tGenJetMatching_BarrelMHT_BarrelHT_SingleNeutrinoPU140/l1tGenJetMatching_BarrelMHT_SingleNeutrinoPU140_3680835.9.root",
    ],
    gen_object="ht",
    nGenEvents=500000)
import os 
import heppy.framework.config as cfg
import heppy.utils.absglob as absglob
import compfiles

   
# basedir = '/afs/cern.ch/user/c/cbern/FCC/fcc_ee_higgs/pythia'
basedir = '/afs/cern.ch/user/c/cbern/work/FCC/fcc_ee_higgs/pythia'

if os.getcwd().startswith('/Users'):
    basedir = '/Users/cbernet/Code/FCC/fcc_ee_higgs/samples/pythia'

# definition of input samples 
ZH = cfg.MCComponent(
    'ZH',
    files = compfiles.get('{}/ZH'.format(basedir)),
    xSection = 2e-1, # pb-1
    nGenEvents = 840e3)

ZZ = cfg.MCComponent(
    'ZZ',
    files = compfiles.get('{}/ZZ'.format(basedir)),
    xSection = 1.360, # pb-1
    nGenEvents = 16.2e6)

WW = cfg.MCComponent(
    'WW',
    files = compfiles.get('{}/WW'.format(basedir)),
    # files = compfiles.get ('WW/Job_*/ee_WW.root'),
    xSection = 16.330, # pb-1
    nGenEvents = 8.5e6)
    import ast
    ptBins = ast.literal_eval(_heppyGlobalOptions["binning"])

if "convolutionFileName" in _heppyGlobalOptions:
    convolutionFileName = _heppyGlobalOptions["convolutionFileName"]

if "sample" in _heppyGlobalOptions:
    sampleName = _heppyGlobalOptions["sample"]

selectedComponents = []

if sampleName == "delphesSample":
    delphesSample = cfg.MCComponent(
        'delphesSample',
        tree_name=_heppyGlobalOptions["treeName"],
        files=[_heppyGlobalOptions["sampleFileName"]],
        gen_object=genObjectName,
        trigger_object=triggerObjectName,
    )
    selectedComponents = [delphesSample]

# Retrieving the sample to analyse


def isGenObjectWithinDetectorAcceptance(ptc):
    # pass if in barrel momentum is lower than threshold
    if ((abs(ptc.eta()) < barrelEta) and (ptc.pt() > minimumPtInBarrel)):
        return True
    # If not in barrel check if it is in the endcap acceptance
    if ((abs(ptc.eta()) >= barrelEta) and (abs(ptc.eta()) < endcapEta)
            and (ptc.pt() > minimumPtInEndcap)):
Exemple #7
0
pp_jj_HT_0_500 = cfg.MCComponent(
    'pp_jj_HT_0_500',
    files=[
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events0.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events1.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events2.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events3.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events4.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events5.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events6.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events7.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events8.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events9.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events10.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events11.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events12.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events13.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events14.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events15.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events16.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events17.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events18.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events19.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events20.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events21.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events22.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events23.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events24.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events25.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events26.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events27.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events28.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events29.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events30.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events31.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events32.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events33.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events34.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events35.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events36.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events37.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events38.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events39.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events40.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events41.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events42.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events43.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events44.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events45.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events46.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events48.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events49.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events50.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events51.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events52.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events53.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events54.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events55.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events56.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events57.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events58.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events59.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events60.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events61.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events62.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events63.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events64.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events65.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events66.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events67.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events68.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events69.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events70.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events71.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events72.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events73.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events74.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events75.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events76.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events77.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events78.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events79.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events80.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events81.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events82.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events83.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events84.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events85.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events86.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events87.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events88.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events89.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events90.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events91.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events92.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events93.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events94.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events95.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events96.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events97.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events98.root',
        'root://eospublic.cern.ch//eos/experiment/fcc/hh/generation/DelphesEvents/fcc_v01/pp_jj012j_5f_HT_0_500/events99.root'
    ])
if "binning" in _heppyGlobalOptions:
    import ast
    muon_ptBins = ast.literal_eval(_heppyGlobalOptions["binning"])

if "convolutionFileName" in _heppyGlobalOptions:
    convolutionFileName = _heppyGlobalOptions["convolutionFileName"]

if "sample" in _heppyGlobalOptions:
    sampleName = _heppyGlobalOptions["sample"]

if sampleName == "delphesMuonSample":
    delphesMuonSample = cfg.MCComponent(
        'delphesMuonSample',
        tree_name="genMuonSimL1TMuonTree",
        files=[_heppyGlobalOptions["sampleFileName"]],
        gen_object="muon",
        trigger_object="SimL1TMuon",
    )
    selectedComponents = [delphesMuonSample]
selectedComponents = []

# Retrieving the sample to analyse


def isGenMuonWithinDetectorAcceptance(ptc):
    # pass if in barrel momentum is lower than threshold
    if ((abs(ptc.eta()) < barrelEta) and (ptc.pt() > minimumPtInBarrel)):
        return True
    # If not in barrel check if it is in the endcap acceptance
    if ((abs(ptc.eta()) >= barrelEta) and (abs(ptc.eta()) < detectorEta)
Exemple #9
0
import heppy.statistics.rrandom as random
random.seed(0xdeadbeef)

# definition of the collider
from heppy.configuration import Collider
Collider.BEAMS = 'ee'
Collider.SQRTS = 91.

# input definition

basedir = '/afs/cern.ch/user/c/cbern/FCC/fcc_ee_ddbar/samples/pythia'

import heppy.utils.absglob as absglob
import compfiles
ee_Z_ddbar = cfg.MCComponent(
    'ee_Z_ddbar',
    files=compfiles.get('{}/Z'.format(basedir)),
)

ee_Z_ddbar.splitFactor = len(ee_Z_ddbar.files)
# ee_Z_ddbar.splitFactor = 1

selectedComponents = [ee_Z_ddbar]

# read FCC EDM events from the input root file(s)
# do help(Reader) for more information
from heppy.analyzers.fcc.Reader import Reader
source = cfg.Analyzer(Reader,
                      gen_particles='GenParticle',
                      gen_vertices='GenVertex')

from heppy.analyzers.P4SumBuilder import P4SumBuilder
Exemple #10
0
import os
import heppy.framework.config as cfg
import heppy.utils.absglob as absglob
import compfiles
from basedir import basedir

# definition of input samples
ZHnunu = cfg.MCComponent(
    'ZHnunu',
    files=compfiles.get('{}/ee_to_ZH_Z_to_nunu_Jun21_A_1'.format(basedir)),
    xSection=0.013,  # pb-1
    nGenEvents=100 * 5000)

# ZZnunu = cfg.MCComponent(
#     'ZZnunu',
#     files = compfiles.get('{}/ZZnunu/June21'.format(basedir)),
#     xSection = 1.360, # pb-1
#     nGenEvents = 200*5000*34870/5000.)

ZZ = cfg.MCComponent(
    'ZZ',
    files=compfiles.get('{}/ee_to_ZZ_Sep12_A_2'.format(basedir)),
    xSection=1.360,  # pb-1
    nGenEvents=200 * 5000 * 34870 / 5000.)

ffbar = cfg.MCComponent(
    'ffbar',
    files=compfiles.get('{}/ee_to_ffbar_Sep12_B_4'.format(basedir)),
    xSection=1.360,  # pb-1
    nGenEvents=200 * 5000 * 34870 / 5000.)