CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CoordinateSelector.h
Go to the documentation of this file.
1 #ifndef NPSTAT_COORDINATESELECTOR_HH_
2 #define NPSTAT_COORDINATESELECTOR_HH_
3 
15 #include <climits>
17 
19 
20 namespace npstat {
26  {
27  public:
28  inline explicit CoordinateSelector(const unsigned i) : index_(i) {}
29 
30  inline virtual ~CoordinateSelector() {}
31 
32  inline double operator()(const double* point, const unsigned dim) const
33  {
34  if (dim <= index_)
36  "In npstat::CoordinateSelector::operator(): "
37  "input array dimensionality is too small");
38  return point[index_];
39  }
40  inline unsigned minDim() const {return index_ + 1U;}
41  inline unsigned maxDim() const {return UINT_MAX;}
42 
43  private:
45  unsigned index_;
46  };
47 }
48 
49 #endif // NPSTAT_COORDINATESELECTOR_HH_
50 
int i
Definition: DBlmapReader.cc:9
double operator()(const double *point, const unsigned dim) const
Exceptions for the npstat namespace.
CoordinateSelector(const unsigned i)
Interface definition for multidimensional functors.
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5