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

Constructor & Destructor Documentation

StripLimits::StripLimits ( )
inline

Definition at line 113 of file ClusterShapeHitFilter.h.

References data.

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

Member Function Documentation

bool StripLimits::isInside ( float  pred) const
inline

Definition at line 122 of file ClusterShapeHitFilter.h.

References MessageLogger_cfi::limit.

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

Member Data Documentation

float StripLimits::data[2][2]