Skip to content

Commit

Permalink
bitfield superlayer starts now at zero, not one
Browse files Browse the repository at this point in the history
  • Loading branch information
atolosadelgado committed Mar 20, 2024
1 parent aac5e9a commit a3cd323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detector/tracker/DriftChamber_o1_v02.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a3cd323

Please sign in to comment.