CMS 3D CMS Logo

Classes | Functions
l1ct::tdr_regionizer Namespace Reference

Classes

class  Pipe
 
class  PipeObject
 
struct  RegionInfo
 
class  Regionizer
 

Functions

int dphi_wrap (int local_phi)
 
bool sortRegionInfo (RegionInfo &a, RegionInfo &b)
 

Function Documentation

◆ dphi_wrap()

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

Definition at line 20 of file tdr_regionizer_elements_ref.h.

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

20  {
21  if (local_phi > l1ct::Scales::INTPHI_PI)
22  local_phi -= l1ct::Scales::INTPHI_TWOPI;
23  else if (local_phi <= -l1ct::Scales::INTPHI_PI)
24  local_phi += l1ct::Scales::INTPHI_TWOPI;
25  return local_phi;
26  }
constexpr int INTPHI_PI
Definition: datatypes.h:145
constexpr int INTPHI_TWOPI
Definition: datatypes.h:146

◆ sortRegionInfo()

bool l1ct::tdr_regionizer::sortRegionInfo ( RegionInfo a,
RegionInfo b 
)
inline

Definition at line 35 of file tdr_regionizer_elements_ref.h.

References a, and b.

35  {
36  if (a.phi < b.phi)
37  return true;
38  if (a.phi > b.phi)
39  return false;
40  if (a.eta < b.eta)
41  return true;
42  if (a.eta > b.eta)
43  return false;
44  return false;
45  }
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119