CMS 3D CMS Logo

Public Member Functions | Public Attributes

StripLimits Struct Reference

#include <ClusterShapeHitFilter.h>

List of all members.

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.

                {
      data[0][0] = -10e10;
      data[0][1] =  10e10;
      data[1][0] = -10e10;
      data[1][1] =  10e10;
  }

Member Function Documentation

bool StripLimits::isInside ( float  pred) const [inline]

Definition at line 121 of file ClusterShapeHitFilter.h.

References data, and MessageLogger_cff::limit.

                                   {
    float const * limit = data[0];
    bool one = pred > limit[0] && pred < limit[1];
    limit = data[1];
    bool two = pred > limit[0] && pred < limit[1];
    
    return one || two;

  }

Member Data Documentation

float StripLimits::data[2][2]

Definition at line 119 of file ClusterShapeHitFilter.h.

Referenced by isInside(), and StripLimits().