babymaker  e95a6a9342d4604277fe7cc6149b6b5b24447d89
Variables
get_puweights Namespace Reference

Variables

tuple cmssw = os.getenv("CMSSW_BASE")
 
string lumi_json = cmssw+"babymaker/data/json/pileup_latest.txt"
 
string json = cmssw+"babymaker/data/json/golden_Cert_271036-284044_13TeV_23Sep2016ReReco_Collisions16.json"
 
tuple mcfile = TChain("tree")
 
tuple hmc = TH1D("hmc","hmc",75,0,75)
 
string calc_mode = "true"
 
dictionary mbxsec_dict
 
string cmd = "pileupCalc.py"
 
tuple fdata = TFile("pileup_"+imb+".root","READ")
 
tuple htmp = fdata.Get("pileup")
 
list wgt = [htmp.GetBinContent(i+1) for i in range(htmp.GetNbinsX())]
 

Variable Documentation

string get_puweights.calc_mode = "true"

Definition at line 34 of file get_puweights.py.

string get_puweights.cmd = "pileupCalc.py"

Definition at line 45 of file get_puweights.py.

tuple get_puweights.cmssw = os.getenv("CMSSW_BASE")

Definition at line 10 of file get_puweights.py.

Referenced by jet_met_tools.jet_met_tools(), and bmaker_full.~bmaker_full().

tuple get_puweights.fdata = TFile("pileup_"+imb+".root","READ")

Definition at line 58 of file get_puweights.py.

tuple get_puweights.hmc = TH1D("hmc","hmc",75,0,75)

Definition at line 28 of file get_puweights.py.

tuple get_puweights.htmp = fdata.Get("pileup")

Definition at line 59 of file get_puweights.py.

string get_puweights.json = cmssw+"babymaker/data/json/golden_Cert_271036-284044_13TeV_23Sep2016ReReco_Collisions16.json"

Definition at line 18 of file get_puweights.py.

string get_puweights.lumi_json = cmssw+"babymaker/data/json/pileup_latest.txt"

Definition at line 14 of file get_puweights.py.

dictionary get_puweights.mbxsec_dict
Initial value:
1 = {
2  "nom": mbxsec,
3  "up": mbxsec*(1+mbxsec_relunc),
4  "down": mbxsec*(1-mbxsec_relunc)
5 }

Definition at line 38 of file get_puweights.py.

tuple get_puweights.mcfile = TChain("tree")

Definition at line 26 of file get_puweights.py.

list get_puweights.wgt = [htmp.GetBinContent(i+1) for i in range(htmp.GetNbinsX())]

Definition at line 64 of file get_puweights.py.