]>
Commit | Line | Data |
---|---|---|
da0e9ce3 | 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, | |
65 | double, | |
66 | double) const{ | |
67 | ||
68 | EvtSpinDensity R; | |
69 | R.setDim(1); | |
70 | ||
71 | R.set(0,0,1.0); | |
72 | ||
73 | return R; | |
74 | ||
75 | } | |
76 |