BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtDalitzCoord.cc
Go to the documentation of this file.
1
#include "
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, dvoretsk@slac.stanford.edu, 2001-2002
7
*
8
* Copyright (C) 2002 Caltech
9
*******************************************************************************/
10
11
#include "
EvtDalitzCoord.hh
"
12
#include <assert.h>
13
#include <iostream>
14
using
EvtCyclic3::Pair
;
15
using
std::endl;
16
using
std::ostream;
17
18
// For coordinates it's good to alway have a
19
// default ctor. Initialize to something invalid.
20
21
EvtDalitzCoord::EvtDalitzCoord
()
22
: _i1(
EvtCyclic3
::AB ), _i2(
EvtCyclic3
::BC ), _q1( -1. ), _q2( -1. ) {}
23
24
EvtDalitzCoord::EvtDalitzCoord
(
const
EvtDalitzCoord
& other )
25
: _i1( other._i1 ), _i2( other._i2 ), _q1( other._q1 ), _q2( other._q2 ) {}
26
27
EvtDalitzCoord::EvtDalitzCoord
(
Pair
i1,
double
q1
,
Pair
i2,
double
q2
)
28
: _i1( i1 ), _i2( i2 ), _q1(
q1
), _q2(
q2
) {}
29
30
EvtDalitzCoord::~EvtDalitzCoord
() {}
31
32
bool
EvtDalitzCoord::operator==
(
const
EvtDalitzCoord
& other )
const
{
33
return
( _i1 == other._i1 && _i2 == other._i2 && _q1 == other._q1 && _q2 == other._q2 );
34
}
35
36
void
EvtDalitzCoord::print
( ostream& os )
const
{
37
os << _i1 <<
" "
<< _q1 << endl;
38
os << _i2 <<
" "
<< _q2 << endl;
39
}
40
41
ostream&
operator<<
( ostream& os,
const
EvtDalitzCoord
& p ) {
42
p.
print
( os );
43
return
os;
44
}
operator<<
ostream & operator<<(ostream &os, const EvtDalitzCoord &p)
Definition
EvtDalitzCoord.cc:41
EvtDalitzCoord.hh
EvtPatches.hh
EvtDalitzCoord
Definition
EvtDalitzCoord.hh:19
EvtDalitzCoord::print
void print(std::ostream &) const
Definition
EvtDalitzCoord.cc:36
EvtDalitzCoord::q1
double q1() const
Definition
EvtDalitzCoord.hh:31
EvtDalitzCoord::operator==
bool operator==(const EvtDalitzCoord &) const
Definition
EvtDalitzCoord.cc:32
EvtDalitzCoord::~EvtDalitzCoord
~EvtDalitzCoord()
Definition
EvtDalitzCoord.cc:30
EvtDalitzCoord::q2
double q2() const
Definition
EvtDalitzCoord.hh:32
EvtDalitzCoord::EvtDalitzCoord
EvtDalitzCoord()
Definition
EvtDalitzCoord.cc:21
EvtCyclic3
Definition
EvtCyclic3.hh:17
EvtCyclic3::Pair
Pair
Definition
EvtCyclic3.hh:20
8.0.0
BOSS_Gen
BesEvtGen
src
EvtGen
EvtGenBase
EvtDalitzCoord.cc
Generated by
1.16.1