Public Member Functions | |
ForwardLayerMirrorImage (const ForwardDetLayer *layer) | |
bool | operator() (const ForwardDetLayer *a) |
Private Attributes | |
const ForwardDetLayer * | theLayer |
Definition at line 14 of file SymmetricLayerFinder.cc.
ForwardLayerMirrorImage::ForwardLayerMirrorImage | ( | const ForwardDetLayer * | layer | ) | [inline] |
bool ForwardLayerMirrorImage::operator() | ( | const ForwardDetLayer * | a | ) | [inline] |
Definition at line 20 of file SymmetricLayerFinder.cc.
References BoundDisk::innerRadius(), GeometricSearchDet::position(), ForwardDetLayer::specificSurface(), theLayer, and PV3DBase< T, PVType, FrameType >::z().
00020 { 00021 float zdiff = a->position().z() + theLayer->position().z(); 00022 float rdiff = a->specificSurface().innerRadius() - 00023 theLayer->specificSurface().innerRadius(); 00024 00025 // equality based on z position and inner radius 00026 if ( fabs( zdiff) < 1. && fabs( rdiff) < 1.) return true; // units are cm 00027 else return false; 00028 }
const ForwardDetLayer* ForwardLayerMirrorImage::theLayer [private] |