CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ForwardLayerMirrorImage Class Reference
Inheritance diagram for ForwardLayerMirrorImage:

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.

18 : theLayer(layer) {}
const ForwardDetLayer * theLayer

Member Function Documentation

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

Definition at line 20 of file SymmetricLayerFinder.cc.

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

20  {
21  float zdiff = a->position().z() + theLayer->position().z();
22  float rdiff = a->specificSurface().innerRadius() -
23  theLayer->specificSurface().innerRadius();
24 
25  // equality based on z position and inner radius
26  if ( fabs( zdiff) < 1. && fabs( rdiff) < 1.) return true; // units are cm
27  else return false;
28  }
const ForwardDetLayer * theLayer
T z() const
Definition: PV3DBase.h:64
virtual const BoundDisk & specificSurface() const
virtual const Surface::PositionType & position() const
Returns position of the surface.

Member Data Documentation

const ForwardDetLayer* ForwardLayerMirrorImage::theLayer
private

Definition at line 31 of file SymmetricLayerFinder.cc.