Skip to content

TrigCost: Add CostAnalysisPostProcessing script

Aleksandra Poreba requested to merge aporeba/athena:cost-script into master

Migrate trigCostHistToCSV.cxx to a python script to convert ROOT histograms to csv tables.

The script takes one argument - inputFile (TrigCostRoot_Results.root as default), a result from TrigCostAnalysis (RunTrigCostAnalysis.py)

The script is exploring the saved directory tree with given structure:

rootDir
    tableDir1
        histDir1 (entryDir)
            hist1
            hist2
        histDir2
            hist1
    tableDir2

Per each table TableConstructor object is created and the following steps are executed:

  • initialize,
  • add expected histograms,
  • define columns,
  • cache histograms,
  • fill columns,
  • postprocessing,
  • normalization
  • save to csv file.

To specify behavior per each table, derived classes were defined. They are overloading base class functions responsible for defining expected histograms, defining and filling columns, and postprocessing.

Tagging @mark @tamartin

Merge request reports