The full Karma toolset (including skimming and ntuple-generating tools)
requires the CMS Software Framework (CMSSW). Any version starting with
CMSSW_8_0_X series should already contain all the required packages.
To install the Karma toolset inside a scram/CMSSW development area,
follow the instructions in the section titled
The PostProcessing tools Lumberjack and Palisade do not depend on CMSSW and can be installed independently. To do this, follow the instructions in the section titled Standalone below.
This section assumes you are familiar with CMSSW, that the
CERN Virtual File System (CVMFS) is mounted on your machine, and that you
have access to the CMS VO software repository on CVMFS. (normally
First, set up a scram/CMSSW working area, if you have not already done so:
$> export VO_CMS_SW_DIR=/cvmfs/cms.cern.ch $> source $VO_CMS_SW_DIR/cmsset_default.sh $> scramv1 project CMSSW CMSSW_10_2_8
The above commands will create a directory
CMSSW_10_2_8 containing a
scram working area for version
CMSSW_10_2_8 of CMSSW.
Next, switch to the
src subdirectory of your working area and clone the
Karma repository inside of it:
$> cd CMSSW_10_2_8/src $> git clone https://github.com/dsavoiu/Karma
Finally, activate the environment and compile all packages inside the source directory using scram:
$> eval `scramv1 runtime -sh` $> scram b -j10
That’s it! Now you should be able to run
on the command line and import the post-processing modules in Python.
$> python -c 'from Karma.PostProcessing import Lumberjack, Palisade' $> lumberjack.py --help $> palisade.py --help
Additionally, you may want to install the optional dependency
will allow Lumberjack and Palisade to display a progress bar in the command
line while running. You can install it with
pip by running:
$> pip install --user tqdm
Test this and add this section.