CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ( )
inline

Definition at line 79 of file ClusterShapeHitFilter.h.

References data, and MessageLogger_cff::limit.

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  }
float data[2][2][2]

Member Function Documentation

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

Definition at line 95 of file ClusterShapeHitFilter.h.

References data, and MessageLogger_cff::limit.

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

Member Data Documentation

float PixelLimits::data[2][2][2]

Definition at line 93 of file ClusterShapeHitFilter.h.

Referenced by cuy.FindIssue::__init__(), isInside(), and PixelLimits().