BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtSTS.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: EvtSTS.cc
12//
13// Description: Routine to decay scalar -> tensor scalar.
14//
15//
16// Modification history:
17//
18// RYD Aug 21, 1998 Module created
19//
20//------------------------------------------------------------------------
21//
22#include "EvtSTS.hh"
32#include <stdlib.h>
33#include <string>
34
36
37void EvtSTS::getName( std::string& model_name ) { model_name = "STS"; }
38
40
42
44
45 // check that there are 0 arguments
46 checkNArg( 0 );
47 checkNDaug( 2 );
48
50
53}
54
56
58
59 EvtParticle* t1 = p->getDaug( 0 );
60
61 EvtVector4R momt = t1->getP4();
62 EvtVector4R moms = p->getDaug( 1 )->getP4();
63 double masst = t1->mass();
64
65 EvtVector4R p4_parent = momt + moms;
66
67 double m_parent = p4_parent.mass();
68
69 double norm = masst * masst / ( m_parent * momt.d3mag() * momt.d3mag() );
70
71 vertex( 0, norm * t1->epsTensorParent( 0 ).cont1( p4_parent ) * p4_parent );
72 vertex( 1, norm * t1->epsTensorParent( 1 ).cont1( p4_parent ) * p4_parent );
73 vertex( 2, norm * t1->epsTensorParent( 2 ).cont1( p4_parent ) * p4_parent );
74 vertex( 3, norm * t1->epsTensorParent( 3 ).cont1( p4_parent ) * p4_parent );
75 vertex( 4, norm * t1->epsTensorParent( 4 ).cont1( p4_parent ) * p4_parent );
76
77 return;
78}
void vertex(const EvtComplex &amp)
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
void checkSpinParent(EvtSpinType::spintype sp)
void setProbMax(double prbmx)
void checkNDaug(int d1, int d2=-1)
EvtId * getDaugs()
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
virtual EvtTensor4C epsTensorParent(int i) const
const EvtVector4R & getP4() const
EvtParticle * getDaug(int i)
double mass() const
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
void initProbMax()
Definition EvtSTS.cc:41
void getName(std::string &name)
Definition EvtSTS.cc:37
void decay(EvtParticle *p)
Definition EvtSTS.cc:55
EvtSTS()
Definition EvtSTS.hh:31
void init()
Definition EvtSTS.cc:43
EvtDecayBase * clone()
Definition EvtSTS.cc:39
virtual ~EvtSTS()
Definition EvtSTS.cc:35
EvtVector4C cont1(const EvtVector4C &v4) const
double mass() const
double d3mag() const