CMS 3D CMS Logo

ForwardLayerMirrorImage Class Reference

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.

00018 : 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(), 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   }


Member Data Documentation

const ForwardDetLayer* ForwardLayerMirrorImage::theLayer [private]

Definition at line 31 of file SymmetricLayerFinder.cc.

Referenced by operator()().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:21:00 2009 for CMSSW by  doxygen 1.5.4