#include <GlobalDetRangeZPhi.h>
Public Types | |
typedef std::pair< float, float > | Range |
Public Member Functions | |
GlobalDetRangeZPhi (const Plane &det) | |
Range | phiRange () const |
Range | zRange () const |
Private Attributes | |
Range | thePhiRange |
Range | theZRange |
Implementation class for PhiZMeasurementEstimator etc.
Definition at line 11 of file GlobalDetRangeZPhi.h.
typedef std::pair<float,float> GlobalDetRangeZPhi::Range |
Definition at line 14 of file GlobalDetRangeZPhi.h.
GlobalDetRangeZPhi::GlobalDetRangeZPhi | ( | const Plane & | det | ) |
Definition at line 11 of file GlobalDetRangeZPhi.cc.
References i, phi, phimax, phimin, z, SiStripMonitorClusterAlca_cfi::zmax, and SiStripMonitorClusterAlca_cfi::zmin.
{ float dx = plane.bounds().width()/2.; float dy = plane.bounds().length()/2.; vector<Surface::GlobalPoint> corners(4); corners[0] = plane.toGlobal( LocalPoint( -dx, -dy, 0)); corners[1] = plane.toGlobal( LocalPoint( -dx, dy, 0)); corners[2] = plane.toGlobal( LocalPoint( dx, -dy, 0)); corners[3] = plane.toGlobal( LocalPoint( dx, dy, 0)); float phimin = corners[0].phi(); float phimax = phimin; float zmin = corners[0].z(); float zmax = zmin; for ( int i=1; i<4; i++) { float phi = corners[i].phi(); if ( PhiLess()( phi, phimin)) phimin = phi; if ( PhiLess()( phimax, phi)) phimax = phi; float z = corners[i].z(); if ( z < zmin) zmin = z; if ( z > zmax) zmax = z; } theZRange.first = zmin; theZRange.second = zmax; thePhiRange.first = phimin; thePhiRange.second = phimax; }
Range GlobalDetRangeZPhi::phiRange | ( | ) | const [inline] |
Definition at line 19 of file GlobalDetRangeZPhi.h.
References thePhiRange.
Referenced by OuterDetCompatibility::operator()().
{ return thePhiRange;}
Range GlobalDetRangeZPhi::zRange | ( | ) | const [inline] |
Definition at line 18 of file GlobalDetRangeZPhi.h.
References theZRange.
Referenced by OuterDetCompatibility::operator()().
{ return theZRange;}
Range GlobalDetRangeZPhi::thePhiRange [private] |
Definition at line 23 of file GlobalDetRangeZPhi.h.
Referenced by phiRange().
Range GlobalDetRangeZPhi::theZRange [private] |
Definition at line 22 of file GlobalDetRangeZPhi.h.
Referenced by zRange().