BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtTwoBodyKine.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: EvtTwoBodyKine.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// Descriptions of the kinematics of a two-body decay.
11
12#ifndef EVT_TWO_BODY_KINE_HH
13#define EVT_TWO_BODY_KINE_HH
14
15#include <iostream>
16
18
19public:
20 enum Index { A, B, AB };
21
23 EvtTwoBodyKine( double mA, double mB, double mAB );
24 EvtTwoBodyKine( const EvtTwoBodyKine& other );
26
27 // Accessors
28
29 inline double mA() const { return _mA; }
30 inline double mB() const { return _mB; }
31 inline double mAB() const { return _mAB; }
32 double m( Index i ) const;
33
34 // Momentum of the other two particles in the
35 // rest-frame of particle i.
36
37 double p( Index i = AB ) const;
38
39 // Energy of particle i in the rest frame of particle j
40
41 double e( Index i, Index j ) const;
42
43 void print( std::ostream& os ) const;
44
45private:
46 double _mA;
47 double _mB;
48 double _mAB;
49};
50
51std::ostream& operator<<( std::ostream& os, const EvtTwoBodyKine& p );
52
53#endif
Index
Definition EvtCyclic3.hh:19
std::ostream & operator<<(std::ostream &os, const EvtTwoBodyKine &p)
double mB() const
double mAB() const
void print(std::ostream &os) const
double m(Index i) const
double p(Index i=AB) const
double mA() const
double e(Index i, Index j) const