Pid Framework
Loading...
Searching...
No Matches
Container.h
Go to the documentation of this file.
1
8#ifndef CENTRALITY_CONTAINER_H
9#define CENTRALITY_CONTAINER_H
10
11#include <map>
12
13typedef unsigned int uint;
14
15namespace Pid {
16
17class Container {
18
19 public:
20 Container() = default;
21
22 void SetBayesianProbability(std::map<uint, double>&& prob) { prob_ = prob; }
23 void SetSigma(std::map<uint, double>&& sigma) { sigma_ = sigma; }
24
25 double GetBayesianProbability(uint num) const {
26 auto find = prob_.find(num);
27 return find != prob_.end() ? find->second : -1;
28 }
29
30 double GetSigma(uint num) const {
31 auto find = sigma_.find(num);
32 return find != sigma_.end() ? find->second : -1;
33 }
34
35 private:
36 std::map<uint, double> prob_;
37 std::map<uint, double> sigma_;
38
39 // ClassDef(Container, 1);
40};
41}// namespace Pid
42
43#endif//CENTRALITY_CONTAINER_H
Class to store PID information.
Definition Container.h:17