From 5f1b13ffb4a7d3413f7b1eca199317a87d4b6c79 Mon Sep 17 00:00:00 2001
From: Chris Jones <jonesc@hep.phy.cam.ac.uk>
Date: Wed, 20 Sep 2023 17:56:30 +0100
Subject: [PATCH] DecodedDataFromMCRichHits: Default IsDetDescMC to true

---
 .../src/component/DecodedDataFromMCRichHits.cpp               | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Rich/RichFutureMCUtils/src/component/DecodedDataFromMCRichHits.cpp b/Rich/RichFutureMCUtils/src/component/DecodedDataFromMCRichHits.cpp
index 6bdae754a26..3e9ca86a47b 100644
--- a/Rich/RichFutureMCUtils/src/component/DecodedDataFromMCRichHits.cpp
+++ b/Rich/RichFutureMCUtils/src/component/DecodedDataFromMCRichHits.cpp
@@ -71,7 +71,7 @@ namespace Rich::Future::MC {
       std::map<LHCb::RichSmartID, std::vector<LHCb::MCRichHit*>> hitsPerPix;
       for ( const auto mchit : mchits ) {
         const auto id = mchit->sensDetID();
-        if ( mchit && id.isValid() ) {
+        if ( id.isValid() ) {
 
           // Apply all sorts MC based filtering here, e.g. signal only, timing windows etc.
           // To be extended as needed
@@ -157,7 +157,7 @@ namespace Rich::Future::MC {
     /** Temporary workaround for processing DetDesc MC as input.
      *  When active, applies corrections to the data to make compatible
      *  with the dd4hep builds. */
-    Gaudi::Property<bool> m_detdescMCinput{this, "IsDetDescMC", false};
+    Gaudi::Property<bool> m_detdescMCinput{this, "IsDetDescMC", true};
 
     /// Include time information in the decoded data
     Gaudi::Property<bool> m_includeTimeInfo{this, "IncludeTimeInfo", true};
-- 
GitLab