From f071ed2548791a0fcec18937bb9a33867b0f7b9f Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wdconinc@gmail.com>
Date: Wed, 16 Feb 2022 22:39:00 +0000
Subject: [PATCH] Change `sens.setType("photoncounter")` to tracker

---
 src/DIRC_geo.cpp        | 4 ++--
 src/DRICH_geo.cpp       | 2 +-
 src/GaseousRICH_geo.cpp | 2 +-
 src/MRich_geo.cpp       | 4 ++--
 src/PFRICH_geo.cpp      | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/DIRC_geo.cpp b/src/DIRC_geo.cpp
index 03f4d9be..1abbd45f 100644
--- a/src/DIRC_geo.cpp
+++ b/src/DIRC_geo.cpp
@@ -162,7 +162,7 @@ static Ref_t createDetector(Detector& desc, xml_h e, SensitiveDetector sens)
   Volume lGlue("lGlue", gGlue, desc.material(xml_glue.materialStr()));
   lGlue.setVisAttributes(desc.visAttributes(xml_glue.visStr()));
 
-  sens.setType("photoncounter");
+  sens.setType("tracker");
   lBar.setSensitiveDetector(sens);
 
   int bars_repeat_z = 4;    // TODO parametrize!
@@ -320,7 +320,7 @@ static Ref_t createDetector(Detector& desc, xml_h e, SensitiveDetector sens)
   // Box    bar_geo(bar_thicknes / 2., bar_width / 2., bar_length / 2.);
   // Volume bar_volume("cb_DIRC_bars_Logix", bar_geo, bar_material);
   // bar_volume.setVisAttributes(desc.visAttributes(xml_det.visStr()));
-  // sens.setType("photoncounter");
+  // sens.setType("tracker");
   // bar_volume.setSensitiveDetector(sens);
 
   // for (int ia = 0; ia < bar_count; ia++) {
diff --git a/src/DRICH_geo.cpp b/src/DRICH_geo.cpp
index a53fa051..c243fd32 100644
--- a/src/DRICH_geo.cpp
+++ b/src/DRICH_geo.cpp
@@ -217,7 +217,7 @@ static Ref_t createDetector(Detector& desc, xml::Handle_t handle, SensitiveDetec
 
 
   // sensitive detector type
-  sens.setType("photoncounter");
+  sens.setType("tracker");
 
 
   // BUILD RADIATOR ====================================================================
diff --git a/src/GaseousRICH_geo.cpp b/src/GaseousRICH_geo.cpp
index ab26484b..17bc1ddc 100644
--- a/src/GaseousRICH_geo.cpp
+++ b/src/GaseousRICH_geo.cpp
@@ -75,7 +75,7 @@ static Ref_t createDetector(Detector& desc, xml::Handle_t handle, SensitiveDetec
     envVol.setVisAttributes(desc.visAttributes(detElem.visStr()));
 
     // sensitive detector type
-    sens.setType("photoncounter");
+    sens.setType("tracker");
 
     // @TODO: place a radiator
     // build_radiator(desc, envVol, detElement.child(_Unicode(radiator)), snout_front);
diff --git a/src/MRich_geo.cpp b/src/MRich_geo.cpp
index c3c98668..0be8409d 100644
--- a/src/MRich_geo.cpp
+++ b/src/MRich_geo.cpp
@@ -29,7 +29,7 @@ static Ref_t createDetector(Detector& description, xml::Handle_t e, SensitiveDet
   string         det_name = x_det.nameStr();
   DetElement     sdet(det_name, x_det.id());
   Assembly       assembly(det_name);
-  sens.setType("photoncounter");
+  sens.setType("tracker");
   OpticalSurfaceManager surfMgr = description.surfaceManager();
 
   bool projective = getAttrOrDefault(x_det, _Unicode(projective), false);
@@ -437,7 +437,7 @@ static Ref_t createDetector(Detector& description, xml::Handle_t e, SensitiveDet
 //    modVol.placeVolume(mVol, Position(0., 0., -0.1*mm));
 //
 //    modVol.setVisAttributes(description.visAttributes(mods.visStr()));
-//    sens.setType("photoncounter");
+//    sens.setType("tracker");
 //    modVol.setSensitiveDetector(sens);
 //
 //    // place modules in the sectors (disk)
diff --git a/src/PFRICH_geo.cpp b/src/PFRICH_geo.cpp
index a6f71956..393d577d 100644
--- a/src/PFRICH_geo.cpp
+++ b/src/PFRICH_geo.cpp
@@ -145,7 +145,7 @@ static Ref_t createDetector(Detector& desc, xml::Handle_t handle, SensitiveDetec
   auto originBack  = Position(0., 0., -vesselLength / 2.0);
 
   // sensitive detector type
-  sens.setType("photoncounter");
+  sens.setType("tracker");
 
 
   // BUILD RADIATOR //////////////////////////////////////
-- 
GitLab