1 #ifndef L1Trigger_Phase2L1GT_L1GTEvaluationInterface_h 2 #define L1Trigger_Phase2L1GT_L1GTEvaluationInterface_h 17 template <
typename A,
typename... Args>
20 std::size_t
shift = 0;
31 template <
typename A,
typename... Args>
38 }(std::forward<Args>(
args)),
49 template <std::
size_t N>
51 virtual ap_uint<N>
pack()
const = 0;
52 virtual ap_uint<N>
unpack(
const ap_uint<N>&) = 0;
54 static constexpr std::size_t
WIDTH =
N;
59 template <std::
size_t N>
85 template <std::
size_t N>
99 ap_uint<N>
unpack(
const ap_uint<N>& packed)
override {
133 ap_uint<WIDTH>
pack()
const override {
137 ap_uint<WIDTH>
unpack(
const ap_uint<WIDTH>& packed)
override {
165 ap_uint<WIDTH>
pack()
const override {
169 ap_uint<WIDTH>
unpack(
const ap_uint<WIDTH>& packed)
override {
175 gt_object.
setHwZ0(static_cast<int>(
z0) << 5);
176 gt_object.
setHwD0(static_cast<int>(
d0) << 5);
204 ap_uint<WIDTH>
pack()
const override {
208 ap_uint<WIDTH>
unpack(
const ap_uint<WIDTH>& packed)
override {
215 gt_object.
setHwD0(static_cast<int>(
d0) << 2);
240 ap_uint<WIDTH>
unpack(
const ap_uint<WIDTH>& packed)
override {
246 gt_object.
setHwPT(static_cast<int>(
pT) * 5);
266 ap_uint<WIDTH>
pack()
const override {
270 ap_uint<WIDTH>
unpack(
const ap_uint<WIDTH>& packed)
override {
293 ap_uint<WIDTH>
pack()
const override {
297 ap_uint<WIDTH>
unpack(
const ap_uint<WIDTH>& packed)
override {
298 return l1t_unpack_int<ap_uint<WIDTH>>(
332 ap_uint<WIDTH>
pack()
const override {
336 ap_uint<WIDTH>
unpack(
const ap_uint<WIDTH>& packed)
override {
360 ap_uint<WIDTH>
pack()
const override {
364 ap_uint<WIDTH>
unpack(
const ap_uint<WIDTH>& packed)
override {
398 ap_uint<WIDTH>
pack()
const override {
399 return l1t_pack_int<ap_uint<WIDTH>>(
403 ap_uint<WIDTH>
unpack(
const ap_uint<WIDTH>& packed)
override {
427 ap_uint<WIDTH>
pack()
const override {
431 ap_uint<WIDTH>
unpack(
const ap_uint<WIDTH>& packed)
override {
466 ap_uint<WIDTH>
pack()
const override {
470 ap_uint<WIDTH>
unpack(
const ap_uint<WIDTH>& packed)
override {
495 ap_uint<WIDTH>
pack()
const override {
499 ap_uint<WIDTH>
unpack(
const ap_uint<WIDTH>& packed)
override {
521 ap_uint<WIDTH>
pack()
const override {
525 ap_uint<WIDTH>
unpack(
const ap_uint<WIDTH>& packed)
override {
539 #endif // L1Trigger_Phase2L1GT_L1GTEvaluationInterface_h
P2GTCandidate to_GTObject() const override
ap_uint< WIDTH > pack() const override
void setHwD0(hwD0_t hwD0)
L1TGT_CL2_Photon(int valid=0, int pT=0, int phi=0, int eta=0, int qual=0, int iso=0)
L1TGT_GTT_PromptJet(int valid=0, int pT=0, int phi=0, int eta=0, int z0=0, int number_of_tracks=0)
virtual ap_uint< 44 > pack_common() const
void setHwType(hwType_t hwType)
ap_uint< WIDTH > pack() const override
P2GTCandidate to_GTObject() const override
ap_uint< WIDTH > unpack(const ap_uint< WIDTH > &packed) override
L1TGT_CL2_Jet(int valid=0, int pT=0, int phi=0, int eta=0, int z0=0)
ap_uint< WIDTH > unpack(const ap_uint< WIDTH > &packed) override
P2GTCandidate to_GTObject() const override
void setHwBeta(hwBeta_t hwBeta)
ap_uint< WIDTH > pack() const override
L1TGT_GCT_tau6p6(int valid=0, int pT=0, int phi=0, int eta=0, int seed_pT=0)
void setHwIso(hwIso_t hwIso)
L1TGT_GMT_PromptDisplacedMuon(int valid=0, int pT=0, int phi=0, int eta=0, int z0=0, int d0=0, int charge=0, int qual=0)
void setHwNumber_of_tracks_in_pv(hwNumber_of_tracks_in_pv_t hwNumber_of_tracks_in_pv)
P2GTCandidate to_GTObject() const override
ap_uint< WIDTH > pack() const override
ap_uint< 5 > number_of_tracks
L1TGT_CL2_Electron(int valid=0, int pT=0, int phi=0, int eta=0, int qual=0, int iso=0, int charge=0, int z0=0)
L1TGT_GTT_LightMeson(int valid=0, int pT=0, int phi=0, int eta=0, int z0=0)
ap_uint< WIDTH > pack() const override
ap_uint< WIDTH > pack() const override
ap_uint< 16 > scalar_sum_pT
ap_uint< N > unpack(const ap_uint< N > &packed) override
L1TGT_CL2_Tau(int valid=0, int pT=0, int phi=0, int eta=0, int seed_pT=0, int seed_z0=0, int charge=0, int type=0)
void setHwSum_pT_pv(hwSum_pT_pv_t hwSum_pT_pv)
ap_uint< WIDTH > unpack(const ap_uint< WIDTH > &packed) override
ap_uint< 46 > pack_common() const
P2GTCandidate to_GTObject() const override
void setHwSca_sum(hwSca_sum_t hwSca_sum)
A l1t_pack_int(const Args &... args)
P2GTCandidate to_GTObject() const override
ap_uint< WIDTH > unpack(const ap_uint< WIDTH > &packed) override
void setHwEta(hwEta_t hwEta)
ap_uint< WIDTH > pack() const override
void setHwMass(hwMass_t hwMass)
ap_uint< WIDTH > pack() const override
ap_uint< WIDTH > unpack(const ap_uint< WIDTH > &packed) override
ap_uint< 10 > number_of_tracks_not_in_pv
virtual ~L1TGT_BaseInterface()
void setHwPT(hwPT_t hwPT)
ap_uint< WIDTH > unpack(const ap_uint< WIDTH > &packed) override
P2GTCandidate to_GTObject() const override
P2GTCandidate to_GTObject() const override
static constexpr std::size_t WIDTH
virtual P2GTCandidate to_GTObject() const =0
virtual std::size_t packed_width() const =0
void setHwQual(hwQual_t hwQual)
P2GTCandidate to_GTObject() const override
L1TGT_GMT_TopoObject(int valid=0, int pT=0, int phi=0, int eta=0, int mass=0, int qual=0)
ap_uint< WIDTH > unpack(const ap_uint< WIDTH > &packed) override
ap_uint< WIDTH > pack() const override
ap_uint< WIDTH > unpack(const ap_uint< WIDTH > &packed) override
ap_uint< WIDTH > pack() const override
ap_uint< WIDTH > pack() const override
void setHwSeed_z0(hwSeed_z0_t hwSeed_z0)
ap_uint< N > pack() const override
P2GTCandidate to_GTObject() const override
ap_uint< WIDTH > unpack(const ap_uint< WIDTH > &packed) override
L1TGT_GTT_DisplacedJet(int valid=0, int pT=0, int phi=0, int eta=0, int z0=0, int number_of_tracks=0, int d0=0)
void setHwNumber_of_tracks_not_in_pv(hwNumber_of_tracks_not_in_pv_t hwNumber_of_tracks_not_in_pv)
L1TGT_GTT_PrimaryVert(int valid=0, int z0=0, int number_of_tracks_in_pv=0, int sum_pT_pv=0, int qual=0, int number_of_tracks_not_in_pv=0)
void setHwSeed_pT(hwSeed_pT_t hwSeed_pT)
P2GTCandidate to_GTObject() const override
P2GTCandidate to_GTObject() const override
ap_uint< WIDTH > pack() const override
ap_uint< WIDTH > unpack(const ap_uint< WIDTH > &packed) override
L1TGT_CommonSum(int valid=0, int pT=0, int phi=0, int scalar_sum_pT=0)
P2GTCandidate to_GTObject() const override
virtual ap_uint< N > pack() const =0
ap_uint< WIDTH > unpack(const ap_uint< WIDTH > &packed) override
L1TGT_Common3Vector(int valid=0, int pT=0, int phi=0, int eta=0)
ap_uint< WIDTH > unpack(const ap_uint< WIDTH > &packed) override
L1TGT_GMT_TrackMatchedmuon(int valid=0, int pT=0, int phi=0, int eta=0, int z0=0, int d0=0, int charge=0, int qual=0, int iso=0, int beta=0)
ap_uint< 8 > number_of_tracks_in_pv
static unsigned int const shift
ap_uint< N > pack() const override
ap_uint< WIDTH > unpack(const ap_uint< WIDTH > &packed) override
virtual ap_uint< N > unpack(const ap_uint< N > &)=0
std::size_t packed_width() const override
P2GTCandidate to_GTObject() const override
L1TGT_GTT_HadronicTau(int valid=0, int pT=0, int phi=0, int eta=0, int seed_pT=0, int seed_z0=0, int charge=0, int type=0)
void setHwCharge(hwCharge_t hwCharge)
ap_uint< WIDTH > pack() const override
void setHwZ0(hwZ0_t hwZ0)
void setHwNumber_of_tracks(hwNumber_of_tracks_t hwNumber_of_tracks)
ap_uint< 5 > number_of_tracks
void setHwPhi(hwPhi_t hwPhi)
A l1t_unpack_int(const A &packed, Args &&... args)
ap_uint< N > unpack(const ap_uint< N > &packed) override
P2GTCandidate to_GTObject() const override