Compton Online Analysis
From PREX Wiki
Jump to navigationJump to search
This page is written for people with little background on how the compton online analysis scripts work, but want to know more. The analyzer itself is maintained by Juan Carlos Cornejo, but the online scripts are maintained by AJ Zec. This page will focus on the latter.
The Directories
There are three main directories pertaining to the online analysis, which can be found on the compton machine in /home/compton/online/
:
CompMon/
: This directory contains the CompMon analyzer code, as well as the scripts that produce the runwise online plots. Also contains code to display a panguin-style window of those plots.aggregator/
: Contains the code used to make a series of plots for each snail.grand/
: Contains the code for making runwise and snailwise plots as well as the compton grand rootfile.
The Main Script: online.sh
The online script is run whenever a new production run is completed. The script is run as such: ./online.sh -r <run number>
. There are also a number of optional arguments:
--panguin
: Including this argument brings up a panguin-style window of the compton run plots.--rootfile
: During the online plotting process a rootfile containing run plots gets generated and then deleted. Invoking this flag means the file does not get deleted after execution.--nowebupload
: By default the run plots get turned into PDFs and moved into the compton web directory/group/prex/analysis/www/<prex2/crex>/compton/
. Invoking this flag skips that process.--replay
: By default the online script skips re-running this analyzer if a rootfile has already been generated for the specified run. Invoking this flag forces the analyzer to be re-run.--nogrand
: By default the online script generates a rootfile which is later used in the generation of the grand rootfile for either PREX-II or CREX. Invoking this flag skips that process.