Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:27

0001 #ifndef DetLayers_DetBelowR_H
0002 #define DetLayers_DetBelowR_H
0003 
0004 #include "TrackingTools/DetLayers/interface/GeometricSearchDet.h"
0005 
0006 /** Predicate that returns true if a Det is at a radius smaller than some value.
0007  */
0008 typedef GeometricSearchDet Det;
0009 
0010 class DetBelowR {
0011 public:
0012   DetBelowR( double v) : val(v) {}
0013   bool operator()( const Det* a) const { return a->position().perp() < val;}
0014 private:
0015   double val;
0016 };
0017 
0018 #endif