MINT2
Weights.h
Go to the documentation of this file.
1 
12 #ifndef WEIGHTS_HH
13 #define WEIGHTS_HH
14 
15 // HyperPlot includes
16 #include "Mint/MessageService.h"
17 
18 // Root includes
19 
20 // std includes
21 
22 
23 class Weights {
24 
25  protected:
26 
27  std::vector<double> _weights;
29  public:
30 
31  Weights();
32  Weights(double weight);
33 
34  int numWeights() const;
35 
36  const std::vector<double>& getWeightsVector(){return _weights;}
38  void printWeight(std::ostream& os = std::cout, int endline=1) const;
39 
40  double getWeight(int i = 0) const;
41 
42  void setWeight(int i, double w);
43  void setWeight(double w);
44 
45  void addWeight(const double& weight);
46 
47  virtual ~Weights();
48 
49 };
50 
51 
52 
53 #endif
54 
virtual ~Weights()
Definition: Weights.cpp:75
void setWeight(int i, double w)
Definition: Weights.cpp:52
void addWeight(const double &weight)
Definition: Weights.cpp:71
const std::vector< double > & getWeightsVector()
Definition: Weights.h:36
int numWeights() const
Definition: Weights.cpp:20
std::vector< double > _weights
Definition: Weights.h:27
double getWeight(int i=0) const
Definition: Weights.cpp:40
void printWeight(std::ostream &os=std::cout, int endline=1) const
Definition: Weights.cpp:26
Weights()
Definition: Weights.cpp:5