1 #include "EvtGenBase/EvtPatches.hh"
2 /*******************************************************************************
3 * Project: BaBar detector at the SLAC PEP-II B-factory
5 * File: $Id: EvtDalitzCoord.cc,v 1.3 2004/12/21 19:58:42 ryd Exp $
6 * Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002
8 * Copyright (C) 2002 Caltech
9 *******************************************************************************/
13 #include "EvtGenBase/EvtDalitzCoord.hh"
16 using EvtCyclic3::Pair;
19 // For coordinates it's good to alway have a
20 // default ctor. Initialize to something invalid.
22 EvtDalitzCoord::EvtDalitzCoord()
23 : _i1(EvtCyclic3::AB), _i2(EvtCyclic3::BC), _q1(-1.), _q2(-1.)
26 EvtDalitzCoord::EvtDalitzCoord(const EvtDalitzCoord& other)
27 : _i1(other._i1), _i2(other._i2), _q1(other._q1), _q2(other._q2)
31 EvtDalitzCoord::EvtDalitzCoord(Pair i1, double q1, Pair i2, double q2)
32 : _i1(i1), _i2(i2),_q1(q1),_q2(q2)
36 EvtDalitzCoord::~EvtDalitzCoord()
40 bool EvtDalitzCoord::operator==(const EvtDalitzCoord& other) const
42 return (_i1 == other._i1 && _i2 == other._i2 &&
43 _q1 == other._q1 && _q2 == other._q2);
46 void EvtDalitzCoord::print(ostream& os) const
48 os << _i1 << " " << _q1 << endl;
49 os << _i2 << " " << _q2 << endl;
53 ostream& operator<<(ostream& os,const EvtDalitzCoord& p)