CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DetBelowZ.h
Go to the documentation of this file.
1 #ifndef DetLayers_DetBelowZ_H
2 #define DetLayers_DetBelowZ_H
3 
5 #include <functional>
6 
10 
11 class DetBelowZ : public std::unary_function< const Det*, bool> {
12 public:
13  DetBelowZ( double v) : val(v) {}
14  bool operator()( const Det* a) const { return a->position().z() < val;}
15 private:
16  double val;
17 };
18 
19 #endif
GeometricSearchDet Det
Definition: DetBelowR.h:8
DetBelowZ(double v)
Definition: DetBelowZ.h:13
T z() const
Definition: PV3DBase.h:63
virtual const Surface::PositionType & position() const
Returns position of the surface.
bool operator()(const Det *a) const
Definition: DetBelowZ.h:14
double val
Definition: DetBelowZ.h:16
double a
Definition: hdecay.h:121
mathSSE::Vec4< T > v