Skip to content

How to link to correctionlib from a CMSSW module #86

Answered by nsmith-
nsmith- asked this question in Q&A
Discussion options

You must be logged in to vote

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 line

<use name="correctionlib"/>

to 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:

  1. First check if scram tool info correctionlib is an acceptable version, if so skip to the last step.
  2. Install correctionlib, preferably in a way that is portable with your CMSSW environment (e.g. pip install --prefix $CMSSW_BASE/local or use scram-pip)
  3. Create an appropriate…

Replies: 3 comments 5 replies

Comment options

nsmith-
May 13, 2021
Maintainer Author

You must be logged in to vote
3 replies
@nsmith-
Comment options

nsmith- May 28, 2021
Maintainer Author

@nsmith-
Comment options

nsmith- Jun 16, 2021
Maintainer Author

@makortel
Comment options

Answer selected by nsmith-
Comment options

nsmith-
Aug 12, 2021
Maintainer Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@nsmith-
Comment options

nsmith- Oct 8, 2021
Maintainer Author

@pieterdavid
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants