]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TEvtGen/EvtGenBase/EvtPointPred.hh
AliDecayer realisation for the EvtGen code and EvtGen itself.
[u/mrichter/AliRoot.git] / TEvtGen / EvtGenBase / EvtPointPred.hh
diff --git a/TEvtGen/EvtGenBase/EvtPointPred.hh b/TEvtGen/EvtGenBase/EvtPointPred.hh
new file mode 100644 (file)
index 0000000..baca96f
--- /dev/null
@@ -0,0 +1,31 @@
+/*******************************************************************************
+ * Project: BaBar detector at the SLAC PEP-II B-factory
+ * Package: EvtGenBase
+ *    File: $Id: EvtPointPred.hh,v 1.1 2003/03/03 05:38:19 dvoretsk Exp $
+ *  Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002
+ *
+ * Copyright (C) 2002 Caltech
+ *******************************************************************************/
+
+// Predicate testing validity of a point. The point class must provide
+// bool isValid() method
+
+#ifndef EVT_POINT_PRED_HH
+#define EVT_POINT_PRED_HH
+
+template <class Point> class EvtPointPred {
+public:
+  
+  typedef Point argument_type;
+  typedef bool result_type;
+  
+  EvtPointPred() {}
+  EvtPointPred(const EvtPointPred&) {}
+  ~EvtPointPred() {}
+  
+  result_type operator()(argument_type x) 
+  {
+    return x.isValid();
+  }
+};
+#endif