Esempio n. 1
0
legendPositions = {
    "tau_pt":[0.6, 0.7, 0.95, 0.9],
    "tau_eta":[0.35, 0.2, 0.7, 0.3],
    "tau_decayMode":[0.2, 0.7, 0.55, 0.9],
    "tau_pdgId":[0.2, 0.7, 0.55, 0.9],
}




plots = []
for var,options in variables.items():
    for nameRef,histoRef in histosRef.items():
        for name,histo in histos.items():
            plot = ComparisonPlot()
            plot.name = var+"_"+nameRef+"_"+name
            plot.logy = options["Log"]
            plot.legendPosition = legendPositions[var]
            configRef = copy(configZMuMu)
            configRef.unitScaling = True
            configRef.binWidthScaling = options["VariableWidth"]
            configRef.xTitle = options["Title"]
            plot.addHisto(histoRef[0],histoRef[1].format(VAR=var), configRef)
            config = copy(configMuTau)
            config.unitScaling = True
            config.binWidthScaling = options["VariableWidth"]
            config.xTitle = options["Title"]
            config.legend = name+" "+config.legend
            plot.addHisto(histo[0],histo[1].format(VAR=var), config)
            plot.plot()