コード例 #1
0
# definition of a sequence of analyzers,
# the analyzers will process each event in this order
sequence = cfg.Sequence( [
    source,
    selected_muons,
    selected_electrons,
    selected_leptons,
    selected_photons,
    zeds,
    reco_tree,
    ] )


config = cfg.Config(
    components = selectedComponents,
    sequence = sequence,
    services = [],
    events_class = Events
)

if __name__ == '__main__':
    import sys
    from heppy.framework.looper import Looper

    def next():
        loop.process(loop.iEvent+1)

    loop = Looper( 'looper', config,
                   nEvents=100,
                   nPrint=0,
                   timeReport=True)
    loop.process(6)
コード例 #2
0
ファイル: analysis.py プロジェクト: pmandrik/FCC-hh_analyses
    #selected_pfjets02,
    selected_pfjets04,
    #selected_pfjets08,
    selected_bjets,
    # reco_tree_check,
    selection,
    # reco_tree_fakephotons,
    reco_tree,
    # stopper
])

config = cfg.Config(
    components=selectedComponents_full_v2,
    # components = selectedComponents_full,
    # components = selectedComponents_new,
    # components = testComponents,
    # components = signalComponents,
    sequence=sequence,
    services=[],
    events_class=Events)

if __name__ == '__main__':
    import sys
    from heppy.framework.looper import Looper

    def next():
        loop.process(loop.iEvent + 1)

    loop = Looper('looper', config, nEvents=100, nPrint=0, timeReport=True)
    loop.process(6)
    print loop.event