|
LDMX Software
|
Python module focused on comparing two or more "similar" LDMX histogram files.
One may use this python module either inside or outside the ldmx-sw development container.
ldmx-swRun the dedicated just command to install
This is named 'install' because we used to install the ComparePlots module as well as its dependencies. Now we just install its dependencies and then run the ComparePlots module "from source".
ldmx-swOutside container it is helpful to put the ComparePlots module inside a virtual environment. This makes it easier to keep track of what you are doing and isolate the dependencies of ComparePlots from other python packages that may be on your system.
I store the virtual environment files in a directory called .venv/valid and tell venv to use valid as the prompt so I can see in my terminal that I have access to the ComparePlots package. After activating the virtual environment, I install the ComparePlots module's requirements.
Using ComparePlots without a virtual environment and outside of the container is not recommended.
The ComparePlots module is constructed to do some common tasks quickly on the command line. Running it can be accessed via just as well
For example if you would like to compare the ECAL shower features, put the input histograms into a directory, e.g. compareDir with names that are separated with an underscore, e.g. histo_new.root and histo_ref.root, then run the following command.
This will produce plots in the compareDir directory and will include "new" and "ref" in the plot legend.