PlotSystematicsHistograms

Plot the systematic variation histograms from a model.

Usage:

  +PlotSystematicsHistograms.inputs {
    +HWWRun2GGF{
    <outputDir = "./workspaces/run2-ggf-$(fitLabel)/systematicsInputs">
      <showInputs=true, warnMissing=false, printSummary=true, exportSummary="summary.txt">
      <variationFilter="*">
      # (optional)
      +CompareToModels {
         +HWWVBFSimple {
          +Plotter{
            +Up {
              <color=80, title="Raw Up", sub.drawOption="hist", .isData=true, histFillColor=0, histMarkerStyle=20>
            }
            +Down {
              <color=30, title="Raw Down", sub.drawOption="hist", .isData=true, histFillColor=0, histMarkerStyle=20>
            }
          }
         }
       }
      +Plotter {
        <style.subPlot="ratio", geometry.sub.height=0.55, style.sub.min=0.75, style.sub.max=1.25>
        <ensureDirectory=true, style.showTotalBkg=false,  style.nLegendCols=1, style.ratio.title = "Variation / Nominal">
        +Up {
          <color=kRed, title="Up", .isData=true, histMarkerStyle=20>
        }
        +Down {
          <color=kBlue, title="Down", .isData=true, histMarkerStyle=20>
        }
        +Nominal {
          <color=kBlack, title="Nominal", .isBackground=true, histFillStyle=0>
        }
      }
    }
  }
  +PlotSystematicsHistograms.outputs {
    +HWWRun2GGF{
      <outputDir = "./workspaces/run2-ggf-$(fitLabel)/systematicsOutputs">
      <showInputs=false, warnMissing=false>
      <variationFilter="*WW*,*ttbar*,*ggf*,*Wt*">
      <variationFilter="theo_*">
      <sampleFilter="qqWW*jet,ttbar*jet,singletop*jet,sigGGF*jet,sigVBF*jet">
      <channelFilter="*SR*">
      +Plotter {
        <style.subPlot="ratio", geometry.sub.height=0.55>
        <ensureDirectory=true, style.showTotalBkg=false, style.nLegendCols=1, style.ratio.title = "Variation / Nominal">
        +Up {
          <color=kRed, title="Up", .isData=true>
        }
        +Down {
          <color=kBlue, title="Down", .isData=true>
        }
      }
    }
  }

This action supports a wealth of options: