Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 27 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,53 @@
HZZ Analyzer for CMS Run2
# HZZ Analyzer for CMS Run2

------

To install:
## To install:

```bash
cmsrel CMSSW_10_2_15

cd CMSSW_10_2_15/src

cmsenv

git cms-init

git config merge.renameLimit 999999
git clone -b tmp_Ferrico https://github.com/VBF-HZZ/UFHZZAnalysisRun2.git

cp UFHZZAnalysisRun2/install.sh .

./install.sh

cmsRun UFHZZAnalysisRun2/UFHZZ4LAna/python/Sync_102X_2018_Legacy_cfg.py
cmsRun UFHZZAnalysisRun2/UFHZZ4LAna/python/Sync_102X_2017_Legacy_cfg.py
cmsRun UFHZZAnalysisRun2/UFHZZ4LAna/python/Sync_102X_2016_Legacy_cfg.py

cp UFHZZAnalysisRun2/Utilities/crab/* .
```

---

voms-proxy-init --valid=168:00
#probably need "voms-proxy-init -voms cms -rfc"
## Notes on using the Analyzer:
Run the Analyzer **locally** before submitting any jobs to CRAB:
```bash
cmsRun UFHZZAnalysisRun2/UFHZZ4LAna/python/<template_file>.py
```

If you want to submit CRAB jobs for processing, first do:
```bash
voms-proxy-init --valid=168:00 #probably need "voms-proxy-init -voms cms -rfc"
source /cvmfs/cms.cern.ch/crab3/crab.sh
```

To process **Data**:
```python
python SubmitCrabJobs.py -t "myTask_Data" -d datasets_2016ReReco.txt -c UFHZZAnalysisRun2/UFHZZ4LAna/python/templateData_80X_M1703Feb_2l_cfg.py
```

or similary for MC:

To process **MC**:
```python
python SubmitCrabJobs.py -t "myTask_MC" -d datasets_Summer16_25ns_MiniAOD.txt -c UFHZZAnalysisRun2/UFHZZ4LAna/python/templateMC_80X_M17_4l_cfg.py
```

You can use manageCrabTask.py to check the status, resubmit, or kill your task. E.g. after submitting:

You can use **manageCrabTask.py** to check the status, resubmit, or kill your task. E.g. after submitting, do:
```bash
nohup python -u manageCrabTask.py -t resultsAna_Data_M17_Feb19 -r -l >& managedata.log &
```

This will start an infinite loop of running crab resubmit on all of your tasks, then sleep for 30min. You should kill the process once all of your tasks are done. Once all of your tasks are done, you should run the following command to purge your crab cache so that it doesn't fill up:

```bash
python manageCrabTask.py -t resultsAna_Data_M17_Feb19 -p

UFHZZ4LAna/python/templateMC_102X_Legacy16_4l_cfg.py
Expand All @@ -49,3 +56,4 @@ UFHZZ4LAna/python/templateMC_102X_Legacy18_4l_cfg.py
UFHZZ4LAna/python/templateData_102X_Legacy16_3l_cfg.py
UFHZZ4LAna/python/templateData_102X_Legacy17_3l_cfg.py
UFHZZ4LAna/python/templateData_102X_Legacy18_3l_cfg.py
```
11 changes: 7 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@ git clone https://github.com/cms-analysis/HiggsAnalysis-ZZMatrixElement.git ZZMa
(cd ZZMatrixElement; git checkout -b from-v220 v2.2.0)
# replace ZZMatrixElement/MELA/setup.sh -j 8
pushd ${CMSSW_BASE}/src/ZZMatrixElement/MELA/COLLIER/
pkgname="collier-1.2"
pkgdir="COLLIER-1.2"
# pkgname="collier-1.2"
pkgname="collier-1.2.4"
pkgdir="COLLIER-1.2.4"
tarname=$pkgname".tar.gz"
tarweb="https://www.hepforge.org/archive/collier/"$tarname
tarweb="https://collier.hepforge.org/downloads/?f="$tarname
# tarweb="https://www.hepforge.org/archive/collier/"$tarname
libname="libcollier.so"
tmpdir="colliertmp"
wget $tarweb
wget $tarweb -O $tarname
# wget $tarweb
mkdir $tmpdir
tar -xvzf $tarname -C $tmpdir
rm $tarname
Expand Down