BOSS 8.0.0
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//
22#include "EvtPDL.hh"
23#include "EvtPatches.hh"
24#include "EvtSpinDensity.hh"
25#include "EvtVector4R.hh"
26#include "EvtdFunction.hh"
27#include <assert.h>
28#include <iostream>
29#include <math.h>
30
32
34
35 _validP4 = true;
36 setp( p4 );
37 setpart_num( id );
38
40}
41
43
45
47 R.SetDiag( n );
48
49 return R;
50}
51
53 double gamma ) const {
54
55 int i, j;
56
58
60 R.SetDim( n );
61
63
64 assert( n == J2 + 1 );
65
66 int* lambda2;
67
68 lambda2 = new int[J2 + 1];
69
70 for ( i = 0; i < J2 + 1; i++ ) { lambda2[i] = J2 - i * 2; }
71
72 for ( i = 0; i < n; i++ )
73 {
74 for ( j = 0; j < n; j++ )
75 {
76 R.Set(
77 i, j,
78 EvtdFunction::d( J2, lambda2[j], lambda2[i], -beta ) *
79 exp( EvtComplex( 0.0, -0.5 * ( alpha * lambda2[i] - gamma * lambda2[j] ) ) ) );
80 }
81 }
82
83 delete[] lambda2;
84
85 return R;
86}
const Int_t n
EvtComplex exp(const EvtComplex &c)
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:66
EvtId getId() const
void setLifetime()
void setp(double e, double px, double py, double pz)
void setpart_num(EvtId particle_number)
static int getSpin2(spintype stype)
static int getSpinStates(spintype stype)
static double d(int j, int m1, int m2, double theta)