CMS 3D CMS Logo

Classes | Functions
l1ct::multififo_regionizer Namespace Reference

Classes

class  EtaPhiBuffer
 
class  RegionBuffer
 
class  RegionBuilder
 
class  Regionizer
 
class  RegionMux
 
struct  Route
 

Functions

int dphi_wrap (int local_phi)
 
template<typename T >
bool local_eta_phi_window (const T &t, const l1ct::glbeta_t &etaMin, const l1ct::glbeta_t &etaMax, const l1ct::glbphi_t &phiMin, const l1ct::glbphi_t &phiMax)
 
template<>
bool local_eta_phi_window< l1ct::TkObjEmu > (const l1ct::TkObjEmu &t, const l1ct::glbeta_t &etaMin, const l1ct::glbeta_t &etaMax, const l1ct::glbphi_t &phiMin, const l1ct::glbphi_t &phiMax)
 
template<typename T >
void maybe_push (const T &t, const l1ct::PFRegionEmu &sector, const l1ct::PFRegionEmu &region, std::list< T > &fifo, bool useAlsoVtxCoords)
 
template<>
void maybe_push< l1ct::TkObjEmu > (const l1ct::TkObjEmu &t, const l1ct::PFRegionEmu &sector, const l1ct::PFRegionEmu &region, std::list< l1ct::TkObjEmu > &fifo, bool useAlsoVtxCoords)
 
template<typename TL , typename T >
void pop_back (TL &from, T &to)
 
template<typename T >
void push_to_fifo (const T &t, int local_eta, int local_phi, std::list< T > &fifo)
 
template<typename T >
void shift (T &from, T &to)
 

Function Documentation

◆ dphi_wrap()

int l1ct::multififo_regionizer::dphi_wrap ( int  local_phi)
inline

Definition at line 25 of file multififo_regionizer_elements_ref.h.

References l1ct::Scales::INTPHI_PI, and l1ct::Scales::INTPHI_TWOPI.

25  {
26  if (local_phi > l1ct::Scales::INTPHI_PI)
27  local_phi -= l1ct::Scales::INTPHI_TWOPI;
28  else if (local_phi <= -l1ct::Scales::INTPHI_PI)
29  local_phi += l1ct::Scales::INTPHI_TWOPI;
30  return local_phi;
31  }
constexpr int INTPHI_PI
Definition: datatypes.h:141
constexpr int INTPHI_TWOPI
Definition: datatypes.h:142

◆ local_eta_phi_window()

template<typename T >
bool l1ct::multififo_regionizer::local_eta_phi_window ( const T t,
const l1ct::glbeta_t etaMin,
const l1ct::glbeta_t etaMax,
const l1ct::glbphi_t phiMin,
const l1ct::glbphi_t phiMax 
)
inline

◆ local_eta_phi_window< l1ct::TkObjEmu >()

template<>
bool l1ct::multififo_regionizer::local_eta_phi_window< l1ct::TkObjEmu > ( const l1ct::TkObjEmu t,
const l1ct::glbeta_t etaMin,
const l1ct::glbeta_t etaMax,
const l1ct::glbphi_t phiMin,
const l1ct::glbphi_t phiMax 
)
inline

◆ maybe_push()

template<typename T >
void l1ct::multififo_regionizer::maybe_push ( const T t,
const l1ct::PFRegionEmu sector,
const l1ct::PFRegionEmu region,
std::list< T > &  fifo,
bool  useAlsoVtxCoords 
)
inline

◆ maybe_push< l1ct::TkObjEmu >()

template<>
void l1ct::multififo_regionizer::maybe_push< l1ct::TkObjEmu > ( const l1ct::TkObjEmu t,
const l1ct::PFRegionEmu sector,
const l1ct::PFRegionEmu region,
std::list< l1ct::TkObjEmu > &  fifo,
bool  useAlsoVtxCoords 
)
inline

◆ pop_back()

template<typename TL , typename T >
void l1ct::multififo_regionizer::pop_back ( TL &  from,
T to 
)
inline

Definition at line 19 of file multififo_regionizer_elements_ref.h.

References cms::cuda::assert().

19  {
20  assert(!from.empty());
21  to = from.back();
22  from.pop_back();
23  }
assert(be >=bs)

◆ push_to_fifo()

template<typename T >
void l1ct::multififo_regionizer::push_to_fifo ( const T t,
int  local_eta,
int  local_phi,
std::list< T > &  fifo 
)
inline

Definition at line 34 of file multififo_regionizer_elements_ref.h.

References submitPVValidationJobs::t.

34  {
35  fifo.push_front(t);
36  fifo.front().hwEta = local_eta;
37  fifo.front().hwPhi = local_phi;
38  }

◆ shift()

template<typename T >
void l1ct::multififo_regionizer::shift ( T from,
T to 
)
inline

Definition at line 14 of file multififo_regionizer_elements_ref.h.

14  {
15  to = from;
16  from.clear();
17  }