/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenBase/EvtDalitzCoord.cc

Go to the documentation of this file.
00001 #include "EvtGenBase/EvtPatches.hh"
00002 /*******************************************************************************
00003  * Project: BaBar detector at the SLAC PEP-II B-factory
00004  * Package: EvtGenBase
00005  *    File: $Id: EvtDalitzCoord.cc,v 1.1.1.2 2007/10/26 05:03:14 pingrg Exp $
00006  *  Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002
00007  *
00008  * Copyright (C) 2002 Caltech
00009  *******************************************************************************/
00010 
00011 #include <assert.h>
00012 #include <iostream>
00013 #include "EvtGenBase/EvtDalitzCoord.hh"
00014 using std::endl;
00015 using std::ostream;
00016 using EvtCyclic3::Pair;
00017 
00018 
00019 // For coordinates it's good to alway have a
00020 // default ctor. Initialize to something invalid.
00021 
00022 EvtDalitzCoord::EvtDalitzCoord()
00023   : _i1(EvtCyclic3::AB), _i2(EvtCyclic3::BC), _q1(-1.), _q2(-1.)
00024 {}
00025 
00026 EvtDalitzCoord::EvtDalitzCoord(const EvtDalitzCoord& other)
00027   : _i1(other._i1), _i2(other._i2), _q1(other._q1), _q2(other._q2)
00028 {}
00029 
00030 
00031 EvtDalitzCoord::EvtDalitzCoord(Pair i1, double q1, Pair i2, double q2)
00032   : _i1(i1), _i2(i2),_q1(q1),_q2(q2)
00033 {} 
00034 
00035 
00036 EvtDalitzCoord::~EvtDalitzCoord()
00037 {}
00038 
00039 
00040 bool EvtDalitzCoord::operator==(const EvtDalitzCoord& other) const
00041 {
00042   return (_i1 == other._i1 && _i2 == other._i2 && 
00043           _q1 == other._q1 && _q2 == other._q2);
00044 }
00045 
00046 void EvtDalitzCoord::print(ostream& os) const
00047 {
00048   os << _i1 << " " << _q1 << endl;
00049   os << _i2 << " " << _q2 << endl;
00050 }
00051 
00052 
00053 ostream& operator<<(ostream& os,const EvtDalitzCoord& p)
00054 {
00055   p.print(os);
00056   return os;
00057 }
00058 

Generated on Tue Nov 29 23:12:12 2016 for BOSS_7.0.2 by  doxygen 1.4.7