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.

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

References data.

Member Function Documentation

◆ isInside()

bool StripLimits::isInside ( float  pred) const
inline

Definition at line 118 of file ClusterShapeHitFilter.h.

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  }

References data, remoteMonitoring_LED_IterMethod_cfg::limit, SiPixelPI::one, and SiPixelPI::two.

Member Data Documentation

◆ data

float StripLimits::data[2][2]
SiPixelPI::one
Definition: SiPixelPayloadInspectorHelper.h:39
StripLimits::data
float data[2][2]
Definition: ClusterShapeHitFilter.h:116
SiPixelPI::two
Definition: SiPixelPayloadInspectorHelper.h:39
remoteMonitoring_LED_IterMethod_cfg.limit
limit
Definition: remoteMonitoring_LED_IterMethod_cfg.py:427