def hlxlayout(i, p, *rows): i["HLX/Layouts/" + p] = DQMItem(layout=rows)

hlxlayout(dqmitems, "Occupancy-Wedge01",
  ["HLX/HFPlus/Wedge01/ETSum"],
  ["HLX/HFPlus/Wedge01/Set1_Below","HLX/HFPlus/Wedge01/Set1_Between","HLX/HFPlus/Wedge01/Set1_Above"],
  ["HLX/HFPlus/Wedge01/Set2_Below","HLX/HFPlus/Wedge01/Set2_Between","HLX/HFPlus/Wedge01/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge02",
  ["HLX/HFPlus/Wedge02/ETSum"],
  ["HLX/HFPlus/Wedge02/Set1_Below","HLX/HFPlus/Wedge02/Set1_Between","HLX/HFPlus/Wedge02/Set1_Above"],
  ["HLX/HFPlus/Wedge02/Set2_Below","HLX/HFPlus/Wedge02/Set2_Between","HLX/HFPlus/Wedge02/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge03",
  ["HLX/HFPlus/Wedge03/ETSum"],
  ["HLX/HFPlus/Wedge03/Set1_Below","HLX/HFPlus/Wedge03/Set1_Between","HLX/HFPlus/Wedge03/Set1_Above"],
  ["HLX/HFPlus/Wedge03/Set2_Below","HLX/HFPlus/Wedge03/Set2_Between","HLX/HFPlus/Wedge03/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge04",
  ["HLX/HFPlus/Wedge04/ETSum"],
  ["HLX/HFPlus/Wedge04/Set1_Below","HLX/HFPlus/Wedge04/Set1_Between","HLX/HFPlus/Wedge04/Set1_Above"],
  ["HLX/HFPlus/Wedge04/Set2_Below","HLX/HFPlus/Wedge04/Set2_Between","HLX/HFPlus/Wedge04/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge05",
  ["HLX/HFPlus/Wedge05/ETSum"],
  ["HLX/HFPlus/Wedge05/Set1_Below","HLX/HFPlus/Wedge05/Set1_Between","HLX/HFPlus/Wedge05/Set1_Above"],
  ["HLX/HFPlus/Wedge05/Set2_Below","HLX/HFPlus/Wedge05/Set2_Between","HLX/HFPlus/Wedge05/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge06",
  ["HLX/HFPlus/Wedge06/ETSum"],
  ["HLX/HFPlus/Wedge06/Set1_Below","HLX/HFPlus/Wedge06/Set1_Between","HLX/HFPlus/Wedge06/Set1_Above"],
  ["HLX/HFPlus/Wedge06/Set2_Below","HLX/HFPlus/Wedge06/Set2_Between","HLX/HFPlus/Wedge06/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge07",
  ["HLX/HFPlus/Wedge07/ETSum"],
  ["HLX/HFPlus/Wedge07/Set1_Below","HLX/HFPlus/Wedge07/Set1_Between","HLX/HFPlus/Wedge07/Set1_Above"],
  ["HLX/HFPlus/Wedge07/Set2_Below","HLX/HFPlus/Wedge07/Set2_Between","HLX/HFPlus/Wedge07/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge08",
  ["HLX/HFPlus/Wedge08/ETSum"],
  ["HLX/HFPlus/Wedge08/Set1_Below","HLX/HFPlus/Wedge08/Set1_Between","HLX/HFPlus/Wedge08/Set1_Above"],
  ["HLX/HFPlus/Wedge08/Set2_Below","HLX/HFPlus/Wedge08/Set2_Between","HLX/HFPlus/Wedge08/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge09",
  ["HLX/HFPlus/Wedge09/ETSum"],
  ["HLX/HFPlus/Wedge09/Set1_Below","HLX/HFPlus/Wedge09/Set1_Between","HLX/HFPlus/Wedge09/Set1_Above"],
  ["HLX/HFPlus/Wedge09/Set2_Below","HLX/HFPlus/Wedge09/Set2_Between","HLX/HFPlus/Wedge09/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge10",
  ["HLX/HFPlus/Wedge10/ETSum"],
  ["HLX/HFPlus/Wedge10/Set1_Below","HLX/HFPlus/Wedge10/Set1_Between","HLX/HFPlus/Wedge10/Set1_Above"],
  ["HLX/HFPlus/Wedge10/Set2_Below","HLX/HFPlus/Wedge10/Set2_Between","HLX/HFPlus/Wedge10/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge11",
  ["HLX/HFPlus/Wedge11/ETSum"],
  ["HLX/HFPlus/Wedge11/Set1_Below","HLX/HFPlus/Wedge11/Set1_Between","HLX/HFPlus/Wedge11/Set1_Above"],
  ["HLX/HFPlus/Wedge11/Set2_Below","HLX/HFPlus/Wedge11/Set2_Between","HLX/HFPlus/Wedge11/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge12",
  ["HLX/HFPlus/Wedge12/ETSum"],
  ["HLX/HFPlus/Wedge12/Set1_Below","HLX/HFPlus/Wedge12/Set1_Between","HLX/HFPlus/Wedge12/Set1_Above"],
  ["HLX/HFPlus/Wedge12/Set2_Below","HLX/HFPlus/Wedge12/Set2_Between","HLX/HFPlus/Wedge12/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge13",
  ["HLX/HFPlus/Wedge13/ETSum"],
  ["HLX/HFPlus/Wedge13/Set1_Below","HLX/HFPlus/Wedge13/Set1_Between","HLX/HFPlus/Wedge13/Set1_Above"],
  ["HLX/HFPlus/Wedge13/Set2_Below","HLX/HFPlus/Wedge13/Set2_Between","HLX/HFPlus/Wedge13/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge14",
  ["HLX/HFPlus/Wedge14/ETSum"],
  ["HLX/HFPlus/Wedge14/Set1_Below","HLX/HFPlus/Wedge14/Set1_Between","HLX/HFPlus/Wedge14/Set1_Above"],
  ["HLX/HFPlus/Wedge14/Set2_Below","HLX/HFPlus/Wedge14/Set2_Between","HLX/HFPlus/Wedge14/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge15",
  ["HLX/HFPlus/Wedge15/ETSum"],
  ["HLX/HFPlus/Wedge15/Set1_Below","HLX/HFPlus/Wedge15/Set1_Between","HLX/HFPlus/Wedge15/Set1_Above"],
  ["HLX/HFPlus/Wedge15/Set2_Below","HLX/HFPlus/Wedge15/Set2_Between","HLX/HFPlus/Wedge15/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge16",
  ["HLX/HFPlus/Wedge16/ETSum"],
  ["HLX/HFPlus/Wedge16/Set1_Below","HLX/HFPlus/Wedge16/Set1_Between","HLX/HFPlus/Wedge16/Set1_Above"],
  ["HLX/HFPlus/Wedge16/Set2_Below","HLX/HFPlus/Wedge16/Set2_Between","HLX/HFPlus/Wedge16/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge17",
  ["HLX/HFPlus/Wedge17/ETSum"],
  ["HLX/HFPlus/Wedge17/Set1_Below","HLX/HFPlus/Wedge17/Set1_Between","HLX/HFPlus/Wedge17/Set1_Above"],
  ["HLX/HFPlus/Wedge17/Set2_Below","HLX/HFPlus/Wedge17/Set2_Between","HLX/HFPlus/Wedge17/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge18",
  ["HLX/HFPlus/Wedge18/ETSum"],
  ["HLX/HFPlus/Wedge18/Set1_Below","HLX/HFPlus/Wedge18/Set1_Between","HLX/HFPlus/Wedge18/Set1_Above"],
  ["HLX/HFPlus/Wedge18/Set2_Below","HLX/HFPlus/Wedge18/Set2_Between","HLX/HFPlus/Wedge18/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge19",
  ["HLX/HFMinus/Wedge19/ETSum"],
  ["HLX/HFMinus/Wedge19/Set1_Below","HLX/HFMinus/Wedge19/Set1_Between","HLX/HFMinus/Wedge19/Set1_Above"],
  ["HLX/HFMinus/Wedge19/Set2_Below","HLX/HFMinus/Wedge19/Set2_Between","HLX/HFMinus/Wedge19/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge20",
  ["HLX/HFMinus/Wedge20/ETSum"],
  ["HLX/HFMinus/Wedge20/Set1_Below","HLX/HFMinus/Wedge20/Set1_Between","HLX/HFMinus/Wedge20/Set1_Above"],
  ["HLX/HFMinus/Wedge20/Set2_Below","HLX/HFMinus/Wedge20/Set2_Between","HLX/HFMinus/Wedge20/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge21",
  ["HLX/HFMinus/Wedge21/ETSum"],
  ["HLX/HFMinus/Wedge21/Set1_Below","HLX/HFMinus/Wedge21/Set1_Between","HLX/HFMinus/Wedge21/Set1_Above"],
  ["HLX/HFMinus/Wedge21/Set2_Below","HLX/HFMinus/Wedge21/Set2_Between","HLX/HFMinus/Wedge21/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge22",
  ["HLX/HFMinus/Wedge22/ETSum"],
  ["HLX/HFMinus/Wedge22/Set1_Below","HLX/HFMinus/Wedge22/Set1_Between","HLX/HFMinus/Wedge22/Set1_Above"],
  ["HLX/HFMinus/Wedge22/Set2_Below","HLX/HFMinus/Wedge22/Set2_Between","HLX/HFMinus/Wedge22/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge23",
  ["HLX/HFMinus/Wedge23/ETSum"],
  ["HLX/HFMinus/Wedge23/Set1_Below","HLX/HFMinus/Wedge23/Set1_Between","HLX/HFMinus/Wedge23/Set1_Above"],
  ["HLX/HFMinus/Wedge23/Set2_Below","HLX/HFMinus/Wedge23/Set2_Between","HLX/HFMinus/Wedge23/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge24",
  ["HLX/HFMinus/Wedge24/ETSum"],
  ["HLX/HFMinus/Wedge24/Set1_Below","HLX/HFMinus/Wedge24/Set1_Between","HLX/HFMinus/Wedge24/Set1_Above"],
  ["HLX/HFMinus/Wedge24/Set2_Below","HLX/HFMinus/Wedge24/Set2_Between","HLX/HFMinus/Wedge24/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge25",
  ["HLX/HFMinus/Wedge25/ETSum"],
  ["HLX/HFMinus/Wedge25/Set1_Below","HLX/HFMinus/Wedge25/Set1_Between","HLX/HFMinus/Wedge25/Set1_Above"],
  ["HLX/HFMinus/Wedge25/Set2_Below","HLX/HFMinus/Wedge25/Set2_Between","HLX/HFMinus/Wedge25/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge26",
  ["HLX/HFMinus/Wedge26/ETSum"],
  ["HLX/HFMinus/Wedge26/Set1_Below","HLX/HFMinus/Wedge26/Set1_Between","HLX/HFMinus/Wedge26/Set1_Above"],
  ["HLX/HFMinus/Wedge26/Set2_Below","HLX/HFMinus/Wedge26/Set2_Between","HLX/HFMinus/Wedge26/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge27",
  ["HLX/HFMinus/Wedge27/ETSum"],
  ["HLX/HFMinus/Wedge27/Set1_Below","HLX/HFMinus/Wedge27/Set1_Between","HLX/HFMinus/Wedge27/Set1_Above"],
  ["HLX/HFMinus/Wedge27/Set2_Below","HLX/HFMinus/Wedge27/Set2_Between","HLX/HFMinus/Wedge27/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge28",
  ["HLX/HFMinus/Wedge28/ETSum"],
  ["HLX/HFMinus/Wedge28/Set1_Below","HLX/HFMinus/Wedge28/Set1_Between","HLX/HFMinus/Wedge28/Set1_Above"],
  ["HLX/HFMinus/Wedge28/Set2_Below","HLX/HFMinus/Wedge28/Set2_Between","HLX/HFMinus/Wedge28/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge29",
  ["HLX/HFMinus/Wedge29/ETSum"],
  ["HLX/HFMinus/Wedge29/Set1_Below","HLX/HFMinus/Wedge29/Set1_Between","HLX/HFMinus/Wedge29/Set1_Above"],
  ["HLX/HFMinus/Wedge29/Set2_Below","HLX/HFMinus/Wedge29/Set2_Between","HLX/HFMinus/Wedge29/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge30",
  ["HLX/HFMinus/Wedge30/ETSum"],
  ["HLX/HFMinus/Wedge30/Set1_Below","HLX/HFMinus/Wedge30/Set1_Between","HLX/HFMinus/Wedge30/Set1_Above"],
  ["HLX/HFMinus/Wedge30/Set2_Below","HLX/HFMinus/Wedge30/Set2_Between","HLX/HFMinus/Wedge30/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge31",
  ["HLX/HFMinus/Wedge31/ETSum"],
  ["HLX/HFMinus/Wedge31/Set1_Below","HLX/HFMinus/Wedge31/Set1_Between","HLX/HFMinus/Wedge31/Set1_Above"],
  ["HLX/HFMinus/Wedge31/Set2_Below","HLX/HFMinus/Wedge31/Set2_Between","HLX/HFMinus/Wedge31/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge32",
  ["HLX/HFMinus/Wedge32/ETSum"],
  ["HLX/HFMinus/Wedge32/Set1_Below","HLX/HFMinus/Wedge32/Set1_Between","HLX/HFMinus/Wedge32/Set1_Above"],
  ["HLX/HFMinus/Wedge32/Set2_Below","HLX/HFMinus/Wedge32/Set2_Between","HLX/HFMinus/Wedge32/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge33",
  ["HLX/HFMinus/Wedge33/ETSum"],
  ["HLX/HFMinus/Wedge33/Set1_Below","HLX/HFMinus/Wedge33/Set1_Between","HLX/HFMinus/Wedge33/Set1_Above"],
  ["HLX/HFMinus/Wedge33/Set2_Below","HLX/HFMinus/Wedge33/Set2_Between","HLX/HFMinus/Wedge33/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge34",
  ["HLX/HFMinus/Wedge34/ETSum"],
  ["HLX/HFMinus/Wedge34/Set1_Below","HLX/HFMinus/Wedge34/Set1_Between","HLX/HFMinus/Wedge34/Set1_Above"],
  ["HLX/HFMinus/Wedge34/Set2_Below","HLX/HFMinus/Wedge34/Set2_Between","HLX/HFMinus/Wedge34/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge35",
  ["HLX/HFMinus/Wedge35/ETSum"],
  ["HLX/HFMinus/Wedge35/Set1_Below","HLX/HFMinus/Wedge35/Set1_Between","HLX/HFMinus/Wedge35/Set1_Above"],
  ["HLX/HFMinus/Wedge35/Set2_Below","HLX/HFMinus/Wedge35/Set2_Between","HLX/HFMinus/Wedge35/Set2_Above"])

hlxlayout(dqmitems, "Occupancy-Wedge36",
  ["HLX/HFMinus/Wedge36/ETSum"],
  ["HLX/HFMinus/Wedge36/Set1_Below","HLX/HFMinus/Wedge36/Set1_Between","HLX/HFMinus/Wedge36/Set1_Above"],
  ["HLX/HFMinus/Wedge36/Set2_Below","HLX/HFMinus/Wedge36/Set2_Between","HLX/HFMinus/Wedge36/Set2_Above"])

hlxlayout(dqmitems, "HF-Comparison",
  ["HLX/HFCompare/HFCompareEtSum"],
  ["HLX/HFCompare/HFCompareOccBelowSet1","HLX/HFCompare/HFCompareOccBetweenSet1",
   "HLX/HFCompare/HFCompareOccAboveSet1"],
  ["HLX/HFCompare/HFCompareOccBelowSet2","HLX/HFCompare/HFCompareOccBetweenSet2",
   "HLX/HFCompare/HFCompareOccAboveSet2"])

hlxlayout(dqmitems, "HLX-Averages",
  ["HLX/Average/AvgEtSum"],
  ["HLX/Average/AvgOccBelowSet1","HLX/Average/AvgOccBetweenSet1",
   "HLX/Average/AvgOccAboveSet1"],
  ["HLX/Average/AvgOccBelowSet2","HLX/Average/AvgOccBetweenSet2",
   "HLX/Average/AvgOccAboveSet2"])

hlxlayout(dqmitems, "HLX-Luminosity",
  ["HLX/Luminosity/LumiAvgEtSum","HLX/Luminosity/LumiAvgOccSet1","HLX/Luminosity/LumiAvgOccSet2"],
  ["HLX/Luminosity/LumiInstantEtSum","HLX/Luminosity/LumiInstantOccSet1","HLX/Luminosity/LumiInstantOccSet2"],
  ["HLX/Luminosity/LumiIntegratedEtSum","HLX/Luminosity/LumiIntegratedOccSet1","HLX/Luminosity/LumiIntegratedOccSet2"] )

hlxlayout(dqmitems, "HLX-Occupancy-Check-Sums",
  ["HLX/CheckSums/SumAllOccSet1","HLX/CheckSums/SumAllOccSet2"])

hlxlayout(dqmitems, "HLX-EtSumAndLumi-History-Plots",
          ["HLX/HistoryRaw/HistAvgEtSumHFP","HLX/HistoryRaw/HistAvgEtSumHFM"],
          ["HLX/HistoryLumi/HistAvgLumiEtSum","HLX/HistoryLumi/HistAvgLumiOccSet1","HLX/HistoryLumi/HistAvgLumiOccSet2"],
          ["HLX/HistoryLumi/HistInstantLumiEtSum","HLX/HistoryLumi/HistInstantLumiOccSet1","HLX/HistoryLumi/HistInstantLumiOccSet2"])

hlxlayout(dqmitems, "HLX-Occupancy-History-Plots",
          ["HLX/HistoryRaw/HistAvgOccBelowSet1HFP","HLX/HistoryRaw/HistAvgOccBelowSet1HFM"],
          ["HLX/HistoryRaw/HistAvgOccBetweenSet1HFP","HLX/HistoryRaw/HistAvgOccBetweenSet1HFM"],
          ["HLX/HistoryRaw/HistAvgOccAboveSet1HFP","HLX/HistoryRaw/HistAvgOccAboveSet1HFM"],
          ["HLX/HistoryRaw/HistAvgOccBelowSet2HFP","HLX/HistoryRaw/HistAvgOccBelowSet2HFM"],
          ["HLX/HistoryRaw/HistAvgOccBetweenSet2HFP","HLX/HistoryRaw/HistAvgOccBetweenSet2HFM"],
          ["HLX/HistoryRaw/HistAvgOccAboveSet2HFP","HLX/HistoryRaw/HistAvgOccAboveSet2HFM"])
