1 //--------------------------------------------------------------------------
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.
8 // Copyright Information: See EvtGen/COPYRIGHT
9 // Copyright (C) 1998 Caltech, UCSB
11 // Module: EvtHighSpinParticle.cc
13 // Description: Class to describe particles with spin>2.
15 // Modification history:
17 // RYD August 8, 2000 Module created
19 //------------------------------------------------------------------------
21 #include "EvtGenBase/EvtPatches.hh"
22 #include "EvtGenBase/EvtPatches.hh"
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"
33 EvtHighSpinParticle::~EvtHighSpinParticle() {}
36 void EvtHighSpinParticle::init(EvtId id,const EvtVector4R& p4){
46 EvtSpinDensity EvtHighSpinParticle::rotateToHelicityBasis() const{
48 int n=EvtSpinType::getSpinStates(EvtPDL::getSpinType(getId()));
59 EvtSpinDensity EvtHighSpinParticle::rotateToHelicityBasis(double alpha,
65 int n=EvtSpinType::getSpinStates(EvtPDL::getSpinType(getId()));
71 int J2=EvtSpinType::getSpin2(EvtPDL::getSpinType(getId()));
77 lambda2=new int[J2+1];
86 R.set(i,j,EvtdFunction::d(J2,lambda2[j],lambda2[i],beta)*
87 exp(EvtComplex(0.0,0.5*(alpha*lambda2[i]-gamma*lambda2[j]))));