ComPWA
Common Partial-Wave-Analysis Framework
Resolution.hpp
Go to the documentation of this file.
1 // Copyright (c) 2015, 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 
5 #ifndef CORE_RESOLUTION_HPP_
6 #define CORE_RESOLUTION_HPP_
7 
8 namespace ComPWA {
9 
10 class Resolution {
11 public:
13  virtual ~Resolution(){};
14  virtual void resolution(Event &ev) = 0;
15  virtual std::vector<double> resolution(std::vector<double> v) = 0;
16 };
17 
18 class ZeroResolution : public Resolution {
19 public:
21  virtual ~ZeroResolution(){};
22  virtual void resolution(Event &ev) { return; }
23  virtual std::vector<double> resolution(std::vector<double> v) {
24  std::vector<double> offset(v.size(), 0);
25  for (unsigned int i = 0; i < v.size(); i++)
26  v.at(i) += offset.at(i);
27  return v;
28  }
29 };
30 } // namespace ComPWA
31 
32 #endif
virtual void resolution(Event &ev)=0
virtual ~Resolution()
Definition: Resolution.hpp:13
virtual void resolution(Event &ev)
Definition: Resolution.hpp:22
virtual std::vector< double > resolution(std::vector< double > v)
Definition: Resolution.hpp:23
Data structure containing all kinematic information of a physics event.
Definition: Event.hpp:20