From a3cd3231ceb230606a9abb01bd7789401f36ae31 Mon Sep 17 00:00:00 2001 From: Alvaro Tolosa Delgado Date: Wed, 20 Mar 2024 10:36:44 +0100 Subject: [PATCH] bitfield superlayer starts now at zero, not one --- detector/tracker/DriftChamber_o1_v02.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detector/tracker/DriftChamber_o1_v02.cpp b/detector/tracker/DriftChamber_o1_v02.cpp index c43ece4e1..ee4d82f1e 100644 --- a/detector/tracker/DriftChamber_o1_v02.cpp +++ b/detector/tracker/DriftChamber_o1_v02.cpp @@ -223,7 +223,7 @@ static dd4hep::Ref_t create_DCH_o1_v02(dd4hep::Detector &desc, dd4hep::xml::Hand // add superlayer bitfield // WARNING: division of integers on purpose! int nsuperlayer_minus_1 = (ilayer-1)/l.dch_nlayersPerSuperlayer; - layer_pv.addPhysVolID("superlayer", nsuperlayer_minus_1+1 ); + layer_pv.addPhysVolID("superlayer", nsuperlayer_minus_1 ); dd4hep::DetElement layer_DE(det,layer_name+"DE", ilayer); layer_DE.setPlacement(layer_pv);