CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
StripLimits Struct Reference

#include <ClusterShapeHitFilter.h>

Public Member Functions

bool isInside (float pred) const
 
 StripLimits ()
 

Public Attributes

float data [2][2]
 

Detailed Description

Definition at line 108 of file ClusterShapeHitFilter.h.

Constructor & Destructor Documentation

◆ StripLimits()

StripLimits::StripLimits ( )
inline

Definition at line 109 of file ClusterShapeHitFilter.h.

References data.

109  {
110  data[0][0] = -10e10;
111  data[0][1] = 10e10;
112  data[1][0] = -10e10;
113  data[1][1] = 10e10;
114  }

Member Function Documentation

◆ isInside()

bool StripLimits::isInside ( float  pred) const
inline

Definition at line 118 of file ClusterShapeHitFilter.h.

References data, lut2db_cfg::limit, and SiPixelPI::two.

118  {
119  float const* limit = data[0];
120  bool one = pred > limit[0] && pred < limit[1];
121  limit = data[1];
122  bool two = pred > limit[0] && pred < limit[1];
123 
124  return one || two;
125  }

Member Data Documentation

◆ data

float StripLimits::data[2][2]