BOSS
7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtScalarParticle.cc
Go to the documentation of this file.
1
//--------------------------------------------------------------------------
2
//
3
// Environment:
4
// This software is part of the EvtGen package developed jointly
5
// for the BaBar and CLEO collaborations. If you use all or part
6
// of it, please give an appropriate acknowledgement.
7
//
8
// Copyright Information: See EvtGen/COPYRIGHT
9
// Copyright (C) 1998 Caltech, UCSB
10
//
11
// Module: EvtScalarParticle.cc
12
//
13
// Description: Class to describe scalar particles
14
//
15
// Modification history:
16
//
17
// DJL/RYD September 25, 1996 Module created
18
//
19
//------------------------------------------------------------------------
20
//
21
#include "
EvtGenBase/EvtPatches.hh
"
22
#include <iostream>
23
#include <math.h>
24
#include "
EvtGenBase/EvtPatches.hh
"
25
#include "
EvtGenBase/EvtScalarParticle.hh
"
26
#include "
EvtGenBase/EvtVector4R.hh
"
27
28
29
void
EvtScalarParticle::init
(
EvtId
part_n,
double
e,
double
px,
double
py,
double
pz){
30
31
_validP4
=
true
;
32
setp
(e,px,py,pz);
33
setpart_num
(part_n);
34
35
setLifetime
();
36
37
}
38
39
EvtScalarParticle::~EvtScalarParticle
() {}
40
41
42
void
EvtScalarParticle::init
(
EvtId
part_n,
const
EvtVector4R
& p4){
43
44
_validP4
=
true
;
45
setp
(p4);
46
setpart_num
(part_n);
47
48
setLifetime
();
49
50
}
51
52
EvtSpinDensity
EvtScalarParticle::rotateToHelicityBasis
()
const
{
53
54
EvtSpinDensity
R;
55
R.SetDim(1);
56
57
R.Set(0,0,1.0);
58
59
return
R;
60
61
}
62
63
64
EvtSpinDensity
EvtScalarParticle::rotateToHelicityBasis
(
double
alpha
,
65
double
beta,
66
double
gamma)
const
{
67
68
EvtSpinDensity
R;
69
R.SetDim(1);
70
71
R.Set(0,0,1.0);
72
73
return
R;
74
75
}
76
EvtPatches.hh
EvtScalarParticle.hh
EvtVector4R.hh
alpha
const double alpha
Definition:
FastVertexFit.cxx:4
EvtId
Definition:
EvtId.hh:27
EvtParticle::_validP4
bool _validP4
Definition:
EvtParticle.hh:407
EvtParticle::setLifetime
void setLifetime()
Definition:
EvtParticle.cc:93
EvtParticle::setp
void setp(double e, double px, double py, double pz)
Definition:
EvtParticle.hh:398
EvtParticle::setpart_num
void setpart_num(EvtId particle_number)
Definition:
EvtParticle.hh:400
EvtScalarParticle::rotateToHelicityBasis
EvtSpinDensity rotateToHelicityBasis() const
Definition:
EvtScalarParticle.cc:52
EvtScalarParticle::~EvtScalarParticle
virtual ~EvtScalarParticle()
Definition:
EvtScalarParticle.cc:39
EvtScalarParticle::init
void init(EvtId part_n, double e, double px, double py, double pz)
Definition:
EvtScalarParticle.cc:29
EvtSpinDensity
Definition:
EvtSpinDensity.hh:27
EvtVector4R
Definition:
EvtVector4R.hh:29
source
Generator
BesEvtGen
BesEvtGen-00-04-08
src
EvtGen
EvtGenBase
EvtScalarParticle.cc
Generated by
1.9.6