00001 #include "EvtGenBase/EvtPatches.hh"
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include <assert.h>
00012 #include <iostream>
00013 #include "EvtGenBase/EvtDalitzCoord.hh"
00014 using std::endl;
00015 using std::ostream;
00016 using EvtCyclic3::Pair;
00017
00018
00019
00020
00021
00022 EvtDalitzCoord::EvtDalitzCoord()
00023 : _i1(EvtCyclic3::AB), _i2(EvtCyclic3::BC), _q1(-1.), _q2(-1.)
00024 {}
00025
00026 EvtDalitzCoord::EvtDalitzCoord(const EvtDalitzCoord& other)
00027 : _i1(other._i1), _i2(other._i2), _q1(other._q1), _q2(other._q2)
00028 {}
00029
00030
00031 EvtDalitzCoord::EvtDalitzCoord(Pair i1, double q1, Pair i2, double q2)
00032 : _i1(i1), _i2(i2),_q1(q1),_q2(q2)
00033 {}
00034
00035
00036 EvtDalitzCoord::~EvtDalitzCoord()
00037 {}
00038
00039
00040 bool EvtDalitzCoord::operator==(const EvtDalitzCoord& other) const
00041 {
00042 return (_i1 == other._i1 && _i2 == other._i2 &&
00043 _q1 == other._q1 && _q2 == other._q2);
00044 }
00045
00046 void EvtDalitzCoord::print(ostream& os) const
00047 {
00048 os << _i1 << " " << _q1 << endl;
00049 os << _i2 << " " << _q2 << endl;
00050 }
00051
00052
00053 ostream& operator<<(ostream& os,const EvtDalitzCoord& p)
00054 {
00055 p.print(os);
00056 return os;
00057 }
00058