Skip to content

Instantly share code, notes, and snippets.

View nsahoo's full-sized avatar
🇮🇳

Niladri Sahoo nsahoo

🇮🇳
View GitHub Profile
@nsahoo
nsahoo / lumi_brilcalc
Created April 22, 2017 05:05
lumi calculation by brilcalc
brilcalc lumi -b "STABLE BEAMS" --normtag /afs/cern.ch/user/l/lumipro/public/Normtags/normtag_PHYSICS.json -i processedLumis.json -u /fb
@nsahoo
nsahoo / dasgoclient
Last active October 23, 2018 10:09
dasgoclient in DAS
###################################################
how to print out the #events in the given dataset
###################################################
./dasgoclient_linux --query="summary dataset=/WWJJToLNuQQ_LL_13TeV-madgraph-pythia8/RunIISpring16MiniAODv2-premix_withHLT_80X_mcRun2_asymptotic_v14-v1/MINIAODSIM"
cbf: https://hypernews.cern.ch/HyperNews/CMS/get/crabFeedback/8361.html
dasgoclient --query 'site dataset=/BsToMuMu_BMuonFilter_SoftQCDnonD_TuneCUEP8M1_13TeV-pythia8-evtgen/RunIISpring16DR80-premix_withHLT_80X_mcRun2_asymptotic_v14-v1/AODSIM'
@nsahoo
nsahoo / error @ DR step1 with premixing
Last active October 12, 2017 15:19
DR_error@step1
=> IT WAS A TEMPORARY ERROR BECAUSE OF SITE ISSUE TO ACCESS NEUTRINO GUN SAMPLE
[nsahoo@lxplus018 src]$ cmsRun BPH-RunIISummer16DR80Premix-00001_1_cfg.py
###################################################################
# WARNING: this module is deprecated. #
# Please use CondCore.CondDB.CondDB_cfi.py #
###################################################################
L1TCalorimeter Sequence configured for Stage-2 (2016) trigger.
L1TMuon Sequence configured for Stage-2 (2016) trigger.
L1TGlobal Sequence configured for Stage-2 (2016) trigger.
@nsahoo
nsahoo / perl
Created January 3, 2017 05:03
perl script to replace a particular string throughout the file
perl -pi -e "s/5000000/5000/g" *.py
and back again
perl -pi -e "s/5000/5000000/g" *.py
@nsahoo
nsahoo / merging script
Created November 22, 2016 13:37
merging many pdfs to a single file
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=merged.pdf \
source1.pdf source2.pdf source3.pdf
@nsahoo
nsahoo / config+evtgen
Last active December 19, 2016 09:45
how to get 13TeV gen config files and install EvtGen package
$ git cms-addpkg GeneratorInterface/ExternalDecays
$ git cms-addpkg GeneratorInterface/EvtGenInterface <--- OLD
$ git clone https://github.com/cms-data/GeneratorInterface-EvtGenInterface GeneratorInterface/EvtGenInterface <--- NEW
$ mkdir -p Configuration/GenProduction/
$ git clone [email protected]:cms-sw/genproductions.git Configuration/GenProduction/
@nsahoo
nsahoo / recipe
Last active July 13, 2016 05:49
filter efficiency numbers for 13TeV mc request
https://cms-pdmv.cern.ch/mcm/public/restapi/requests/get_setup/BPH-RunIISummer15GS-00001
cmsDriver.py Configuration/GenProduction/python/BPH-RunIISummer15GS-00001-fragment.py --fileout file:BPH-RunIISummer15GS-00001.root --mc --eventcontent RAWSIM --customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1,Configuration/DataProcessing/Utils.addMonitoring --datatier GEN-SIM --conditions MCRUN2_71_V1::All --beamspot Realistic50ns13TeVCollision --step GEN,SIM --magField 38T_PostLS1 --python_filename BPH-RunIISummer15GS-00001_1_cfg.py --no_exec -n 6066 || exit $? ;
@nsahoo
nsahoo / Lb2L0mm_bkg_samples
Last active February 13, 2016 06:03
background samples for LambdaB --> Lambda0 mu+ mu- analysis
/LambdaBToPsiMuMu_2MuPtEtaFilter_8TeV-pythia6-evtgen/Summer12_DR53X-PU_S10_START53_V7A-v2/AODSIM
/BdToMuMuK0_EtaPtFilter_8TeV-pythia6-evtgen/Summer12_DR53X-PU_S10_START53_V7C-v1/AODSIM
/B0ToPsiMuMu_2MuPtEtaFilter_8TeV-pythia6-evtgen/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM
/BdToKstarMuMu_EtaPtFilter_8TeV-pythia6-evtgen/Summer12_DR53X-PU_RD2_START53_V19F-v1/AODSIM
@nsahoo
nsahoo / 13TeV datasets and GT
Last active June 9, 2017 05:03
Run2 data/MC AOD(SIM) samples
#############
# Run 2015 #
#############
/Charmonium/Run2015B-PromptReco-v1/AOD
/Charmonium/Run2015C-PromptReco-v1/AOD
/Charmonium/Run2015D-PromptReco-v3/AOD
/Charmonium/Run2015D-PromptReco-v4/AOD
/MuOnia/Run2015B-PromptReco-v1/AOD
/DoubleMuon/Run2015B-PromptReco-v1/AOD
@nsahoo
nsahoo / tdr_setup
Last active November 30, 2015 06:27
tdr processing
### on lxplus machine, do the following ###
svn co -N svn+ssh://svn.cern.ch/reps/tdr2 myDir
cd myDir
svn update utils
svn update -N [papers|notes]
svn update [papers|notes]/XXX-YY-NNN
eval `[papers|notes]/tdr runtime -csh` # for tcsh. use -sh for bash.
cd [papers|notes]/XXX-YY-NNN/trunk