1 /*******************************************************************************
2 * Project: BaBar detector at the SLAC PEP-II B-factory
4 * File: $Id: EvtTwoBodyKine.hh,v 1.6 2004/08/06 06:08:26 bartoldu Exp $
5 * Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002
7 * Copyright (C) 2002 Caltech
8 *******************************************************************************/
10 // Descriptions of the kinematics of a two-body decay.
12 #ifndef EVT_TWO_BODY_KINE_HH
13 #define EVT_TWO_BODY_KINE_HH
17 class EvtTwoBodyKine {
24 EvtTwoBodyKine(double mA, double mB, double mAB);
25 EvtTwoBodyKine(const EvtTwoBodyKine& other);
30 inline double mA() const { return _mA; }
31 inline double mB() const { return _mB; }
32 inline double mAB() const { return _mAB; }
33 double m(Index i) const;
35 // Momentum of the other two particles in the
36 // rest-frame of particle i.
38 double p(Index i = AB) const;
40 // Energy of particle i in the rest frame of particle j
42 double e(Index i, Index j) const;
44 void print(std::ostream& os) const;
53 std::ostream& operator<<(std::ostream& os, const EvtTwoBodyKine& p);