npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
WeightedDistro1DPtr.hh
1 #ifndef NPSTAT_WEIGHTEDDISTRO1DPTR_HH_
2 #define NPSTAT_WEIGHTEDDISTRO1DPTR_HH_
3 
4 //======================================================================
5 // WeightedDistro1DPtr.hh
6 //
7 // This is an internal header which is subject to change without notice.
8 // Application code should never use the classes declared/defined in
9 // this header directly.
10 //
11 // Author: I. Volobouev
12 //
13 // June 2015
14 //======================================================================
15 
17 
18 namespace npstat {
19  namespace Private {
21  {
22  inline WeightedDistro1DPtr(const AbsDistribution1D& id,
23  const double weight)
24  : d(&id), w(weight) {}
25 
26  const AbsDistribution1D* d;
27  double w;
28 
29  inline bool operator==(const WeightedDistro1DPtr& r) const
30  {return *d == *r.d && w == r.w;}
31  inline bool operator!=(const WeightedDistro1DPtr& r) const
32  {return !(*this == r);}
33 
34  private:
36  };
37  }
38 }
39 
40 #endif // NPSTAT_WEIGHTEDDISTRO1DPTR_HH_
Interface definition for 1-d continuous statistical distributions.
Definition: AbsArrayProjector.hh:14
Definition: AbsDistribution1D.hh:31
Definition: WeightedDistro1DPtr.hh:21