ssh -XY [email protected]
export $SCRAM_ARCH=slc7_amd64_gcc820
cd nobackup/
mkdir b2g_exercise/
cd b2g_exercise/
cmsrel CMSSW_11_1_4
cd CMSSW_11_1_4/src
cmsenv
git clone https://github.com/ammitra/BstarToTW_CMSDAS2022.git
OR fork the code onto your personal project space and set the upstream:
git clone https://github.com/<GitHubUsername>/BstarToTW_CMSDAS2022.git
cd BstarToTW_CMSDAS2022
git remote add upstream https://github.com/ammitra/BstarToTW_CMSDAS2022.git
git remote -v
git clone https://github.com/lcorcodilos/TIMBER.git
python -m virtualenv timber-env
source timber-env/bin/activate
cd TIMBER
source setup.sh
cd ..
python -c 'import TIMBER.Analyzer'
Once you have an environment:
cd CMSSW_11_1_4/src/
cmsenv
source timber-env/bin/activate
cd TIMBER/
git fetch --all
git checkout master
python setup.py develop
cd ../
cd BstarToTW_CMSDAS2020
git fetch --all
git pull origin master
cd ../
Link condor helper from Timber
ln -s ../../TIMBER/TIMBER/Utilities/Condor/CondorHelper.py
Test it works on one file:
python CondorHelper.py -r condor/run_presel.sh -a test_args.txt -i "bs_select.py bstar.cc bstar_config.json helpers.py"
This should output one file to your directory if everything works.
To submit all jobs for the nominal selection:
python CondorHelper.py -r condor/run_presel.sh -a all_args.txt -i "bs_select.py bstar.cc bstar_config.json helpers.py"
To submit all jobs for the deepAK8 selection (we add the --deep flag):
python CondorHelper.py -r condor/run_presel.sh -a all_args_deep.txt -i "bs_select.py bstar.cc bstar_config.json helpers.py"
You can monitor jobs with:
condor_q
Once they finish you can move the output files to one directory and add the data files
mkdir bstar_inputs_deep_variations/
mv *.root bstar_inputs_deep_variations/
hadd bstar_inputs_deep_variations/Presel_Run2_data.root bstar_inputs_deep_variations/Presel_data*.root
For 2016 (then change args file for other years):
python CondorHelper.py -r condor/run_bstar.sh -a 2016_args.txt -i "bs_select.py bstar.cc bstar_config.json helpers.py"
An example of deepAK8 output files is here:
/eos/uscms/store/user/cmsdas/2022/long_exercises/b2g/bstar_inputs_deep_variations/