-
Inside CMSSW, some may want to use an EDAnalyzer or other framework plugin with correctionlib. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
In the long term, the package will be part of cmsdist, and in fact v1.1 is already in the gcc900 externals: <use name="correctionlib"/> to the package If one wants a newer version than what is available in the externals, the following recipe may work:
#!/bin/bash
cat <<EOF > correctionlib.xml
<tool name="correctionlib" version="$(correction config --version)">
<lib name="correctionlib"/>
<client>
<environment name="INCLUDE" default="$(correction config --incdir)"/>
<environment name="LIBDIR" default="$(correction config --libdir)"/>
</client>
</tool>
EOF
<use name="correctionlib"/> to your package |
Beta Was this translation helpful? Give feedback.
-
Another option is to use pip-in-scram, as developed in https://github.com/FNALLPC/lpc-scripts/blob/master/scram-pip, also available at |
Beta Was this translation helpful? Give feedback.
-
In case it helps anyone: I turned the above instructions into a script (tested with CMSSW_10_6_29 for both python2 and python3) |
Beta Was this translation helpful? Give feedback.
In the long term, the package will be part of cmsdist, and in fact v1.1 is already in the gcc900 externals:
/cvmfs/cms.cern.ch/slc7_amd64_gcc900/external/py3-correctionlib
, as used in CMSSW 11_3_X releases. In that case, it should suffice to add the lineto the package
BuildFile.xml
to use it.If one wants a newer version than what is available in the externals, the following recipe may work:
scram tool info correctionlib
is an acceptable version, if so skip to the last step.pip install --prefix $CMSSW_BASE/local
or use scram-pip)