BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtPropagator.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: EvtPropagator.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
// Defines propagator as a function of mass and width
11
12
#ifndef EVT_PROPAGATOR_HH
13
#define EVT_PROPAGATOR_HH
14
15
#include "
EvtAmplitude.hh
"
16
#include "
EvtComplex.hh
"
17
#include "
EvtPoint1D.hh
"
18
#include <assert.h>
19
20
class
EvtPropagator
:
public
EvtAmplitude
<EvtPoint1D> {
21
public
:
22
EvtPropagator
(
double
m0
,
double
g0
) :
_m0
(
m0
),
_g0
(
g0
) {
23
assert(
m0
> 0 );
24
assert(
g0
>= 0 );
25
}
26
EvtPropagator
(
const
EvtPropagator
& other ) :
_m0
( other.
_m0
),
_g0
( other.
_g0
) {}
27
virtual
~EvtPropagator
() {}
28
29
// Accessors
30
31
inline
double
m0
()
const
{
return
_m0
; }
32
inline
double
g0
()
const
{
return
_g0
; }
33
34
// Modifiers (can be useful e.g. for fitting!)
35
36
inline
void
set_m0
(
double
m0
) {
37
assert(
m0
> 0 );
38
_m0
=
m0
;
39
}
40
inline
void
set_g0
(
double
g0
) {
41
assert(
g0
>= 0 );
42
_g0
=
g0
;
43
}
44
45
protected
:
46
double
_m0
;
47
double
_g0
;
48
};
49
50
#endif
EvtAmplitude.hh
EvtComplex.hh
EvtPoint1D.hh
EvtAmplitude< EvtPoint1D >::EvtAmplitude
EvtAmplitude()
Definition
EvtAmplitude.hh:19
EvtPropagator::g0
double g0() const
Definition
EvtPropagator.hh:32
EvtPropagator::m0
double m0() const
Definition
EvtPropagator.hh:31
EvtPropagator::set_g0
void set_g0(double g0)
Definition
EvtPropagator.hh:40
EvtPropagator::set_m0
void set_m0(double m0)
Definition
EvtPropagator.hh:36
EvtPropagator::_g0
double _g0
Definition
EvtPropagator.hh:47
EvtPropagator::EvtPropagator
EvtPropagator(const EvtPropagator &other)
Definition
EvtPropagator.hh:26
EvtPropagator::~EvtPropagator
virtual ~EvtPropagator()
Definition
EvtPropagator.hh:27
EvtPropagator::EvtPropagator
EvtPropagator(double m0, double g0)
Definition
EvtPropagator.hh:22
EvtPropagator::_m0
double _m0
Definition
EvtPropagator.hh:46
8.0.0
BOSS_Gen
BesEvtGen
src
EvtGen
EvtGenBase
EvtPropagator.hh
Generated by
1.16.1