BOSS
7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtDalitzCoord.cc
Go to the documentation of this file.
1
#include "EvtGenBase/EvtPatches.hh"
2
/*******************************************************************************
3
* Project: BaBar detector at the SLAC PEP-II B-factory
4
* Package: EvtGenBase
5
* File: $Id: EvtDalitzCoord.cc,v 1.1.1.2 2007/10/26 05:03:14 pingrg Exp $
6
* Author: Alexei Dvoretskii,
[email protected]
, 2001-2002
7
*
8
* Copyright (C) 2002 Caltech
9
*******************************************************************************/
10
11
#include <assert.h>
12
#include <iostream>
13
#include "EvtGenBase/EvtDalitzCoord.hh"
14
using
std::endl;
15
using
std::ostream;
16
using
EvtCyclic3::Pair
;
17
18
19
// For coordinates it's good to alway have a
20
// default ctor. Initialize to something invalid.
21
22
EvtDalitzCoord::EvtDalitzCoord
()
23
: _i1(
EvtCyclic3
::
AB
), _i2(
EvtCyclic3
::
BC
), _q1(-1.), _q2(-1.)
24
{}
25
26
EvtDalitzCoord::EvtDalitzCoord
(
const
EvtDalitzCoord
& other)
27
: _i1(
other
._i1), _i2(
other
._i2), _q1(
other
._q1), _q2(
other
._q2)
28
{}
29
30
31
EvtDalitzCoord::EvtDalitzCoord
(Pair i1,
double
q1, Pair i2,
double
q2)
32
: _i1(i1), _i2(i2),_q1(q1),_q2(q2)
33
{}
34
35
36
EvtDalitzCoord::~EvtDalitzCoord
()
37
{}
38
39
40
bool
EvtDalitzCoord::operator==
(
const
EvtDalitzCoord
& other)
const
41
{
42
return
(_i1 ==
other
._i1 && _i2 ==
other
._i2 &&
43
_q1 ==
other
._q1 && _q2 ==
other
._q2);
44
}
45
46
void
EvtDalitzCoord::print
(ostream& os)
const
47
{
48
os << _i1 <<
" "
<< _q1 << endl;
49
os << _i2 <<
" "
<< _q2 << endl;
50
}
51
52
53
ostream&
operator<<
(ostream& os,
const
EvtDalitzCoord
& p)
54
{
55
p.
print
(os);
56
return
os;
57
}
58
operator<<
ostream & operator<<(ostream &os, const EvtDalitzCoord &p)
Definition:
BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtDalitzCoord.cc:53
EvtDalitzCoord
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtDalitzCoord.hh:19
EvtDalitzCoord::print
void print(std::ostream &) const
EvtDalitzCoord::operator==
bool operator==(const EvtDalitzCoord &) const
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtDalitzCoord.cc:40
EvtDalitzCoord::~EvtDalitzCoord
~EvtDalitzCoord()
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtDalitzCoord.cc:36
EvtDalitzCoord::EvtDalitzCoord
EvtDalitzCoord()
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtDalitzCoord.cc:22
EvtCyclic3
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtCyclic3.hh:17
EvtCyclic3::Pair
Pair
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtCyclic3.hh:21
EvtCyclic3::AB
@ AB
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtCyclic3.hh:21
EvtCyclic3::BC
@ BC
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtCyclic3.hh:21
EvtCyclic3::other
Index other(Index i, Index j)
Definition:
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtCyclic3.cc:118
source
Generator
BesEvtGen
BesEvtGen-00-04-08
src
EvtGen
EvtGenBase
EvtDalitzCoord.cc
Generated by
1.9.6