From 9680b224bd591c062a3e13d70155fa45c5eac6bc Mon Sep 17 00:00:00 2001
From: Luis Pascual Dominguez <luis.pascual@cern.ch>
Date: Fri, 14 Apr 2023 15:40:32 +0200
Subject: [PATCH 1/2] Initial test to reduce photon validation plots for Run 4

---
 .../config/dcube_config_all_domains_reduced.xml        | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Tools/CampaignsARTTests/config/dcube_config_all_domains_reduced.xml b/Tools/CampaignsARTTests/config/dcube_config_all_domains_reduced.xml
index 6845e1253afd..2d26f79f5f5b 100644
--- a/Tools/CampaignsARTTests/config/dcube_config_all_domains_reduced.xml
+++ b/Tools/CampaignsARTTests/config/dcube_config_all_domains_reduced.xml
@@ -467,6 +467,7 @@
      <hist1D name="Photon_Phot_n" plotopts="" tests="KS" type="TH1F"/>
      <hist1D name="Photon_Phot_n_weighted" plotopts="" tests="KS" type="TH1F"/>
     </TDirectory>
+    <!--
     <TDirectory name="PhotTopo">
      <TDirectory name="All">
       <TDirectory name="KinPlots">
@@ -570,6 +571,7 @@
       </TDirectory>
      </TDirectory>
     </TDirectory>
+    -->
     <TDirectory name="Truth">
      <TDirectory name="Reco">
       <TDirectory name="all">
@@ -578,6 +580,7 @@
        <hist1D name="Photon_Truth_Reco_all_phi" plotopts="" tests="KS" type="TH1F"/>
        <hist2D name="Photon_Truth_Reco_all_etvseta" plotopts="" tests="KS" type="TH2F"/>
       </TDirectory>
+      <!--
       <TDirectory name="Conv">
        <hist1D name="Photon_Truth_Reco_Conv_et" plotopts="" tests="KS" type="TH1F"/>
        <hist1D name="Photon_Truth_Reco_Conv_eta" plotopts="" tests="KS" type="TH1F"/>
@@ -590,6 +593,7 @@
        <hist1D name="Photon_Truth_Reco_Unc_phi" plotopts="" tests="KS" type="TH1F"/>
        <hist2D name="Photon_Truth_Reco_Unc_etvseta" plotopts="" tests="KS" type="TH2F"/>
       </TDirectory>
+      -->
      </TDirectory>
      <TDirectory name="RecoLoose">
       <TDirectory name="all">
@@ -598,6 +602,7 @@
        <hist1D name="Photon_Truth_RecoLoose_all_phi" plotopts="" tests="KS" type="TH1F"/>
        <hist2D name="Photon_Truth_RecoLoose_all_etvseta" plotopts="" tests="KS" type="TH2F"/>
       </TDirectory>
+      <!--
       <TDirectory name="Conv">
        <hist1D name="Photon_Truth_RecoLoose_Conv_et" plotopts="" tests="KS" type="TH1F"/>
        <hist1D name="Photon_Truth_RecoLoose_Conv_eta" plotopts="" tests="KS" type="TH1F"/>
@@ -610,6 +615,7 @@
        <hist1D name="Photon_Truth_RecoLoose_Unc_phi" plotopts="" tests="KS" type="TH1F"/>
        <hist2D name="Photon_Truth_RecoLoose_Unc_etvseta" plotopts="" tests="KS" type="TH2F"/>
       </TDirectory>
+      -->
      </TDirectory>
      <TDirectory name="RecoTight">
       <TDirectory name="all">
@@ -618,6 +624,7 @@
        <hist1D name="Photon_Truth_RecoTight_all_phi" plotopts="" tests="KS" type="TH1F"/>
        <hist2D name="Photon_Truth_RecoTight_all_etvseta" plotopts="" tests="KS" type="TH2F"/>
       </TDirectory>
+      <!--
       <TDirectory name="Conv">
        <hist1D name="Photon_Truth_RecoTight_Conv_et" plotopts="" tests="KS" type="TH1F"/>
        <hist1D name="Photon_Truth_RecoTight_Conv_eta" plotopts="" tests="KS" type="TH1F"/>
@@ -630,6 +637,7 @@
        <hist1D name="Photon_Truth_RecoTight_Unc_phi" plotopts="" tests="KS" type="TH1F"/>
        <hist2D name="Photon_Truth_RecoTight_Unc_etvseta" plotopts="" tests="KS" type="TH2F"/>
       </TDirectory>
+      -->
      </TDirectory>
      <TDirectory name="Iso">
       <TDirectory name="all">
@@ -638,6 +646,7 @@
        <hist1D name="Photon_Truth_Iso_all_phi" plotopts="" tests="KS" type="TH1F"/>
        <hist2D name="Photon_Truth_Iso_all_etvseta" plotopts="" tests="KS" type="TH2F"/>
       </TDirectory>
+      <!--
       <TDirectory name="Conv">
        <hist1D name="Photon_Truth_Iso_Conv_et" plotopts="" tests="KS" type="TH1F"/>
        <hist1D name="Photon_Truth_Iso_Conv_eta" plotopts="" tests="KS" type="TH1F"/>
@@ -650,6 +659,7 @@
        <hist1D name="Photon_Truth_Iso_Unc_phi" plotopts="" tests="KS" type="TH1F"/>
        <hist2D name="Photon_Truth_Iso_Unc_etvseta" plotopts="" tests="KS" type="TH2F"/>
       </TDirectory>
+      -->
      </TDirectory>
     </TDirectory>
     <hist1D name="Photon_author" plotopts="" tests="KS" type="TH1F"/>
-- 
GitLab


From 4e687afaaae1bd45d522be8f15a67e50a72c59c8 Mon Sep 17 00:00:00 2001
From: Luis Pascual Dominguez <luis.pascual@cern.ch>
Date: Fri, 14 Apr 2023 15:59:03 +0200
Subject: [PATCH 2/2] Removing plots instead of commenting

---
 .../dcube_config_all_domains_reduced.xml      | 161 ------------------
 1 file changed, 161 deletions(-)

diff --git a/Tools/CampaignsARTTests/config/dcube_config_all_domains_reduced.xml b/Tools/CampaignsARTTests/config/dcube_config_all_domains_reduced.xml
index 2d26f79f5f5b..ba1f91fb26de 100644
--- a/Tools/CampaignsARTTests/config/dcube_config_all_domains_reduced.xml
+++ b/Tools/CampaignsARTTests/config/dcube_config_all_domains_reduced.xml
@@ -467,111 +467,6 @@
      <hist1D name="Photon_Phot_n" plotopts="" tests="KS" type="TH1F"/>
      <hist1D name="Photon_Phot_n_weighted" plotopts="" tests="KS" type="TH1F"/>
     </TDirectory>
-    <!--
-    <TDirectory name="PhotTopo">
-     <TDirectory name="All">
-      <TDirectory name="KinPlots">
-       <hist1D name="Photon_PhotTopo_All_KinPlots_et" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_PhotTopo_All_KinPlots_eta" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_PhotTopo_All_KinPlots_phi" plotopts="" tests="KS" type="TH1F"/>
-       <hist2D name="Photon_PhotTopo_All_KinPlots_etvseta" plotopts="" tests="KS" type="TH2F"/>
-      </TDirectory>
-     </TDirectory>
-     <TDirectory name="Iso">
-      <TDirectory name="KinPlots">
-       <hist1D name="Photon_PhotTopo_Iso_KinPlots_et" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_PhotTopo_Iso_KinPlots_eta" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_PhotTopo_Iso_KinPlots_phi" plotopts="" tests="KS" type="TH1F"/>
-       <hist2D name="Photon_PhotTopo_Iso_KinPlots_etvseta" plotopts="" tests="KS" type="TH2F"/>
-      </TDirectory>
-     </TDirectory>
-     <TDirectory name="IsoLoose">
-      <TDirectory name="KinPlots">
-       <hist1D name="Photon_PhotTopo_IsoLoose_KinPlots_et" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_PhotTopo_IsoLoose_KinPlots_eta" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_PhotTopo_IsoLoose_KinPlots_phi" plotopts="" tests="KS" type="TH1F"/>
-       <hist2D name="Photon_PhotTopo_IsoLoose_KinPlots_etvseta" plotopts="" tests="KS" type="TH2F"/>
-      </TDirectory>
-     </TDirectory>
-     <TDirectory name="IsoTight">
-      <TDirectory name="KinPlots">
-       <hist1D name="Photon_PhotTopo_IsoTight_KinPlots_et" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_PhotTopo_IsoTight_KinPlots_eta" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_PhotTopo_IsoTight_KinPlots_phi" plotopts="" tests="KS" type="TH1F"/>
-       <hist2D name="Photon_PhotTopo_IsoTight_KinPlots_etvseta" plotopts="" tests="KS" type="TH2F"/>
-      </TDirectory>
-     </TDirectory>
-     <hist1D name="Photon_PhotTopo_n" plotopts="" tests="KS" type="TH1F"/>
-     <hist1D name="Photon_PhotTopo_n_weighted" plotopts="" tests="KS" type="TH1F"/>
-    </TDirectory>
-    <TDirectory name="PhotAmb">
-     <TDirectory name="All">
-      <TDirectory name="KinPlots">
-       <hist1D name="Photon_PhotAmb_All_KinPlots_et" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_PhotAmb_All_KinPlots_eta" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_PhotAmb_All_KinPlots_phi" plotopts="" tests="KS" type="TH1F"/>
-       <hist2D name="Photon_PhotAmb_All_KinPlots_etvseta" plotopts="" tests="KS" type="TH2F"/>
-      </TDirectory>
-     </TDirectory>
-     <hist1D name="Photon_PhotAmb_n" plotopts="" tests="KS" type="TH1F"/>
-     <hist1D name="Photon_PhotAmb_n_weighted" plotopts="" tests="KS" type="TH1F"/>
-    </TDirectory>
-    <TDirectory name="Conv">
-     <TDirectory name="All">
-      <TDirectory name="KinPlots">
-       <hist1D name="Photon_Conv_All_KinPlots_et" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_Conv_All_KinPlots_eta" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_Conv_All_KinPlots_phi" plotopts="" tests="KS" type="TH1F"/>
-       <hist2D name="Photon_Conv_All_KinPlots_etvseta" plotopts="" tests="KS" type="TH2F"/>
-      </TDirectory>
-     </TDirectory>
-     <TDirectory name="Iso">
-      <TDirectory name="KinPlots">
-       <hist1D name="Photon_Conv_Iso_KinPlots_et" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_Conv_Iso_KinPlots_eta" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_Conv_Iso_KinPlots_phi" plotopts="" tests="KS" type="TH1F"/>
-       <hist2D name="Photon_Conv_Iso_KinPlots_etvseta" plotopts="" tests="KS" type="TH2F"/>
-      </TDirectory>
-     </TDirectory>
-     <hist1D name="Photon_Conv_n" plotopts="" tests="KS" type="TH1F"/>
-     <hist1D name="Photon_Conv_n_weighted" plotopts="" tests="KS" type="TH1F"/>
-     <hist1D name="Photon_Conv_nVtx" plotopts="" tests="KS" type="TH1F"/>
-     <hist1D name="Photon_Conv_convR" plotopts="" tests="KS" type="TH1F"/>
-     <hist2D name="Photon_Conv_convRvsEta" plotopts="" tests="KS" type="TH2F"/>
-     <hist2D name="Photon_Conv_convRvsType" plotopts="" tests="KS" type="TH2F"/>
-     <hist1D name="Photon_Conv_convType" plotopts="" tests="KS" type="TH1F"/>
-     <hist1D name="Photon_Conv_convDeltaEta" plotopts="" tests="KS" type="TH1F"/>
-     <hist1D name="Photon_Conv_ConvDeltaPhi" plotopts="" tests="KS" type="TH1F"/>
-    </TDirectory>
-    <TDirectory name="TruthAll">
-     <TDirectory name="All">
-      <hist1D name="Photon_TruthAll_All_et" plotopts="" tests="KS" type="TH1F"/>
-      <hist1D name="Photon_TruthAll_All_eta" plotopts="" tests="KS" type="TH1F"/>
-      <hist1D name="Photon_TruthAll_All_phi" plotopts="" tests="KS" type="TH1F"/>
-      <hist2D name="Photon_TruthAll_All_etvseta" plotopts="" tests="KS" type="TH2F"/>
-     </TDirectory>
-     <TDirectory name="Iso">
-      <TDirectory name="all">
-       <hist1D name="Photon_TruthAll_Iso_all_et" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_TruthAll_Iso_all_eta" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_TruthAll_Iso_all_phi" plotopts="" tests="KS" type="TH1F"/>
-       <hist2D name="Photon_TruthAll_Iso_all_etvseta" plotopts="" tests="KS" type="TH2F"/>
-      </TDirectory>
-      <TDirectory name="Conv">
-       <hist1D name="Photon_TruthAll_Iso_Conv_et" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_TruthAll_Iso_Conv_eta" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_TruthAll_Iso_Conv_phi" plotopts="" tests="KS" type="TH1F"/>
-       <hist2D name="Photon_TruthAll_Iso_Conv_etvseta" plotopts="" tests="KS" type="TH2F"/>
-      </TDirectory>
-      <TDirectory name="Unc">
-       <hist1D name="Photon_TruthAll_Iso_Unc_et" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_TruthAll_Iso_Unc_eta" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_TruthAll_Iso_Unc_phi" plotopts="" tests="KS" type="TH1F"/>
-       <hist2D name="Photon_TruthAll_Iso_Unc_etvseta" plotopts="" tests="KS" type="TH2F"/>
-      </TDirectory>
-     </TDirectory>
-    </TDirectory>
-    -->
     <TDirectory name="Truth">
      <TDirectory name="Reco">
       <TDirectory name="all">
@@ -580,20 +475,6 @@
        <hist1D name="Photon_Truth_Reco_all_phi" plotopts="" tests="KS" type="TH1F"/>
        <hist2D name="Photon_Truth_Reco_all_etvseta" plotopts="" tests="KS" type="TH2F"/>
       </TDirectory>
-      <!--
-      <TDirectory name="Conv">
-       <hist1D name="Photon_Truth_Reco_Conv_et" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_Truth_Reco_Conv_eta" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_Truth_Reco_Conv_phi" plotopts="" tests="KS" type="TH1F"/>
-       <hist2D name="Photon_Truth_Reco_Conv_etvseta" plotopts="" tests="KS" type="TH2F"/>
-      </TDirectory>
-      <TDirectory name="Unc">
-       <hist1D name="Photon_Truth_Reco_Unc_et" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_Truth_Reco_Unc_eta" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_Truth_Reco_Unc_phi" plotopts="" tests="KS" type="TH1F"/>
-       <hist2D name="Photon_Truth_Reco_Unc_etvseta" plotopts="" tests="KS" type="TH2F"/>
-      </TDirectory>
-      -->
      </TDirectory>
      <TDirectory name="RecoLoose">
       <TDirectory name="all">
@@ -602,20 +483,6 @@
        <hist1D name="Photon_Truth_RecoLoose_all_phi" plotopts="" tests="KS" type="TH1F"/>
        <hist2D name="Photon_Truth_RecoLoose_all_etvseta" plotopts="" tests="KS" type="TH2F"/>
       </TDirectory>
-      <!--
-      <TDirectory name="Conv">
-       <hist1D name="Photon_Truth_RecoLoose_Conv_et" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_Truth_RecoLoose_Conv_eta" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_Truth_RecoLoose_Conv_phi" plotopts="" tests="KS" type="TH1F"/>
-       <hist2D name="Photon_Truth_RecoLoose_Conv_etvseta" plotopts="" tests="KS" type="TH2F"/>
-      </TDirectory>
-      <TDirectory name="Unc">
-       <hist1D name="Photon_Truth_RecoLoose_Unc_et" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_Truth_RecoLoose_Unc_eta" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_Truth_RecoLoose_Unc_phi" plotopts="" tests="KS" type="TH1F"/>
-       <hist2D name="Photon_Truth_RecoLoose_Unc_etvseta" plotopts="" tests="KS" type="TH2F"/>
-      </TDirectory>
-      -->
      </TDirectory>
      <TDirectory name="RecoTight">
       <TDirectory name="all">
@@ -624,20 +491,6 @@
        <hist1D name="Photon_Truth_RecoTight_all_phi" plotopts="" tests="KS" type="TH1F"/>
        <hist2D name="Photon_Truth_RecoTight_all_etvseta" plotopts="" tests="KS" type="TH2F"/>
       </TDirectory>
-      <!--
-      <TDirectory name="Conv">
-       <hist1D name="Photon_Truth_RecoTight_Conv_et" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_Truth_RecoTight_Conv_eta" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_Truth_RecoTight_Conv_phi" plotopts="" tests="KS" type="TH1F"/>
-       <hist2D name="Photon_Truth_RecoTight_Conv_etvseta" plotopts="" tests="KS" type="TH2F"/>
-      </TDirectory>
-      <TDirectory name="Unc">
-       <hist1D name="Photon_Truth_RecoTight_Unc_et" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_Truth_RecoTight_Unc_eta" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_Truth_RecoTight_Unc_phi" plotopts="" tests="KS" type="TH1F"/>
-       <hist2D name="Photon_Truth_RecoTight_Unc_etvseta" plotopts="" tests="KS" type="TH2F"/>
-      </TDirectory>
-      -->
      </TDirectory>
      <TDirectory name="Iso">
       <TDirectory name="all">
@@ -646,20 +499,6 @@
        <hist1D name="Photon_Truth_Iso_all_phi" plotopts="" tests="KS" type="TH1F"/>
        <hist2D name="Photon_Truth_Iso_all_etvseta" plotopts="" tests="KS" type="TH2F"/>
       </TDirectory>
-      <!--
-      <TDirectory name="Conv">
-       <hist1D name="Photon_Truth_Iso_Conv_et" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_Truth_Iso_Conv_eta" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_Truth_Iso_Conv_phi" plotopts="" tests="KS" type="TH1F"/>
-       <hist2D name="Photon_Truth_Iso_Conv_etvseta" plotopts="" tests="KS" type="TH2F"/>
-      </TDirectory>
-      <TDirectory name="Unc">
-       <hist1D name="Photon_Truth_Iso_Unc_et" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_Truth_Iso_Unc_eta" plotopts="" tests="KS" type="TH1F"/>
-       <hist1D name="Photon_Truth_Iso_Unc_phi" plotopts="" tests="KS" type="TH1F"/>
-       <hist2D name="Photon_Truth_Iso_Unc_etvseta" plotopts="" tests="KS" type="TH2F"/>
-      </TDirectory>
-      -->
      </TDirectory>
     </TDirectory>
     <hist1D name="Photon_author" plotopts="" tests="KS" type="TH1F"/>
-- 
GitLab