Skip to content

Commit

Permalink
Update README for UL2017
Browse files Browse the repository at this point in the history
  • Loading branch information
nurfikri89 committed May 23, 2021
1 parent 20ace33 commit 28f5c5d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Setup a CMSSW release:
```
mkdir PileUpJetIDSF
cd PileUpJetIDSF
cmsrel CMSSW_10_2_22
cd CMSSW_10_2_22/src
cmsrel CMSSW_10_6_25
cd CMSSW_10_6_25/src
cmsenv
```
Checkout [nanoAOD-tools](https://github.com/cms-nanoAOD/nanoAOD-tools):
Expand All @@ -27,7 +27,8 @@ scram b -j4
```

Go to [Skimmer/data/mvaWeights](Skimmer/data/mvaWeights/) and download the TMVA BDT training weights
for the pileup jet ID, as per the instructions in the `README.md`. This is needed for `JMEnanoV1 UL2017` input.
for the pileup jet ID, as per the instructions in the `README.md`. This is needed for `JMEnanoV1 UL2017` input
and also for any future `JMEnano` production.

## Skim NanoAODs
**:construction: UNDER CONSTRUCTION**
Expand All @@ -36,16 +37,16 @@ for the pileup jet ID, as per the instructions in the `README.md`. This is neede

All the scripts required to make the histogram templates are in the [**Analyzer**](./Analyzer) directory.

>**:exclamation:IMPORTANT** You need to use ROOT version ```6.18``` or later. You can setup the environment
to version ```6.22.00``` by sourcing the [```sourceRecentROOT.sh```](./Analyzer/sourceRecentROOT.py)
>**:exclamation:IMPORTANT** You need to use ROOT version ```6.22``` or later. You can setup the environment
to version ```6.22.08``` by sourcing the [```sourceRecentROOT.sh```](./Analyzer/sourceRecentROOT.sh)
bash script. The bash script will also unset the CMSSW runtime environment if you had done ```cmsenv```earlier.
This ensures there are no conflicts between the ROOT version that you have just set up and the version in CMSSW.

Producing the histograms is a two-step process. The steps are:

1. Make skimmed ntuples for skimmed NanoAODs by using the [```SkimNtuples.py```](./Analyzer/SkimNtuples.py) script. This will make the histogram making step faster. Example to run the script can be found in [```RunLocal_SkimNtuples.sh```](./Analyzer/RunLocal_SkimNtuples.sh).

2. Make histograms by running over the ntuples with the [```MakeHistograms.py```](./Analyzer/MakeHistograms.py) script. Example to run the script can be found in [```RunLocal_MakeHistograms.sh```](./Analyzer/RunLocal_MakeHistograms.sh).
2. Make histograms by running over the ntuples with the [```MakeHistograms3D.py```](./Analyzer/MakeHistograms3D.py) script. Example to run the script can be found in [```RunLocal_MakeHistograms.sh```](./Analyzer/RunLocal_MakeHistograms.sh).

The histograms will be saved in the ```histos``` directory. Run [```haddHistos.sh```](./Analyzer/haddHistos.sh) to merge all Data histograms for each year. The paths to the skimmed NanoAODs and skimmed ntuples are specified in [```SampleList.py```](./Analyzer/SampleList.py).

Expand Down

0 comments on commit 28f5c5d

Please sign in to comment.