MINT2
DalitzCoordinate.h
Go to the documentation of this file.
1 #ifndef DALITZCOORDINATE_HH
2 #define DALITZCOORDINATE_HH
3 // author: Jonas Rademacker (Jonas.Rademacker@bristol.ac.uk)
4 // status: Mon 9 Feb 2009 19:17:58 GMT
5 
6 #include <vector>
7 
8 #include "Mint/Permutation.h"
9 
10 #include <iostream>
11 #include <string>
12 #include "Mint/PolymorphVector.h"
13 
15 
17  double _mi, _ma, _val;
18  std::string _name;
19  std::string& makeName();
20 
21  public:
22 
24  DalitzCoordinate(int i, int j);
25  DalitzCoordinate(int i, int j, int k);
27  DalitzCoordinate(const DalitzCoordinate& other);
28 
30 
31  virtual ~DalitzCoordinate(){}
32 
33  void setMin(double min){_mi = min;}
34  void setMax(double max){_ma = max;}
35  void setMinMax(double min, double max){
36  setMin(min); setMax(max);}
37  void setVal(double val){_val = val;}
38 
39  double min()const{return _mi;}
40  double max()const{return _ma;}
41  double val()const{return _val;}
42 
43  bool I_am_Consecutive() const;
44 
45  DalitzCoordinate mapMe(const Permutation& perm) const;
46 
47  std::vector<DalitzCoordinate> split(int n) const;
48 
49  void print(std::ostream& os = std::cout) const;
50  const std::string& name() const;
51  std::string nameFileSave() const;
52 
53  bool sameIndices(const DalitzCoordinate& rhs) const;
54  bool operator==(const DalitzCoordinate& rhs) const;
55  bool operator!=(const DalitzCoordinate& rhs) const;
56 
57  const DalitzCoordKey& myKey() const{return *this;}
58 
59 };
60 std::ostream& operator<<(std::ostream& os, const DalitzCoordinate& c);
61 
62 
63 #endif
64 //
double min() const
void setVal(double val)
bool I_am_Consecutive() const
bool operator==(const DalitzCoordinate &rhs) const
void setMax(double max)
std::ostream & operator<<(std::ostream &os, const DalitzCoordinate &c)
double max() const
std::vector< DalitzCoordinate > split(int n) const
void print(std::ostream &os=std::cout) const
bool operator!=(const DalitzCoordinate &rhs) const
DalitzCoordinate mapMe(const Permutation &perm) const
std::string & makeName()
virtual ~DalitzCoordinate()
const DalitzCoordKey & myKey() const
double val() const
bool sameIndices(const DalitzCoordinate &rhs) const
void setMin(double min)
MINT::PolymorphVector< int > DalitzCoordKey
DalitzCoordinate & operator=(const DalitzCoordinate &other)
void setMinMax(double min, double max)
const std::string & name() const
std::string nameFileSave() const