From a666f7a64a5fbb05df81b9cad90b28afdf0366f6 Mon Sep 17 00:00:00 2001
From: Mark Hodgkinson <m.hodgkinson@sheffield.ac.uk>
Date: Wed, 18 Feb 2015 13:39:50 +0100
Subject: [PATCH] 18 February 2015 Mark Hodgkinson Add CELL_SIG_SAMPLING plot
 for topoclusters Tag as PFOHistUtils-00-00-09 (PFOHistUtils-00-00-09)

---
 Reconstruction/PFlow/PFlowValidation/PFOHistUtils/Changelog | 4 ++++
 .../PFOHistUtils/PFOHistUtils/ClusterMomentPlots.h          | 1 +
 .../PFlowValidation/PFOHistUtils/src/ClusterMomentPlots.cxx | 6 ++++++
 3 files changed, 11 insertions(+)

diff --git a/Reconstruction/PFlow/PFlowValidation/PFOHistUtils/Changelog b/Reconstruction/PFlow/PFlowValidation/PFOHistUtils/Changelog
index e58d5a398b14..6f82527914b0 100644
--- a/Reconstruction/PFlow/PFlowValidation/PFOHistUtils/Changelog
+++ b/Reconstruction/PFlow/PFlowValidation/PFOHistUtils/Changelog
@@ -1,3 +1,7 @@
+18 February 2015 Mark Hodgkinson
+Add CELL_SIG_SAMPLING plot for topoclusters
+Tag as PFOHistUtils-00-00-09    	
+
 4 November 2014 Mark Hodgkinson
 Add new PFOAttributes class
 Tag as PFOHistUtils-00-00-08	
diff --git a/Reconstruction/PFlow/PFlowValidation/PFOHistUtils/PFOHistUtils/ClusterMomentPlots.h b/Reconstruction/PFlow/PFlowValidation/PFOHistUtils/PFOHistUtils/ClusterMomentPlots.h
index fd0032e0e8f6..f76b3c031514 100644
--- a/Reconstruction/PFlow/PFlowValidation/PFOHistUtils/PFOHistUtils/ClusterMomentPlots.h
+++ b/Reconstruction/PFlow/PFlowValidation/PFOHistUtils/PFOHistUtils/ClusterMomentPlots.h
@@ -34,6 +34,7 @@ namespace PFO {
      TH1* m_SIGNIFICANCE;
      TH1* m_AVG_LAR_Q;
      TH1* m_AVG_TILE_Q;
+     TH1* m_CELL_SIG_SAMPLING;
 
      void initializePlots();
      std::string m_sClusterContainerName;
diff --git a/Reconstruction/PFlow/PFlowValidation/PFOHistUtils/src/ClusterMomentPlots.cxx b/Reconstruction/PFlow/PFlowValidation/PFOHistUtils/src/ClusterMomentPlots.cxx
index 7574db3a1529..7416aa4191f8 100644
--- a/Reconstruction/PFlow/PFlowValidation/PFOHistUtils/src/ClusterMomentPlots.cxx
+++ b/Reconstruction/PFlow/PFlowValidation/PFOHistUtils/src/ClusterMomentPlots.cxx
@@ -24,6 +24,7 @@ namespace PFO {
     m_SIGNIFICANCE = Book1D("PFO_SIGNIFICANCE",m_sClusterContainerName + "_SIGNIFICANCE",300,-20.0,20.0);
     m_AVG_LAR_Q = Book1D("PFO_AVG_LAR_Q",m_sClusterContainerName + "_AVG_LAR_Q",240,-1.0,200.0);
     m_AVG_TILE_Q = Book1D("PFO_AVG_TILE_Q",m_sClusterContainerName + "_AVG_TILE_Q",240,-1.0,200.0);
+    m_CELL_SIG_SAMPLING = Book1D("PFO_CELL_SIG_SAMPLING",m_sClusterContainerName + "_CELL_SIG_SAMPLING",31,-1.0,30);
 
   }
 
@@ -99,6 +100,11 @@ namespace PFO {
     if (true == gotMoment) m_AVG_TILE_Q->Fill(moment_AVG_TILE_Q);
     else m_AVG_TILE_Q->Fill(-1.0);
 
+    double moment_CELL_SIG_SAMPLING = 0;
+    gotMoment = cluster.retrieveMoment(xAOD::CaloCluster::CELL_SIG_SAMPLING,moment_CELL_SIG_SAMPLING);
+    if (true == gotMoment) m_CELL_SIG_SAMPLING->Fill(moment_CELL_SIG_SAMPLING);
+    else m_CELL_SIG_SAMPLING->Fill(-1.0);
+
   }
 
 }
-- 
GitLab