Undo cmsenv

eval `scram unsetenv -sh` #or -csh if you use c shell

pip in CMSSW

To include pip installed packages in cmsenv, try this link, which is available on LPC cluster, /cvmfs/cms-lpc.opensciencegrid.org/FNALLPC/lpc-scripts/. scram-pip installs for py2 by default. Make sure to do cmsenv again afterward to set up the python path.

In some old CMSSW versions, the pip package/library is there, but the executable isn't. Here is what you have to do:

HOME=$CMSSW_BASE python -m ensurepip --user
scram-pip -d $CMSSW_BASE/.local
cmsenv
HOME=$CMSSW_BASE pip install --no-cache-dir --user --upgrade pip

Docker and singularity HATS@LPC

Try this link

An alternative for grep and other software like grep

Try ripgrep. More details on this blog

Redirect root TTree::Scan()

See this link
root [0] ((TTreePlayer*)(ntuple->GetPlayer()))->SetScanRedirect(kTRUE);
root [1] ((TTreePlayer*)(ntuple->GetPlayer()))->SetScanFileName("output.txt");
root [2] ntuple->Scan();
File <output.txt> created
root [3] .! ls -l output.txt
-rw-r--r--  1 couet  staff  1825292 Sep  3 13:22 output.txt
root [4]

-- YousenZhang - 2020-10-01

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2020-10-19 - YousenZhang
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback