CMS 3D CMS Logo

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

#include <ClusterShapeHitFilter.h>

Public Member Functions

bool isInside (const std::pair< float, float > &pred) const
 
 PixelLimits ()
 

Public Attributes

float data [2][2][2]
 

Detailed Description

Definition at line 78 of file ClusterShapeHitFilter.h.

Constructor & Destructor Documentation

◆ PixelLimits()

PixelLimits::PixelLimits ( )
inline

Definition at line 79 of file ClusterShapeHitFilter.h.

79  {
80  // init to make sure inside is true;
81  auto limit = data[0];
82  limit[0][0] = -10e10;
83  limit[0][1] = 10e10;
84  limit[1][0] = -10e10;
85  limit[1][1] = 10e10;
86  limit = data[1];
87  limit[0][0] = -10e10;
88  limit[0][1] = 10e10;
89  limit[1][0] = -10e10;
90  limit[1][1] = 10e10;
91  }

References data, and remoteMonitoring_LED_IterMethod_cfg::limit.

Member Function Documentation

◆ isInside()

bool PixelLimits::isInside ( const std::pair< float, float > &  pred) const
inline

Definition at line 95 of file ClusterShapeHitFilter.h.

95  {
96  auto limit = data[0];
97  bool one = (pred.first > limit[0][0]) && (pred.first < limit[0][1]) && (pred.second > limit[1][0]) &&
98  (pred.second < limit[1][1]);
99 
100  limit = data[1];
101  bool two = (pred.first > limit[0][0]) && (pred.first < limit[0][1]) && (pred.second > limit[1][0]) &&
102  (pred.second < limit[1][1]);
103 
104  return one || two;
105  }

References data, and remoteMonitoring_LED_IterMethod_cfg::limit.

Member Data Documentation

◆ data

float PixelLimits::data[2][2][2]
remoteMonitoring_LED_IterMethod_cfg.limit
limit
Definition: remoteMonitoring_LED_IterMethod_cfg.py:427
PixelLimits::data
float data[2][2][2]
Definition: ClusterShapeHitFilter.h:93