forked from cms-sw/cmssw
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cms-sw#570 from jpata/vhbbHeppy80X_factorized_jec_v2
factorized jec uncertainty, vhbb-side
- Loading branch information
Showing
11 changed files
with
80 additions
and
2 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
VHbbAnalysis/Heppy/data/jec/Spring16_25nsV6_MC_UncertaintySources_AK4Calo.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Spring16_25nsV6_DATA_UncertaintySources_AK4Calo.txt |
1 change: 1 addition & 0 deletions
1
VHbbAnalysis/Heppy/data/jec/Spring16_25nsV6_MC_UncertaintySources_AK4JPT.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Spring16_25nsV6_DATA_UncertaintySources_AK4JPT.txt |
1 change: 1 addition & 0 deletions
1
VHbbAnalysis/Heppy/data/jec/Spring16_25nsV6_MC_UncertaintySources_AK4PF.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Spring16_25nsV6_DATA_UncertaintySources_AK4PF.txt |
1 change: 1 addition & 0 deletions
1
VHbbAnalysis/Heppy/data/jec/Spring16_25nsV6_MC_UncertaintySources_AK4PFPuppi.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Spring16_25nsV6_DATA_UncertaintySources_AK4PFPuppi.txt |
1 change: 1 addition & 0 deletions
1
VHbbAnalysis/Heppy/data/jec/Spring16_25nsV6_MC_UncertaintySources_AK4PFchs.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Spring16_25nsV6_DATA_UncertaintySources_AK4PFchs.txt |
1 change: 1 addition & 0 deletions
1
VHbbAnalysis/Heppy/data/jec/Spring16_25nsV6_MC_UncertaintySources_AK8PF.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Spring16_25nsV6_DATA_UncertaintySources_AK8PF.txt |
1 change: 1 addition & 0 deletions
1
VHbbAnalysis/Heppy/data/jec/Spring16_25nsV6_MC_UncertaintySources_AK8PFPuppi.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Spring16_25nsV6_DATA_UncertaintySources_AK8PFPuppi.txt |
1 change: 1 addition & 0 deletions
1
VHbbAnalysis/Heppy/data/jec/Spring16_25nsV6_MC_UncertaintySources_AK8PFchs.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Spring16_25nsV6_DATA_UncertaintySources_AK8PFchs.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import ROOT, sys, os | ||
from PhysicsTools.Heppy.physicsutils.JetReCalibrator import JetReCalibrator | ||
|
||
files = os.environ["FILE_NAMES"].split() | ||
files = ["root://storage01.lcg.cscs.ch//pnfs/lcg.cscs.ch/cms/trivcat/" + fi for fi in files] | ||
|
||
of = ROOT.TFile("out.root", "RECREATE") | ||
tt = ROOT.TChain("vhbb/tree") | ||
for fi in files: | ||
fi = fi.strip() | ||
print fi | ||
tt.AddFile(fi) | ||
|
||
of.cd() | ||
tt.Draw("Jet_pt[0] >>+ nominal(200,20,520)") | ||
tt.Draw("Jet_pt[0]*Jet_corr[0] >>+ corr(200,20,520)") | ||
for jet_corr in JetReCalibrator.factorizedJetCorrections + ["JEC"]: | ||
s1 = "(Jet_pt[0] * Jet_corr_{0}Up[0]) >>+ h__{0}__Up(200,20,520)".format(jet_corr) | ||
s2 = "(Jet_pt[0] * Jet_corr_{0}Down[0]) >>+ h__{0}__Down(200,20,520)".format(jet_corr) | ||
print s1 | ||
print s2 | ||
tt.Draw(s1) | ||
tt.Draw(s2) | ||
of.Write() | ||
of.Close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters