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
17
class
EvtTwoBodyKine
{
18
19
public
:
20
enum
Index
{
A
,
B
,
AB
};
21
22
EvtTwoBodyKine
();
23
EvtTwoBodyKine
(
double
mA
,
double
mB
,
double
mAB
);
24
EvtTwoBodyKine
(
const
EvtTwoBodyKine
& other );
25
~EvtTwoBodyKine
();
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
45
private
:
46
double
_mA;
47
double
_mB;
48
double
_mAB;
49
};
50
51
std::ostream&
operator<<
( std::ostream& os,
const
EvtTwoBodyKine
& p );
52
53
#endif
Index
Index
Definition
EvtCyclic3.hh:19
operator<<
std::ostream & operator<<(std::ostream &os, const EvtTwoBodyKine &p)
EvtTwoBodyKine
Definition
EvtTwoBodyKine.hh:17
EvtTwoBodyKine::mB
double mB() const
Definition
EvtTwoBodyKine.hh:30
EvtTwoBodyKine::Index
Index
Definition
EvtTwoBodyKine.hh:20
EvtTwoBodyKine::A
@ A
Definition
EvtTwoBodyKine.hh:20
EvtTwoBodyKine::AB
@ AB
Definition
EvtTwoBodyKine.hh:20
EvtTwoBodyKine::B
@ B
Definition
EvtTwoBodyKine.hh:20
EvtTwoBodyKine::~EvtTwoBodyKine
~EvtTwoBodyKine()
Definition
EvtTwoBodyKine.cc:34
EvtTwoBodyKine::mAB
double mAB() const
Definition
EvtTwoBodyKine.hh:31
EvtTwoBodyKine::print
void print(std::ostream &os) const
Definition
EvtTwoBodyKine.cc:83
EvtTwoBodyKine::EvtTwoBodyKine
EvtTwoBodyKine()
Definition
EvtTwoBodyKine.cc:19
EvtTwoBodyKine::m
double m(Index i) const
Definition
EvtTwoBodyKine.cc:36
EvtTwoBodyKine::p
double p(Index i=AB) const
Definition
EvtTwoBodyKine.cc:44
EvtTwoBodyKine::mA
double mA() const
Definition
EvtTwoBodyKine.hh:29
EvtTwoBodyKine::e
double e(Index i, Index j) const
Definition
EvtTwoBodyKine.cc:72
8.0.0
BOSS_Gen
BesEvtGen
src
EvtGen
EvtGenBase
EvtTwoBodyKine.hh
Generated by
1.16.1