Skip to content

kakwok/MonLoggerReader

Repository files navigation

MonLoggerReader

Parse text files from monLogger

  1. To prepare a json:

python writejson.py --fileLocation="pathToTextFile"

  1. Configuration of json

flist : list of input monLogger txt files. Need to have the same number of columns within one file. Use # to skip loading the files

columnToShow : list of columns to be plotted. Use # to comment.

columnValueFiler : a list of dictionaries with keys "colname","value","operator" e.g.

   "columnValueFilter":[
       {
         "colname":"RBX",
         "value":"HEP20",
         "operator":"=="   # or [">=" , "<=", "!="]
      }
   ]
  1. Example commands:

python monlogReader.py --startTime="2018-08-29 18:00" --printConfig="MON_HCAL_NGRBX_PerHERBX.json" --ymax 1E6 --RBX HEM08

To see the table values or debug, use the --makeTable option.

To scan all RBXes for PLL diff: python monlogReader.py --startTime="2018-06-29 08:00" --printConfig="./mezzPLLdiff.json" --RBXes --odir diff_filtered --diff --makeTable --png

To analysis the output txt file: python monlogReader.py --startTime="2018-06-29 08:00" --printConfig="./merged.json" --makeTable --notMonLog

About

Parse text files from monLogger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published