BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/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//
21#include "EvtGenBase/EvtPatches.hh"
22#include "EvtGenBase/EvtPatches.hh"
23#include <iostream>
24#include <math.h>
25#include <assert.h>
26#include "EvtGenBase/EvtHighSpinParticle.hh"
27#include "EvtGenBase/EvtVector4R.hh"
28#include "EvtGenBase/EvtPDL.hh"
29#include "EvtGenBase/EvtSpinDensity.hh"
30#include "EvtGenBase/EvtdFunction.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
const Int_t n
const double alpha
EvtComplex exp(const EvtComplex &c)
static EvtSpinType::spintype getSpinType(EvtId i)
void setp(double e, double px, double py, double pz)
static double d(int j, int m1, int m2, double theta)
complex_t R(double Q2, double M2, double G, double Mp2, double Mm2)
Definition: TUtil.h:27