BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtHighSpinParticle.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: EvtHighSpinParticle.cc
12//
13// Description: Class to describe particles with spin>2.
14//
15// Modification history:
16//
17// RYD August 8, 2000 Module created
18//
19//------------------------------------------------------------------------
20//
23#include <iostream>
24#include <math.h>
25#include <assert.h>
28#include "EvtGenBase/EvtPDL.hh"
31
32
34
35
37
38 _validP4=true;
39 setp(p4);
40 setpart_num(id);
41
43
44}
45
47
49
51 R.SetDiag(n);
52
53 return R;
54
55}
56
57
58
60 double beta,
61 double gamma) const{
62
63 int i,j;
64
66
68 R.SetDim(n);
69
71
72 assert(n==J2+1);
73
74 int *lambda2;
75
76 lambda2=new int[J2+1];
77
78 for(i=0;i<J2+1;i++){
79 lambda2[i]=J2-i*2;
80 }
81
82
83 for(i=0;i<n;i++){
84 for(j=0;j<n;j++){
85 R.Set(i,j,EvtdFunction::d(J2,lambda2[j],lambda2[i],-beta)*
86 exp(EvtComplex(0.0,-0.5*(alpha*lambda2[i]-gamma*lambda2[j]))));
87 }
88 }
89
90 delete [] lambda2;
91
92 return R;
93
94
95}
96
97
EvtComplex exp(const EvtComplex &c)
Definition: EvtComplex.hh:252
const double alpha
void init(EvtId id, const EvtVector4R &p)
EvtSpinDensity rotateToHelicityBasis() const
Definition: EvtId.hh:27
static EvtSpinType::spintype getSpinType(EvtId i)
Definition: EvtPDL.hh:61
EvtId getId() const
Definition: EvtParticle.cc:113
void setLifetime()
Definition: EvtParticle.cc:93
void setp(double e, double px, double py, double pz)
Definition: EvtParticle.hh:398
void setpart_num(EvtId particle_number)
Definition: EvtParticle.hh:400
static int getSpin2(spintype stype)
Definition: EvtSpinType.hh:34
static int getSpinStates(spintype stype)
Definition: EvtSpinType.hh:64
static double d(int j, int m1, int m2, double theta)
Definition: EvtdFunction.cc:30