CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtSVPHelAmp Class Reference

#include <EvtSVPHelAmp.hh>

+ Inheritance diagram for EvtSVPHelAmp:

Public Member Functions

 EvtSVPHelAmp ()
 
virtual ~EvtSVPHelAmp ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void init ()
 
void initProbMax ()
 
void decay (EvtParticle *p)
 
- Public Member Functions inherited from EvtDecayAmp
void makeDecay (EvtParticle *p)
 
void setWeight (double weight)
 
void vertex (const EvtComplex &amp)
 
void vertex (int i1, const EvtComplex &amp)
 
void vertex (int i1, int i2, const EvtComplex &amp)
 
void vertex (int i1, int i2, int i3, const EvtComplex &amp)
 
void vertex (int *i1, const EvtComplex &amp)
 
virtual ~EvtDecayAmp ()
 
- Public Member Functions inherited from EvtDecayBase
virtual std::string commandName ()
 
virtual void command (std::string cmd)
 
double getProbMax (double prob)
 
double resetProbMax (double prob)
 
 EvtDecayBase ()
 
virtual ~EvtDecayBase ()
 
virtual bool matchingDecay (const EvtDecayBase &other) const
 
EvtId getParentId ()
 
double getBranchingFraction ()
 
void disableCheckQ ()
 
void checkQ ()
 
int getNDaug ()
 
EvtIdgetDaugs ()
 
EvtId getDaug (int i)
 
int getNArg ()
 
int getPHOTOS ()
 
void setPHOTOS ()
 
void setVerbose ()
 
void setSummary ()
 
double * getArgs ()
 
std::string * getArgsStr ()
 
double getArg (int j)
 
std::string getArgStr (int j)
 
std::string getModelName ()
 
int getDSum ()
 
int summary ()
 
int verbose ()
 
void saveDecayInfo (EvtId ipar, int ndaug, EvtId *daug, int narg, std::vector< std::string > &args, std::string name, double brfr)
 
void printSummary ()
 
void setProbMax (double prbmx)
 
void noProbMax ()
 
void checkNArg (int a1, int a2=-1, int a3=-1, int a4=-1)
 
void checkNDaug (int d1, int d2=-1)
 
void checkSpinParent (EvtSpinType::spintype sp)
 
void checkSpinDaughter (int d1, EvtSpinType::spintype sp)
 
virtual int nRealDaughters ()
 

Additional Inherited Members

- Static Public Member Functions inherited from EvtDecayBase
static void findMasses (EvtParticle *p, int ndaugs, EvtId daugs[10], double masses[10])
 
static void findMass (EvtParticle *p)
 
static double findMaxMass (EvtParticle *p)
 
- Protected Member Functions inherited from EvtDecayBase
bool daugsDecayedByParentModel ()
 
- Protected Attributes inherited from EvtDecayAmp
EvtAmp _amp2
 
- Protected Attributes inherited from EvtDecayBase
bool _daugsDecayedByParentModel
 

Detailed Description

Definition at line 35 of file EvtSVPHelAmp.hh.

Constructor & Destructor Documentation

◆ EvtSVPHelAmp()

EvtSVPHelAmp::EvtSVPHelAmp ( )
inline

Definition at line 39 of file EvtSVPHelAmp.hh.

39{}

Referenced by clone().

◆ ~EvtSVPHelAmp()

EvtSVPHelAmp::~EvtSVPHelAmp ( )
virtual

Definition at line 35 of file EvtSVPHelAmp.cc.

35{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtSVPHelAmp::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 44 of file EvtSVPHelAmp.cc.

44 {
45
46 return new EvtSVPHelAmp;
47
48}

◆ decay()

void EvtSVPHelAmp::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 70 of file EvtSVPHelAmp.cc.

70 {
71
72 EvtComplex hp(getArg(0)*cos(getArg(1)),getArg(0)*sin(getArg(1)));
73 EvtComplex hm(getArg(2)*cos(getArg(3)),getArg(2)*sin(getArg(3)));
74
75
76 // Routine to decay a vector into a vector and scalar. Started
77 // by ryd on Oct 17, 1996.
78
79
80 // This routine is adopted from EvtSVVHel and since there is
81 // a photon that can not have helicity 0 this is put in by
82 // setting the h0 amplitude to 0.
83 EvtComplex h0=EvtComplex(0.0,0.0);
84
85 EvtParticle *v1,*ph;
86
88 v1 = p->getDaug(0);
89 ph = p->getDaug(1);
90 EvtVector4R momv1 = v1->getP4();
91 EvtVector4R momph = ph->getP4();
92
93 EvtTensor4C d,g;
94
95 g.setdiag(1.0,-1.0,-1.0,-1.0);
96
97 EvtVector4R v,vp;
98
99 v=momv1/momv1.d3mag();
100 vp=(momv1+momph)/(momv1+momph).mass();
101
102 d=((1.0/sqrt(3.0))*(h0-(hp+hm))*(-1.0/sqrt(3.0)))*g+
103 ((1.0/sqrt(2.0))*(hp-hm)*EvtComplex(0.0,1.0)*(sqrt(1.0/2.0)))*dual(directProd(v,vp))+
104 (sqrt(2.0/3.0)*(h0+0.5*(hp+hm))*sqrt(3.0/2.0))*(directProd(v,v)+(1.0/3.0)*g);
105
106 EvtVector4C ep0,ep1,ep2;
107
108 ep0=d.cont1(v1->eps(0).conj());
109 ep1=d.cont1(v1->eps(1).conj());
110 ep2=d.cont1(v1->eps(2).conj());
111
112 EvtVector4C ep20,ep21,ep22;
113
114 ep20=ph->epsParentPhoton(0).conj();
115 ep21=ph->epsParentPhoton(1).conj();
116
117 vertex(0,0,ep0*ep20);
118 vertex(0,1,ep0*ep21);
119
120 vertex(1,0,ep1*ep20);
121 vertex(1,1,ep1*ep21);
122
123 vertex(2,0,ep2*ep20);
124 vertex(2,1,ep2*ep21);
125
126
127 return ;
128
129}
double sin(const BesAngle a)
Definition BesAngle.h:210
double cos(const BesAngle a)
Definition BesAngle.h:213
Evt3Rank3C directProd(const EvtVector3C &c1, const EvtVector3C &c2, const EvtVector3C &c3)
EvtTensor4C dual(const EvtTensor4C &t2)
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Definition KarLud.h:35
void vertex(const EvtComplex &amp)
double getArg(int j)
EvtId * getDaugs()
virtual EvtVector4C epsParentPhoton(int i)
const EvtVector4R & getP4() const
EvtParticle * getDaug(int i)
virtual EvtVector4C eps(int i) const
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
void setdiag(double t00, double t11, double t22, double t33)
EvtVector4C cont1(const EvtVector4C &v4) const
EvtVector4C conj() const
double mass() const
double d3mag() const

◆ getName()

void EvtSVPHelAmp::getName ( std::string & name)
virtual

Implements EvtDecayBase.

Definition at line 37 of file EvtSVPHelAmp.cc.

37 {
38
39 model_name="SVP_HELAMP";
40
41}

◆ init()

void EvtSVPHelAmp::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 57 of file EvtSVPHelAmp.cc.

57 {
58
59 // check that there are 4 arguments
60 checkNArg(4);
61 checkNDaug(2);
62
64
67
68}
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
void checkSpinParent(EvtSpinType::spintype sp)
void checkNDaug(int d1, int d2=-1)
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)

◆ initProbMax()

void EvtSVPHelAmp::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 50 of file EvtSVPHelAmp.cc.

50 {
51
53
54}
void setProbMax(double prbmx)

The documentation for this class was generated from the following files: