-- LeonardoGiannini1 - 2016-11-05

pass data

https://pypi.python.org/pypi/root_numpy/

New notes

HTCondor

Worker nodes need to know where the X509 proxy certificate is. Create it with below code and set the environment variable X509_USER_PROXY.

voms-proxy-init -voms cms -rfc -out ${HOME}/.x509up_${UID} -valid 192:00
export X509_USER_PROXY=${HOME}/.x509up_${UID}

In python/batch/condor/template.sub the use_x509userproxy option has to be set to true.

use_x509userproxy       = true

Resubmission

option "-k" for the submit.py to check existing files. One can then run it together with "-N 1" to have only 1 file per job

./submit ....  -k  .... 

Check file by name

Check if all files are processed in the step

for file in $(ls prep/v1/*/*) ; do echo $file; a=${file/prep/sys}; ls ${a/v1/v1_vtype}; done | grep such

Pirmin github

suggestion

git checkout -b test_runplot 776b006279396c00d6f30810cfa5fa0e1d644334

update

go to "pull requests", click "new pull request" and then you can select your fork and branch on the left and my master branch on the right

Compile c++ Stephane

g++ addBDTToTree_ewk.C -g -o addBDTToTree_ewk `root-config --cflags --glibs` -lMLP -lXMLIO -lTMVA -lRooFit -lRooFitCore -lRooStats -lMinuit -lHtml
g++ ./plotter_vbfzll.C -g -o plot `root-config --cflags --glibs`  -lMLP -lXMLIO -lTMVA -L/cvmfs/cms.cern.ch/slc6_amd64_gcc530/external/boost/1.57.0-ikhhed2/lib -I/cvmfs/cms.cern.ch/slc6_amd64_gcc530/external/lwtnn/1.0-ikhhed/include -I/cvmfs/cms.cern.ch/slc6_amd64_gcc530/external/boost/1.57.0-ikhhed2/include -lboost_thread -llwtnn -lboost_system -L/cvmfs/cms.cern.ch/slc6_amd64_gcc530/external/lwtnn/1.0-ikhhed/lib -I/cvmfs/cms.cern.ch/slc6_amd64_gcc530/external/eigen/3.2.2-ikhhed/include/eigen3

Istruzioni LWTNN usata male

con CMSSW_8_0_25

g++ ./Read_lwtnn_json_Mbb2.C -g -o plot `root-config --cflags --glibs` -lMLP -lXMLIO -lTMVA -L/cvmfs/cms.cern.ch/slc6_amd64_gcc530/external/boost/1.57.0-ikhhed2/lib -I/cvmfs/cms.cern.ch/slc6_amd64_gcc530/external/lwtnn/1.0-ikhhed/include -I/cvmfs/cms.cern.ch/slc6_amd64_gcc530/external/boost/1.57.0-ikhhed2/include -lboost_thread -llwtnn -lboost_system -L/cvmfs/cms.cern.ch/slc6_amd64_gcc530/external/lwtnn/1.0-ikhhed/lib -I/cvmfs/cms.cern.ch/slc6_amd64_gcc530/external/eigen/3.2.2-ikhhed/include/eigen3

export LD_LIBRARY_PATH=/cvmfs/cms.cern.ch/slc6_amd64_gcc530/external/lwtnn/1.0-ikhhed/lib:$LD_LIBRARY_PATH

./plot /eos/user/l/legianni/pnfs/VHbb/LxplusZlltest/full/sys/v1_vtype/ZH_HToBB_ZToLL_M125_13TeV_powheg_pythia8/tree_VHBB_HEPPY_V25_ZH_HToBB_ZToLL_M125_13TeV_powheg_Py8__RunIISummer16MAv2-PUMoriond17_80r2as_2016_TrancheIV_v6-v1_8_bbbb087c47032328ae0b3fa3443c9e826b62b242a688ba95e9d89458.root tree_dd.root

CMSDAS pre-exercises useful

das query

das_client.py --query="dataset=/DoubleMuon*/Run2017C-PromptReco-v3/MINIAOD" --format=plain

edm utils

edmFileUtil -d /store/relval/CMSSW_9_3_0_pre5/RelValZMM_13/MINIAODSIM/93X_mc2017_realistic_v2-v1/00000/96FBB6F5-0E92-E711-841B-0025905B85C0.root
edmDumpEventContent --all --regex slimmedMuons root://cmsxrootd.fnal.gov//store/user/cmsdas/2018/pre_exercises/0EE14BA8-41BB-E611-AD2F-0CC47A4D760A.root
edmDumpEventContent root://cmsxrootd.fnal.gov//store/user/cmsdas/2018/pre_exercises/0EE14BA8-41BB-E611-AD2F-0CC47A4D760A.root
edmProvDump root://cmsxrootd.fnal.gov//store/user/cmsdas/2018/pre_exercises/0EE14BA8-41BB-E611-AD2F-0CC47A4D760A.root
edmEventSize -v `edmFileUtil -d /store/user/cmsdas/2018/pre_exercises/0EE14BA8-41BB-E611-AD2F-0CC47A4D760A.root`


FWLite root to open MiniADOD

gSystem->Load("libFWCoreFWLite.so");
FWLiteEnabler::enable();
gSystem->Load("libDataFormatsFWLite.so");
gROOT->SetStyle ("Plain");
gStyle->SetOptStat(111111);

TFile *theFile = TFile::Open("root://cmseos.fnal.gov//store/user/cmsdas/2018/pre_exercises/CMSDataAnaSch_MiniAODZMM730pre1.root");

TBrowser b;


TFormula GetInstance



Events->Scan("Sum$(Iteration$*(Jet_btagCMVA==MaxIf$(Jet_btagCMVA,Jet_btagCMVA<Max$(Jet_btagCMVA))))", "")
Edit | Attach | Watch | Print version | History: r11 < r10 < r9 < r8 < r7 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r11 - 2018-04-24 - LeonardoGiannini
 
    • 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-2023 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