HiggsAnalysis-KITHiggsToTauTau
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
makePlots_genCPPlots_genvsreco1 Namespace Reference

Variables

tuple log = logging.getLogger(__name__)
 
tuple parser
 
string help = "Input."
 
string default = "$CMSSW_BASE/src/plots/genCP_plots/"
 
tuple args = parser.parse_args()
 
list w_reco_dy1 = ["TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44"]
 
list w_reco_dy4 = ["TauMProngEnergy >= 0.55 && TauPProngEnergy >= 0.55"]
 
list w_reco_dy3 = ["TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44"]
 
list w_reco_dy2 = ["TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44"]
 
list w_em
 
list w_et
 
list w_mt
 
list w_tt
 
list w_pp
 
list w_hh
 
list w_hl
 
list w_ll
 
list w_gen_dy1 = ["((OneProngChargedPart1PdgId == 211 && OneProngChargedPart2PdgId == -211) && (Tau1OneProngsSize == 2 && Tau2OneProngsSize == 2) && (TauMProngEnergy >= 0.55 && TauPProngEnergy >= 0.55))"]
 
list w_gen_dy2 = ["((OneProngChargedPart1PdgId != -999 && OneProngChargedPart1PdgId != 11 && OneProngChargedPart1PdgId != 13 && OneProngChargedPart2PdgId != -999 && OneProngChargedPart2PdgId != 11 && OneProngChargedPart2PdgId != 13) && (Tau1OneProngsSize == 2 && Tau2OneProngsSize == 2) && (TauMProngEnergy >= 0.55 && TauPProngEnergy >= 0.55))"]
 
list w_gen_dy3 = ["((abs(OneProngChargedPart1PdgId) != 999 && abs(OneProngChargedPart1PdgId) != 11 && abs(OneProngChargedPart1PdgId) != 13 && abs(OneProngChargedPart2PdgId) == 11 || abs(OneProngChargedPart2PdgId) == 13) && (Tau1OneProngsSize == 2 && Tau2OneProngsSize == 3) && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44))"]
 
list w_gen_dy4 = ["((OneProngChargedPart1PdgId == -11 || OneProngChargedPart1PdgId == -13 && OneProngChargedPart2PdgId == 11 || OneProngChargedPart2PdgId == 13) && (Tau1OneProngsSize == 3 && Tau2OneProngsSize == 3) && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44))"]
 
list w_evenandodd_gen = [[w_ll[0],w_gen_dy4],[w_hl[0],w_gen_dy3],[w_hl[0],w_gen_dy3],[w_hh[0],w_gen_dy2]]
 
list w_evenandodd_reco = [[w_em[0],w_reco_dy1],[w_et[0],w_reco_dy2],[w_mt[0],w_reco_dy3],[w_tt[0],w_reco_dy4]]
 
list w_onlychannels = [w_em,w_et,w_mt,w_tt]
 
list names = ["_genvsreco1_em","_genvsreco1_et","_genvsreco1_mt","_genvsreco1_tt"]
 
list names_dy = ["_dypipi","_dyhh","_dyhl","_dyll"]
 
list nicks = ["alpha000","alpha025","alpha050","alpha075","alpha100"]
 
list colors = [ "#ff2400","#0020c2","#4cc417","#a74ac7","#3bb9ff"]
 
list colors_evenandodd1 = ["#ff2400","#3bb9ff","#4cc417"]
 
list colors_evenandodd2 = ["#a74ac7","#0020c2","#000000"]
 
list nicks_evenandodd = ["alpha000","alpha100","DYbkg"]
 
list plot_configs = []
 
list f_reco = ["em_jecUncNom/ntuple", "et_jecUncNom_tauEsNom/ntuple", "mt_jecUncNom_tauEsNom/ntuple", "tt_jecUncNom_tauEsNom/ntuple"]
 
list f_gen = ["gen/ntuple","gen/ntuple","gen/ntuple","gen/ntuple"]
 
tuple config2 = jsonTools.JsonDict(os.path.expandvars("$CMSSW_BASE/src/HiggsAnalysis/KITHiggsToTauTau/data/plots/configs/gen_CP/phiCPevenandodd_genvsreco1.json"))
 

Variable Documentation

tuple makePlots_genCPPlots_genvsreco1.args = parser.parse_args()
list makePlots_genCPPlots_genvsreco1.colors = [ "#ff2400","#0020c2","#4cc417","#a74ac7","#3bb9ff"]
list makePlots_genCPPlots_genvsreco1.colors_evenandodd1 = ["#ff2400","#3bb9ff","#4cc417"]
list makePlots_genCPPlots_genvsreco1.colors_evenandodd2 = ["#a74ac7","#0020c2","#000000"]
tuple makePlots_genCPPlots_genvsreco1.config2 = jsonTools.JsonDict(os.path.expandvars("$CMSSW_BASE/src/HiggsAnalysis/KITHiggsToTauTau/data/plots/configs/gen_CP/phiCPevenandodd_genvsreco1.json"))
string makePlots_genCPPlots_genvsreco1.default = "$CMSSW_BASE/src/plots/genCP_plots/"
list makePlots_genCPPlots_genvsreco1.f_gen = ["gen/ntuple","gen/ntuple","gen/ntuple","gen/ntuple"]
list makePlots_genCPPlots_genvsreco1.f_reco = ["em_jecUncNom/ntuple", "et_jecUncNom_tauEsNom/ntuple", "mt_jecUncNom_tauEsNom/ntuple", "tt_jecUncNom_tauEsNom/ntuple"]
string makePlots_genCPPlots_genvsreco1.help = "Input."
tuple makePlots_genCPPlots_genvsreco1.log = logging.getLogger(__name__)
list makePlots_genCPPlots_genvsreco1.names = ["_genvsreco1_em","_genvsreco1_et","_genvsreco1_mt","_genvsreco1_tt"]
list makePlots_genCPPlots_genvsreco1.names_dy = ["_dypipi","_dyhh","_dyhl","_dyll"]
list makePlots_genCPPlots_genvsreco1.nicks = ["alpha000","alpha025","alpha050","alpha075","alpha100"]
list makePlots_genCPPlots_genvsreco1.nicks_evenandodd = ["alpha000","alpha100","DYbkg"]
tuple makePlots_genCPPlots_genvsreco1.parser
Initial value:
1 = argparse.ArgumentParser(description="Make CP plots.",
2  parents=[logger.loggingParser])
list makePlots_genCPPlots_genvsreco1.plot_configs = []
list makePlots_genCPPlots_genvsreco1.w_em
Initial value:
1 = ["( tauSpinnerWeight000 * tauSpinnerWeightInvSample && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44) )",
2  "( tauSpinnerWeight025 * tauSpinnerWeightInvSample && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44))",
3  "( tauSpinnerWeight050 * tauSpinnerWeightInvSample && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44))",
4  "( tauSpinnerWeight075 * tauSpinnerWeightInvSample && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44))",
5  "( tauSpinnerWeight100 * tauSpinnerWeightInvSample && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44))"]
list makePlots_genCPPlots_genvsreco1.w_et
Initial value:
1 = [" tauSpinnerWeight000 * tauSpinnerWeightInvSample && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44)",
2  " tauSpinnerWeight025 * tauSpinnerWeightInvSample && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44)",
3  " tauSpinnerWeight050 * tauSpinnerWeightInvSample && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44)",
4  " tauSpinnerWeight075 * tauSpinnerWeightInvSample && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44)",
5  " tauSpinnerWeight100 * tauSpinnerWeightInvSample && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44)"]
list makePlots_genCPPlots_genvsreco1.w_evenandodd_gen = [[w_ll[0],w_gen_dy4],[w_hl[0],w_gen_dy3],[w_hl[0],w_gen_dy3],[w_hh[0],w_gen_dy2]]
list makePlots_genCPPlots_genvsreco1.w_evenandodd_reco = [[w_em[0],w_reco_dy1],[w_et[0],w_reco_dy2],[w_mt[0],w_reco_dy3],[w_tt[0],w_reco_dy4]]
list makePlots_genCPPlots_genvsreco1.w_gen_dy1 = ["((OneProngChargedPart1PdgId == 211 && OneProngChargedPart2PdgId == -211) && (Tau1OneProngsSize == 2 && Tau2OneProngsSize == 2) && (TauMProngEnergy >= 0.55 && TauPProngEnergy >= 0.55))"]
list makePlots_genCPPlots_genvsreco1.w_gen_dy2 = ["((OneProngChargedPart1PdgId != -999 && OneProngChargedPart1PdgId != 11 && OneProngChargedPart1PdgId != 13 && OneProngChargedPart2PdgId != -999 && OneProngChargedPart2PdgId != 11 && OneProngChargedPart2PdgId != 13) && (Tau1OneProngsSize == 2 && Tau2OneProngsSize == 2) && (TauMProngEnergy >= 0.55 && TauPProngEnergy >= 0.55))"]
list makePlots_genCPPlots_genvsreco1.w_gen_dy3 = ["((abs(OneProngChargedPart1PdgId) != 999 && abs(OneProngChargedPart1PdgId) != 11 && abs(OneProngChargedPart1PdgId) != 13 && abs(OneProngChargedPart2PdgId) == 11 || abs(OneProngChargedPart2PdgId) == 13) && (Tau1OneProngsSize == 2 && Tau2OneProngsSize == 3) && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44))"]
list makePlots_genCPPlots_genvsreco1.w_gen_dy4 = ["((OneProngChargedPart1PdgId == -11 || OneProngChargedPart1PdgId == -13 && OneProngChargedPart2PdgId == 11 || OneProngChargedPart2PdgId == 13) && (Tau1OneProngsSize == 3 && Tau2OneProngsSize == 3) && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44))"]
list makePlots_genCPPlots_genvsreco1.w_hh
Initial value:
1 = ["( tauSpinnerWeight000 * tauSpinnerWeightInvSample * ((OneProngChargedPart1PdgId != -999 && OneProngChargedPart1PdgId != 11 && OneProngChargedPart1PdgId != 13 && OneProngChargedPart2PdgId != -999 && OneProngChargedPart2PdgId != 11 && OneProngChargedPart2PdgId != 13) && (Tau1OneProngsSize == 2 && Tau2OneProngsSize == 2) && (TauMProngEnergy >= 0.55 && TauPProngEnergy >= 0.55)))",
2  "( tauSpinnerWeight025 * tauSpinnerWeightInvSample * ((OneProngChargedPart1PdgId != -999 && OneProngChargedPart1PdgId != 11 && OneProngChargedPart1PdgId != 13 && OneProngChargedPart2PdgId != -999 && OneProngChargedPart2PdgId != 11 && OneProngChargedPart2PdgId != 13) && (Tau1OneProngsSize == 2 && Tau2OneProngsSize == 2) && (TauMProngEnergy >= 0.55 && TauPProngEnergy >= 0.55)))",
3  "( tauSpinnerWeight050 * tauSpinnerWeightInvSample * ((OneProngChargedPart1PdgId != -999 && OneProngChargedPart1PdgId != 11 && OneProngChargedPart1PdgId != 13 && OneProngChargedPart2PdgId != -999 && OneProngChargedPart2PdgId != 11 && OneProngChargedPart2PdgId != 13) && (Tau1OneProngsSize == 2 && Tau2OneProngsSize == 2) && (TauMProngEnergy >= 0.55 && TauPProngEnergy >= 0.55)))",
4  "( tauSpinnerWeight075 * tauSpinnerWeightInvSample * ((OneProngChargedPart1PdgId != -999 && OneProngChargedPart1PdgId != 11 && OneProngChargedPart1PdgId != 13 && OneProngChargedPart2PdgId != -999 && OneProngChargedPart2PdgId != 11 && OneProngChargedPart2PdgId != 13) && (Tau1OneProngsSize == 2 && Tau2OneProngsSize == 2) && (TauMProngEnergy >= 0.55 && TauPProngEnergy >= 0.55)))",
5  "( tauSpinnerWeight100 * tauSpinnerWeightInvSample * ((OneProngChargedPart1PdgId != -999 && OneProngChargedPart1PdgId != 11 && OneProngChargedPart1PdgId != 13 && OneProngChargedPart2PdgId != -999 && OneProngChargedPart2PdgId != 11 && OneProngChargedPart2PdgId != 13) && (Tau1OneProngsSize == 2 && Tau2OneProngsSize == 2) && (TauMProngEnergy >= 0.55 && TauPProngEnergy >= 0.55)))"]
list makePlots_genCPPlots_genvsreco1.w_hl
Initial value:
1 = ["( tauSpinnerWeight000 * tauSpinnerWeightInvSample * ((abs(OneProngChargedPart1PdgId) != 999 && abs(OneProngChargedPart1PdgId) != 11 && abs(OneProngChargedPart1PdgId) != 13 && abs(OneProngChargedPart2PdgId) == 11 || abs(OneProngChargedPart2PdgId) == 13) && (Tau1OneProngsSize == 2 && Tau2OneProngsSize == 3) && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44)))",
2  "( tauSpinnerWeight025 * tauSpinnerWeightInvSample * ((abs(OneProngChargedPart1PdgId) != 999 && abs(OneProngChargedPart1PdgId) != 11 && abs(OneProngChargedPart1PdgId) != 13 && abs(OneProngChargedPart2PdgId) == 11 || abs(OneProngChargedPart2PdgId) == 13) && (Tau1OneProngsSize == 2 && Tau2OneProngsSize == 3) && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44)))",
3  "( tauSpinnerWeight050 * tauSpinnerWeightInvSample * ((abs(OneProngChargedPart1PdgId) != 999 && abs(OneProngChargedPart1PdgId) != 11 && abs(OneProngChargedPart1PdgId) != 13 && abs(OneProngChargedPart2PdgId) == 11 || abs(OneProngChargedPart2PdgId) == 13) && (Tau1OneProngsSize == 2 && Tau2OneProngsSize == 3) && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44)))",
4  "( tauSpinnerWeight075 * tauSpinnerWeightInvSample * ((abs(OneProngChargedPart1PdgId) != 999 && abs(OneProngChargedPart1PdgId) != 11 && abs(OneProngChargedPart1PdgId) != 13 && abs(OneProngChargedPart2PdgId) == 11 || abs(OneProngChargedPart2PdgId) == 13) && (Tau1OneProngsSize == 2 && Tau2OneProngsSize == 3) && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44)))",
5  "( tauSpinnerWeight100 * tauSpinnerWeightInvSample * ((abs(OneProngChargedPart1PdgId) != 999 && abs(OneProngChargedPart1PdgId) != 11 && abs(OneProngChargedPart1PdgId) != 13 && abs(OneProngChargedPart2PdgId) == 11 || abs(OneProngChargedPart2PdgId) == 13) && (Tau1OneProngsSize == 2 && Tau2OneProngsSize == 3) && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44)))"]
list makePlots_genCPPlots_genvsreco1.w_ll
Initial value:
1 = ["( tauSpinnerWeight000 * tauSpinnerWeightInvSample * ((OneProngChargedPart1PdgId == 11 || OneProngChargedPart1PdgId == 13 && OneProngChargedPart2PdgId == -11 || OneProngChargedPart2PdgId == -13) && (Tau1OneProngsSize == 3 && Tau2OneProngsSize == 3) && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44)))",
2  "( tauSpinnerWeight025 * tauSpinnerWeightInvSample * ((OneProngChargedPart1PdgId == 11 || OneProngChargedPart1PdgId == 13 && OneProngChargedPart2PdgId == -11 || OneProngChargedPart2PdgId == -13) && (Tau1OneProngsSize == 3 && Tau2OneProngsSize == 3) && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44)))",
3  "( tauSpinnerWeight050 * tauSpinnerWeightInvSample * ((OneProngChargedPart1PdgId == 11 || OneProngChargedPart1PdgId == 13 && OneProngChargedPart2PdgId == -11 || OneProngChargedPart2PdgId == -13) && (Tau1OneProngsSize == 3 && Tau2OneProngsSize == 3) && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44)))",
4  "( tauSpinnerWeight075 * tauSpinnerWeightInvSample * ((OneProngChargedPart1PdgId == 11 || OneProngChargedPart1PdgId == 13 && OneProngChargedPart2PdgId == -11 || OneProngChargedPart2PdgId == -13) && (Tau1OneProngsSize == 3 && Tau2OneProngsSize == 3) && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44)))",
5  "( tauSpinnerWeight100 * tauSpinnerWeightInvSample * ((OneProngChargedPart1PdgId == 11 || OneProngChargedPart1PdgId == 13 && OneProngChargedPart2PdgId == -11 || OneProngChargedPart2PdgId == -13) && (Tau1OneProngsSize == 3 && Tau2OneProngsSize == 3) && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44)))"]
list makePlots_genCPPlots_genvsreco1.w_mt
Initial value:
1 = ["( tauSpinnerWeight000 * tauSpinnerWeightInvSample && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44))",
2  "( tauSpinnerWeight025 * tauSpinnerWeightInvSample && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44))",
3  "( tauSpinnerWeight050 * tauSpinnerWeightInvSample && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44))",
4  "( tauSpinnerWeight075 * tauSpinnerWeightInvSample && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44))",
5  "( tauSpinnerWeight100 * tauSpinnerWeightInvSample && (TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44))"]
list makePlots_genCPPlots_genvsreco1.w_onlychannels = [w_em,w_et,w_mt,w_tt]
list makePlots_genCPPlots_genvsreco1.w_pp
Initial value:
1 = ["( tauSpinnerWeight000 * tauSpinnerWeightInvSample * ((OneProngChargedPart1PdgId == -211 && OneProngChargedPart2PdgId == 211) && (Tau1OneProngsSize == 2 && Tau2OneProngsSize == 2) && (TauMProngEnergy >= 0.55 && TauPProngEnergy >= 0.55)))",
2  "( tauSpinnerWeight025 * tauSpinnerWeightInvSample * ((OneProngChargedPart1PdgId == -211 && OneProngChargedPart2PdgId == 211) && (Tau1OneProngsSize == 2 && Tau2OneProngsSize == 2) && (TauMProngEnergy >= 0.55 && TauPProngEnergy >= 0.55)))",
3  "( tauSpinnerWeight050 * tauSpinnerWeightInvSample * ((OneProngChargedPart1PdgId == -211 && OneProngChargedPart2PdgId == 211) && (Tau1OneProngsSize == 2 && Tau2OneProngsSize == 2) && (TauMProngEnergy >= 0.55 && TauPProngEnergy >= 0.55)))",
4  "( tauSpinnerWeight075 * tauSpinnerWeightInvSample * ((OneProngChargedPart1PdgId == -211 && OneProngChargedPart2PdgId == 211) && (Tau1OneProngsSize == 2 && Tau2OneProngsSize == 2) && (TauMProngEnergy >= 0.55 && TauPProngEnergy >= 0.55)))",
5  "( tauSpinnerWeight100 * tauSpinnerWeightInvSample * ((OneProngChargedPart1PdgId == -211 && OneProngChargedPart2PdgId == 211) && (Tau1OneProngsSize == 2 && Tau2OneProngsSize == 2) && (TauMProngEnergy >= 0.55 && TauPProngEnergy >= 0.55)))"]
list makePlots_genCPPlots_genvsreco1.w_reco_dy1 = ["TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44"]
list makePlots_genCPPlots_genvsreco1.w_reco_dy2 = ["TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44"]
list makePlots_genCPPlots_genvsreco1.w_reco_dy3 = ["TauMProngEnergy >= 0.44 && TauPProngEnergy >= 0.44"]
list makePlots_genCPPlots_genvsreco1.w_reco_dy4 = ["TauMProngEnergy >= 0.55 && TauPProngEnergy >= 0.55"]
list makePlots_genCPPlots_genvsreco1.w_tt
Initial value:
1 = ["( tauSpinnerWeight000 * tauSpinnerWeightInvSample)",
2  "( tauSpinnerWeight025 * tauSpinnerWeightInvSample )",
3  "( tauSpinnerWeight050 * tauSpinnerWeightInvSample )",
4  "( tauSpinnerWeight075 * tauSpinnerWeightInvSample )",
5  "( tauSpinnerWeight100 * tauSpinnerWeightInvSample )"]