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
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 111 of file ClusterShapeHitFilter.h.

Constructor & Destructor Documentation

StripLimits::StripLimits ( )
inline

Definition at line 112 of file ClusterShapeHitFilter.h.

References data.

112  {
113  data[0][0] = -10e10;
114  data[0][1] = 10e10;
115  data[1][0] = -10e10;
116  data[1][1] = 10e10;
117  }

Member Function Documentation

bool StripLimits::isInside ( float  pred) const
inline

Definition at line 121 of file ClusterShapeHitFilter.h.

References data, and MessageLogger_cff::limit.

121  {
122  float const * limit = data[0];
123  bool one = pred > limit[0] && pred < limit[1];
124  limit = data[1];
125  bool two = pred > limit[0] && pred < limit[1];
126 
127  return one || two;
128 
129  }

Member Data Documentation

float StripLimits::data[2][2]

Definition at line 119 of file ClusterShapeHitFilter.h.

Referenced by isInside(), and StripLimits().