BOSS 8.0.0
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 "EvtScalarParticle.hh"
22#include "EvtPatches.hh"
23#include "EvtVector4R.hh"
24#include <iostream>
25#include <math.h>
26
27void EvtScalarParticle::init( EvtId part_n, double e, double px, double py, double pz ) {
28
29 _validP4 = true;
30 setp( e, px, py, pz );
31 setpart_num( part_n );
32
34}
35
37
38void EvtScalarParticle::init( EvtId part_n, const EvtVector4R& p4 ) {
39
40 _validP4 = true;
41 setp( p4 );
42 setpart_num( part_n );
43
45}
46
48
50 R.SetDim( 1 );
51
52 R.Set( 0, 0, 1.0 );
53
54 return R;
55}
56
58 double gamma ) const {
59
61 R.SetDim( 1 );
62
63 R.Set( 0, 0, 1.0 );
64
65 return R;
66}
double alpha
Definition EvtId.hh:27
void setLifetime()
void setp(double e, double px, double py, double pz)
void setpart_num(EvtId particle_number)
EvtSpinDensity rotateToHelicityBasis() const
void init(EvtId part_n, double e, double px, double py, double pz)