CMS 3D CMS Logo

Classes | Functions
l1ct::multififo_regionizer Namespace Reference

Classes

class  EtaBuffer
 
class  RegionBuffer
 
class  RegionBuilder
 
class  Regionizer
 
class  RegionMux
 
struct  Route
 

Functions

int dphi_wrap (int local_phi)
 
template<typename T >
bool local_eta_window (const T &t, const l1ct::glbeta_t &etaMin, const l1ct::glbeta_t &etaMax)
 
template<>
bool local_eta_window< l1ct::TkObjEmu > (const l1ct::TkObjEmu &t, const l1ct::glbeta_t &etaMin, const l1ct::glbeta_t &etaMax)
 
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 24 of file multififo_regionizer_elements_ref.h.

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

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

◆ local_eta_window()

template<typename T >
bool l1ct::multififo_regionizer::local_eta_window ( const T t,
const l1ct::glbeta_t etaMin,
const l1ct::glbeta_t etaMax 
)
inline

◆ local_eta_window< l1ct::TkObjEmu >()

template<>
bool l1ct::multififo_regionizer::local_eta_window< l1ct::TkObjEmu > ( const l1ct::TkObjEmu t,
const l1ct::glbeta_t etaMin,
const l1ct::glbeta_t etaMax 
)
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 18 of file multififo_regionizer_elements_ref.h.

References cms::cuda::assert().

18  {
19  assert(!from.empty());
20  to = from.back();
21  from.pop_back();
22  }
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 33 of file multififo_regionizer_elements_ref.h.

References submitPVValidationJobs::t.

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

◆ shift()

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

Definition at line 13 of file multififo_regionizer_elements_ref.h.

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