Skip to content

Commit

Permalink
Fix bad definition of class ID for HGCalTriggerBackendDetId objects
Browse files Browse the repository at this point in the history
  • Loading branch information
portalesHEP authored and jbsauvan committed Jul 12, 2023
1 parent 0e0fbc5 commit 5bcce8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DataFormats/ForwardDetId/src/HGCalTriggerBackendDetId.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ HGCalTriggerBackendDetId::HGCalTriggerBackendDetId(uint32_t rawid) : DetId(rawid

HGCalTriggerBackendDetId::HGCalTriggerBackendDetId(int zp, int type, int sector, int label)
: DetId(Forward, HGCTrigger) {
int classid = HGCalTriggerClassIdentifier::ModuleDetId;
int classid = HGCalTriggerClassIdentifier::BackendDetId;
int zside = (zp < 0) ? 1 : 0;
id_ |= (((label & kHGCalLabelMask) << kHGCalLabelOffset) | ((sector & kHGCalSectorMask) << kHGCalSectorOffset) |
((zside & kHGCalZsideMask) << kHGCalZsideOffset) | ((type & kHGCalTypeMask) << kHGCalTypeOffset) |
Expand Down

0 comments on commit 5bcce8c

Please sign in to comment.