FCCAnalyses Chat

Juraj Smieško

CERN

07 December 2023

FCCAnalyses 0.8.0 Release

Release highlight: Logging levels + printouts

Discussion points:

  • Removal of python python/FCCAnalysisRun.py your_script.py
  • Metadata for the pre-generated samples
  • import FCCAnalyses
  • RDataSource

File metadata

Sample metadata

Sample output path example
/eos/experiment/fcc/prod/fcc/ee/winter2023/91.19gev/Zbb/idea/delphes/00012345/

import FCCAnalyses

import FCCAnalyses
import ROOT

ROOT.gROOT.SetBatch(True)

def main():
    '''
    Example analysis entry point
    '''

    fccana = FCCAnalyses.Analysis('Test Analysis')

    fccana.add_analyzers('examples/FCCee/import/AddAnalyzers.h')

    # fccana.add_files('examples/FCCee/import/test.root')

    dframe = fccana.get_dataframe(sample parameters / config object)
    dframe2 = dframe.Define("particles", "gen_particles()")
    dframe3 = dframe2.Define("particles_pt", "MCParticle::get_pt(particles)")
    hist = dframe3.Histo1D("particles_pt")
    hist.Print()

    canvas = ROOT.TCanvas("canvas", "", 450, 450)
    hist.Draw()
    canvas.Print('test.pdf')

if __name__ == '__main__':
    main()