CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
dpf2fw Namespace Reference

NOTE: this include is not standalone, since the path to DiscretePFInputs is different in CMSSW & Vivado_HLS. More...

Functions

void convert (const l1tpf_impl::PropagatedTrack &in, TkObj &out)
 
void convert (const l1tpf_impl::CaloCluster &in, HadCaloObj &out)
 
void convert (const l1tpf_impl::CaloCluster &in, EmCaloObj &out)
 
void convert (const l1tpf_impl::Muon &in, MuObj &out)
 
template<unsigned int NMAX, typename In , typename Out >
void convert (const std::vector< In > &in, Out out[NMAX])
 
template<typename In , typename Out >
void convert (unsigned int NMAX, const std::vector< In > &in, Out out[])
 
TkObj transformConvert (const l1tpf_impl::PropagatedTrack &in)
 

Detailed Description

NOTE: this include is not standalone, since the path to DiscretePFInputs is different in CMSSW & Vivado_HLS.

Function Documentation

void dpf2fw::convert ( const l1tpf_impl::PropagatedTrack in,
TkObj out 
)
inline

Definition at line 12 of file DiscretePF2Firmware.h.

References l1tpf_impl::PropagatedTrack::hwCaloPtErr, l1tpf_impl::InputTrack::hwChi2, l1tpf_impl::PropagatedTrack::hwEta, TkObj::hwEta, l1tpf_impl::PropagatedTrack::hwPhi, TkObj::hwPhi, l1tpf_impl::PropagatedTrack::hwPt, TkObj::hwPt, TkObj::hwPtErr, l1tpf_impl::InputTrack::hwStubs, TkObj::hwTightQuality, l1tpf_impl::InputTrack::hwZ0, and TkObj::hwZ0.

Referenced by convert(), l1tpf_impl::BitwisePFAlgo::runPF(), and transformConvert().

12  {
13  out.hwPt = in.hwPt;
14  out.hwPtErr = in.hwCaloPtErr;
15  out.hwEta = in.hwEta; // @calo
16  out.hwPhi = in.hwPhi; // @calo
17  out.hwZ0 = in.hwZ0;
18  out.hwTightQuality = (in.hwStubs >= 6 && in.hwChi2 < 500);
19  }
pt_t hwPt
Definition: data.h:144
bool hwTightQuality
Definition: data.h:147
pt_t hwPtErr
Definition: data.h:144
z0_t hwZ0
Definition: data.h:146
etaphi_t hwPhi
Definition: data.h:145
etaphi_t hwEta
Definition: data.h:145
void dpf2fw::convert ( const l1tpf_impl::CaloCluster in,
HadCaloObj out 
)
inline
void dpf2fw::convert ( const l1tpf_impl::CaloCluster in,
EmCaloObj out 
)
inline
void dpf2fw::convert ( const l1tpf_impl::Muon in,
MuObj out 
)
inline

Definition at line 40 of file DiscretePF2Firmware.h.

References l1tpf_impl::Muon::hwEta, MuObj::hwEta, l1tpf_impl::Muon::hwPhi, MuObj::hwPhi, l1tpf_impl::Muon::hwPt, MuObj::hwPt, and MuObj::hwPtErr.

40  {
41  out.hwPt = in.hwPt;
42  out.hwPtErr = 0; // does not exist in input
43  out.hwEta = in.hwEta; // @calo
44  out.hwPhi = in.hwPhi; // @calo
45  }
etaphi_t hwEta
Definition: data.h:160
pt_t hwPt
Definition: data.h:159
pt_t hwPtErr
Definition: data.h:159
etaphi_t hwPhi
Definition: data.h:160
template<unsigned int NMAX, typename In , typename Out >
void dpf2fw::convert ( const std::vector< In > &  in,
Out  out[NMAX] 
)

Definition at line 48 of file DiscretePF2Firmware.h.

References clear(), convert(), mps_fire::i, dqmiodumpmetadata::n, and submitPVResolutionJobs::out.

48  {
49  for (unsigned int i = 0, n = std::min<unsigned int>(NMAX, in.size()); i < n; ++i) {
50  convert(in[i], out[i]);
51  }
52  for (unsigned int i = in.size(); i < NMAX; ++i) {
53  clear(out[i]);
54  }
55  }
activeDets clear()
template<typename In , typename Out >
void dpf2fw::convert ( unsigned int  NMAX,
const std::vector< In > &  in,
Out  out[] 
)

Definition at line 58 of file DiscretePF2Firmware.h.

References clear(), convert(), mps_fire::i, and dqmiodumpmetadata::n.

58  {
59  for (unsigned int i = 0, n = std::min<unsigned int>(NMAX, in.size()); i < n; ++i) {
60  convert(in[i], out[i]);
61  }
62  for (unsigned int i = in.size(); i < NMAX; ++i) {
63  clear(out[i]);
64  }
65  }
activeDets clear()
TkObj dpf2fw::transformConvert ( const l1tpf_impl::PropagatedTrack in)
inline

Definition at line 21 of file DiscretePF2Firmware.h.

References convert(), and submitPVResolutionJobs::out.

21  {
22  TkObj out;
23  convert(in, out);
24  return out;
25  }
Definition: data.h:143