ra4_stats  0341147a0dc35f80f4e12c6003afb76a38e2ed6e
free_systematic.hpp
Go to the documentation of this file.
1 #ifndef H_FREE_SYSTEMATIC
2 #define H_FREE_SYSTEMATIC
3 
4 #include <string>
5 #include <map>
6 #include <utility>
7 #include <ostream>
8 
9 #include "bin.hpp"
10 #include "process.hpp"
11 
13 public:
14  FreeSystematic(const std::string &name);
15 
16  const std::string & Name() const;
17  std::string & Name();
18 
19  bool HasEntry(const Bin &bin, const Process &process) const;
20 
21  double Strength(const Bin &bin, const Process &process) const;
22  double & Strength(const Bin &bin, const Process &process);
23 
24  bool operator<(const FreeSystematic &syst) const;
25  bool operator==(const FreeSystematic &syst) const;
26 
27 private:
28  std::string name_;
29  std::map<std::pair<Bin, Process>, double> strengths_;
30 };
31 
32 std::ostream & operator<<(std::ostream &stream, const FreeSystematic &syst);
33 
34 #endif
Definition: bin.hpp:12
std::map< std::pair< Bin, Process >, double > strengths_
bool operator<(const FreeSystematic &syst) const
double Strength(const Bin &bin, const Process &process) const
FreeSystematic(const std::string &name)
bool HasEntry(const Bin &bin, const Process &process) const
bool operator==(const FreeSystematic &syst) const
std::ostream & operator<<(std::ostream &stream, const FreeSystematic &syst)
const std::string & Name() const
std::string name_