BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtDalitzCoord.hh
Go to the documentation of this file.
1/*******************************************************************************
2 * Project: BaBar detector at the SLAC PEP-II B-factory
3 * Package: EvtGenBase
4 * File: $Id: EvtDalitzCoord.hh,v 1.1.1.2 2007/10/26 05:03:14 pingrg Exp $
5 * Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002
6 *
7 * Copyright (C) 2002 Caltech
8 *******************************************************************************/
9
10// Two dimensional coordinate of a point in a Dalitz plot
11
12#ifndef EVT_DALITZ_COORD_HH
13#define EVT_DALITZ_COORD_HH
14
15#include "EvtCyclic3.hh"
16
17#include <iostream>
18
20
21public:
22 // ctor, dtor
23
25 EvtDalitzCoord( EvtCyclic3::Pair i1, double q1, EvtCyclic3::Pair i2, double q2 );
26 EvtDalitzCoord( const EvtDalitzCoord& other );
28
29 inline EvtCyclic3::Pair pair1() const { return _i1; }
30 inline EvtCyclic3::Pair pair2() const { return _i2; }
31 inline double q1() const { return _q1; }
32 inline double q2() const { return _q2; }
33
34 // It's nice to have an equality operator for
35 // a coordinate. However, beware effects of numerical precision
36
37 bool operator==( const EvtDalitzCoord& ) const;
38
39 void print( std::ostream& ) const;
40
41private:
42 // Two coordinates define the point
43
46
47 double _q1;
48 double _q2;
49};
50
51std::ostream& operator<<( std::ostream&, const EvtDalitzCoord& );
52
53#endif
std::ostream & operator<<(std::ostream &, const EvtDalitzCoord &)
EvtCyclic3::Pair pair1() const
EvtCyclic3::Pair pair2() const
void print(std::ostream &) const
double q1() const
bool operator==(const EvtDalitzCoord &) const
double q2() const