ComPWA
Common Partial-Wave-Analysis Framework
Efficiency.hpp
Go to the documentation of this file.
1 // Copyright (c) 2013, 2017 The ComPWA Team.
2 // This file is part of the ComPWA framework, check
3 // https://github.com/ComPWA/ComPWA/license.txt for details.
4 
9 
10 #ifndef EFFICIENCY_HPP_
11 #define EFFICIENCY_HPP_
12 
13 #include "Core/Logging.hpp"
14 
15 namespace ComPWA {
16 
17 struct DataPoint;
18 
23 class Efficiency {
24 private:
25 public:
26  Efficiency();
27 
28  virtual ~Efficiency();
29 
30  virtual double evaluate(const DataPoint &point) const = 0;
31 };
32 
37 class UnitEfficiency : public Efficiency {
38 private:
39 public:
40  UnitEfficiency() { LOG(DEBUG) << "Efficiency: creating UnitEfficiency!"; };
41 
43 
44  virtual double evaluate(const DataPoint &point) const { return 1; };
45 };
46 
47 } // namespace ComPWA
48 
49 #endif
Base class for efficiency description over the phase space.
Definition: Efficiency.hpp:23
virtual double evaluate(const DataPoint &point) const =0
Efficiency object with unit efficiency all over the phase space.
Definition: Efficiency.hpp:37
virtual ~Efficiency()
Definition: Efficiency.cpp:12
virtual double evaluate(const DataPoint &point) const
Definition: Efficiency.hpp:44