CMS 3D CMS Logo

Classes | Functions
l1ct::tdr_regionizer Namespace Reference

Classes

class  Buffer
 The L1 regionizer buffer (corresponding to level1_fifo_buffer.vhd) More...
 
class  BufferEntry
 the components that make up the L1 regionizer buffer More...
 
class  Pipe
 The pipe, with multiple inputs and one output. More...
 
class  PipeEntry
 corresponds to level1_to_2_pipe_t in firmware More...
 
class  Pipes
 The pipe, with multiple inputs and one output. More...
 
class  Regionizer
 

Functions

int phi_wrap (int local_phi)
 

Function Documentation

◆ phi_wrap()

int l1ct::tdr_regionizer::phi_wrap ( int  local_phi)
inline

Definition at line 17 of file tdr_regionizer_elements_ref.h.

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

17  {
18  if (local_phi > l1ct::Scales::INTPHI_PI)
19  local_phi -= l1ct::Scales::INTPHI_TWOPI;
20  else if (local_phi <= -l1ct::Scales::INTPHI_PI)
21  local_phi += l1ct::Scales::INTPHI_TWOPI;
22  return local_phi;
23  }
constexpr int INTPHI_PI
Definition: datatypes.h:141
constexpr int INTPHI_TWOPI
Definition: datatypes.h:142