Skip to content

Commit

Permalink
Add GT Sum unpack method
Browse files Browse the repository at this point in the history
  • Loading branch information
thesps committed Oct 20, 2023
1 parent 41b686e commit d9ba6fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DataFormats/L1TParticleFlow/interface/gt_datatypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ namespace l1gt {
return ret;
}

inline static Sum unpack(const uint64_t &src){
return unpack_ap(src);
}

inline void initFromBits(const ap_uint<BITWIDTH> &src) {
unsigned int start = 0;
unpack_from_bits(src, start, valid);
Expand Down

0 comments on commit d9ba6fe

Please sign in to comment.