CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch1/src/TrackingTools/DetLayers/src/DetBelowZ.h

Go to the documentation of this file.
00001 #ifndef DetLayers_DetBelowZ_H
00002 #define DetLayers_DetBelowZ_H
00003 
00004 #include "TrackingTools/DetLayers/interface/GeometricSearchDet.h"
00005 #include <functional>
00006 
00009 typedef GeometricSearchDet Det;
00010 
00011 class DetBelowZ : public std::unary_function< const Det*, bool> {
00012 public:
00013   DetBelowZ( double v) : val(v) {}
00014   bool operator()( const Det* a) const { return a->position().z() < val;}
00015 private:
00016   double val;
00017 };
00018 
00019 #endif