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] |
Definition at line 18 of file SymmetricLayerFinder.cc.
: theLayer(layer) {}
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; }
const ForwardDetLayer* ForwardLayerMirrorImage::theLayer [private] |
Definition at line 31 of file SymmetricLayerFinder.cc.