git clone git@github.com:ram1123/CustomNanoAOD_HHWWgg.git
cd CustomNanoAOD_HHWWgg
cmsrel CMSSW_10_6_30
cd CMSSW_10_6_30/src
cmsenv
git cms-merge-topic -u ram1123:CMSSW_10_6_30_HHWWgg_nanoV9
./PhysicsTools/NanoTuples/scripts/install_onnxruntime.sh
scramv1 b -j 8
cd $CMSSW_BASE/../
voms-proxy-init --voms cms --valid 168:00
cd ${CMSSW_BASE}/src
cmsenv
cd ../../
# Use the appropriate config file for different years
```bash
cmsRun cmssw_modified_config_files/HIG-RunIISummer20UL18NanoAODv9-02546_1_cfg.py maxEvents=-1 inputFiles=/store/mc/RunIISummer20UL18MiniAODv2/GluGluToRadionToHHTo2G2WTo2G4Q_M-1000_TuneCP5_PSWeights_narrow_13TeV-madgraph-pythia8/MINIAODSIM/106X_upgrade2018_realistic_v16_L1v1-v2/50000/04D3FBF0-A539-5143-9A1C-8D42A1D54C88.root outputFile=HIG-RunIISummer20UL18NanoAODv9-02546.root
To create the condor jobs submission script use the script condor_setup.py. This script uses YAML file having list of samples.
python3 condor_setup.py --help
NOTE-1: Check the config file before submitting the jobs: config.json NOTE-2: The condor submission script distinguish between MC and data using the string of DAS name: "MINIAODSIM".
Some example commands to create the condor jobs submission script.
-
Create condor job submissioon script for debug:
python3 condor_setup.py --condor_executable test_new --debug
This will create a condor job submission script named
test_new.sh
andtest_new.jdl
in the current directory, having only one job. -
Create condor job submissioon script for all samples that belong to UL2018 listed in yaml file UL2018_XHH_Samples.yaml:
python3 condor_setup.py --condor_executable HHWWgg_UL2018 --yaml_file UL2018_XHH_Samples.yaml --year UL2018
condor_resubmit.py: This script can be used to resubmit the failed condor jobs. It takes the condor log files as input and resubmits the failed jobs. It can be used as follows:
python condor_resubmit.py -j <condor_jdl_file> -l <log_directory> -o <output_directory> -n <resubmission_count>
# Example command:
python3 condor_resubmit.py -j HHbbgg_Signal_Mar2024.jdl -l logs/UL2018/EGamma_Run2018A/ -o /eos/user/r/rasharma/post_doc_ihep/double-higgs/nanoAODnTuples/nanoAOD_Mar2024/UL2018/EGamma_Run2018A -n 1
NOTE : The output directory should be the top directory using which the condor jobs were submitted (or the main path were all output files are stored).
This will give you new jdl file. Then you can submit the new jdl file.