1 /*******************************************************************************
2 * Project: BaBar detector at the SLAC PEP-II B-factory
4 * File: $Id: EvtDalitzCoord.hh,v 1.2 2009-03-16 16:43:40 robbep Exp $
5 * Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002
7 * Copyright (C) 2002 Caltech
8 *******************************************************************************/
10 // Two dimensional coordinate of a point in a Dalitz plot
12 #ifndef EVT_DALITZ_COORD_HH
13 #define EVT_DALITZ_COORD_HH
15 #include "EvtGenBase/EvtCyclic3.hh"
19 class EvtDalitzCoord {
27 EvtDalitzCoord(EvtCyclic3::Pair i1, double q1, EvtCyclic3::Pair i2, double q2);
28 EvtDalitzCoord(const EvtDalitzCoord& other);
31 inline EvtCyclic3::Pair pair1() const { return _i1; }
32 inline EvtCyclic3::Pair pair2() const { return _i2; }
33 inline double q1() const { return _q1; }
34 inline double q2() const { return _q2; }
37 // It's nice to have an equality operator for
38 // a coordinate. However, beware effects of numerical precision
40 bool operator==(const EvtDalitzCoord&) const;
42 void print(std::ostream&) const;
46 // Two coordinates define the point
55 std::ostream& operator<<(std::ostream&,const EvtDalitzCoord&);