CMS 3D CMS Logo

Public Member Functions | Private Attributes

ForwardLayerMirrorImage Class Reference

Inheritance diagram for ForwardLayerMirrorImage:
unary_function

List of all members.

Public Member Functions

 ForwardLayerMirrorImage (const ForwardDetLayer *layer)
bool operator() (const ForwardDetLayer *a)

Private Attributes

const ForwardDetLayertheLayer

Detailed Description

Definition at line 14 of file SymmetricLayerFinder.cc.


Constructor & Destructor Documentation

ForwardLayerMirrorImage::ForwardLayerMirrorImage ( const ForwardDetLayer layer) [inline]

Definition at line 18 of file SymmetricLayerFinder.cc.

: theLayer(layer) {}

Member Function Documentation

bool ForwardLayerMirrorImage::operator() ( const ForwardDetLayer a) [inline]

Definition at line 20 of file SymmetricLayerFinder.cc.

References BoundDisk::innerRadius(), GeometricSearchDet::position(), ForwardDetLayer::specificSurface(), and PV3DBase< T, PVType, FrameType >::z().

                                             {
    float zdiff = a->position().z() + theLayer->position().z();
    float rdiff = a->specificSurface().innerRadius() - 
      theLayer->specificSurface().innerRadius();

    // equality based on z position and inner radius
    if ( fabs( zdiff) < 1. && fabs( rdiff) < 1.) return true; // units are cm
    else return false;
  }

Member Data Documentation

Definition at line 31 of file SymmetricLayerFinder.cc.