Skip to content

Instantly share code, notes, and snippets.

View oshadura's full-sized avatar
:octocat:

Oksana Shadura oshadura

:octocat:
  • CERN
  • Geneva
View GitHub Profile
DataFormats/Alignment is missing DataFormats/GeometrySurface
DataFormats/Alignment is missing DataFormats/CLHEP
DataFormats/Alignment is missing DataFormats/DetId
DataFormats/BTauReco is missing DataFormats/GeometryVector
DataFormats/BTauReco is missing DataFormats/Candidate
DataFormats/BTauReco is missing DataFormats/GeometryCommonDetAlgo
DataFormats/BTauReco is missing DataFormats/EgammaReco
DataFormats/BeamSpot is missing DataFormats/GeometrySurface
DataFormats/BeamSpot is missing DataFormats/Math
DataFormats/CSCDigi is missing DataFormats/MuonData

Thank you for the interest in "Enable the Mesh Memory Allocator in ROOT" project! As this project is a bit technical technical, it is necessary to have some understanding how memory allocation works in ROOT.

Build Mesh

For more information check: https://github.com/plasma-umass/Mesh

Build ROOT:

git clone https://github.com/root-project/root
mkdir root-build
cd root-build
@oshadura
oshadura / GSOC_ROOT_IO_2020.md
Last active February 18, 2020 13:54
GSOC exersice

Thank you for the interest in "Pre-conditioners applied to ROOT compression algorithms" project! As this project is a bit technical, it is necessary to have some understanding of ROOT file formats before starting to write proposal. This document is dedicated to give you an introduction of ROOT file formats, which you can try out.

Build ROOT with RNTuple file format support:

git clone https://github.com/root-project/root
mkdir root-build
cd root-build
cmake ../root -Droot7=ON -Dtesting=ON
make -j4
@oshadura
oshadura / gpg-import-and-export-instructions.md
Created January 21, 2020 12:59 — forked from chrisroos/gpg-import-and-export-instructions.md
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...

@oshadura
oshadura / delete_git_submodule.md
Created January 20, 2020 14:40 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
setenv ARCH slc7_amd64_gcc820
setenv PKGTOOLS_TAG V00-32-XX
setenv CMSDIST_TAG IB/CMSSW_11_1_X/rootmodule
git clone -b $CMSDIST_TAG [email protected]:cms-sw/cmsdist.git CMSDIST ; git clone -b $PKGTOOLS_TAG [email protected]:cms-sw/pkgtools.git PKGTOOLS
I have some local modifications to CMSDIST - see below -
#echo "check scram list CMSSW_11_0_X to see if it is week0 or week1 and adjust the next command"
#echo "then PKGTOOLS/cmsBuild --repo cms.week1 -a $ARCH -j 6 --builders 4 build cmssw-tool-conf > & go.1 &"
@oshadura
oshadura / cmssw_cheatsheet.md
Created October 10, 2019 15:22 — forked from vgvassilev/cmssw_cheatsheet.md
CMSSW Cheatsheet

Running CMSSW with custom ROOT build

Source what's needed:

ssh lxplus
bash
source /cvmfs/sft-nightlies.cern.ch/lcg/views/dev3/latest/x86_64-centos7-gcc8-opt/setup.sh
source /cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/cmake/3.14.5/etc/profile.d/init.sh
@oshadura
oshadura / gist:6d614b4cb2e3badbb1b571d7c991881c
Created July 19, 2019 14:13
How to build only one CMSSW module
996 cd /afs/cern.ch/work/o/oshadura/cmssw/
1000 source /cvmfs/cms.cern.ch/cmsset_default.sh
1001 cmsenv
1003 scram p CMSSW_11_0_CXXMODULE_X_2019-07-18-2300
1004 cd CMSSW_11_0_CXXMODULE_X_2019-07-18-2300/
1005 cmsenv
1006 git cms-addpkg DataFormats/TrackerCommon
1007 scram b
@oshadura
oshadura / llvm-clang-5-root-patches
Created June 12, 2019 13:41
llvm-clang-5-root-patches
cmake <build_dir> -DLLVM_ENABLE_WARNINGS=OFF -DLLVM_INCLUDE_TESTS=OFF -DCLANG_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_EXAMPLES=OFF -DCLANG_BUILD_TOOLS=OFF
-DCLANG_TOOL_ARCMT_TEST_BUILD=OFF -DCLANG_TOOL_CLANG_CHECK_BUILD=OFF -DCLANG_TOOL_CLANG_FORMAT_BUILD=OFF
-DCLANG_TOOL_CLANG_FORMAT_VS_BUILD=OFF -DCLANG_TOOL_CLANG_FUZZER_BUILD=OFF -DCLANG_TOOL_CLANG_IMPORT_TEST_BUILD=OFF
-DCLANG_TOOL_CLANG_OFFLOAD_BUNDLER_BUILD=OFF -DCLANG_TOOL_CLANG_RENAME_BUILD=OFF -DCLANG_TOOL_C_ARCMT_TEST_BUILD=OFF
-DCLANG_TOOL_C_INDEX_TEST_BUILD=OFF -DCLANG_TOOL_DIAGTOOL_BUILD=OFF -DCLANG_TOOL_LIBCLANG_BUILD=OFF
-DCLANG_TOOL_SCAN_BUILD_BUILD=OFF -DCLANG_TOOL_SCAN_VIEW_BUILD=OFF -DLLVM_BUILD_TOOLS=OFF -DLLVM_TOOL_LLVM_AR_BUILD=OFF
-DCLANG_TOOL_CLANG_OFFLOAD_BUNDLER_BUILD=OFF -DLLVM_FORCE_USE_OLD_TOOLCHAIN=ON -DCLANG_ENABLE_STATIC_ANALYZER=OFF
-DCLANG_ENABLE_ARCMT=OFF -DCLANG_ENABLE_FORMAT=OFF -DLLVM_TARGETS_TO_BUILD=host -DLLVM_ABI_BREAKING_CHECKS=FORCE_OFF
-DLLVM_ENABLE_ABI_BREAKING_CHECKS=OFF -DLLVM_INCLUDE_TOOLS=ON
@oshadura
oshadura / cmssw-updates
Last active June 12, 2019 13:37
CMSSW C++ modules
-bash-4.2$ git checkout IB/CMSSW_11_0_X/cxxmodule
-bash-4.2$ ./pkgtools/cmsBuild -a slc7_amd64_gcc700 --repo cms.week0 -c \\
./cmsdist -i build-cmssw-tool-conf/ -j 16 build cms-common cms-git-tools cmssw-tool-conf
scram -a slc7_amd64_gcc700 list CMSSW_11_0_CXXMODULE_X_