BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtTSS.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: EvtTSS.cc
12//
13// Description: Routine to decay tensor-> scalar scalar
14//
15// Modification history:
16//
17// RYD November 24, 1996 Module created
18//
19//------------------------------------------------------------------------
20// -*- C++ -*-
21//
22// Package: EVT
23// Module: EvtTSS
24//
25//
26// Implimentation:
27//
28//
29// Author: ryd
30// Created: Nov 24, 1996
31//
32//
33#include "EvtTSS.hh"
41#include <stdlib.h>
42#include <string>
43
45
46void EvtTSS::getName( std::string& model_name ) { model_name = "TSS"; }
47
49
51
52 // check that there are 0 arguments
53 checkNArg( 0 );
54
55 checkNDaug( 2 );
56
58
61}
62
64
66
68
69 EvtVector4R moms1 = p->getDaug( 0 )->getP4();
70
71 double norm = 1.0 / ( moms1.d3mag() * moms1.d3mag() );
72
73 vertex( 0, norm * ( p->epsTensor( 0 ).cont1( EvtVector4C( moms1 ) ) * ( moms1 ) ) );
74 vertex( 1, norm * ( p->epsTensor( 1 ).cont1( EvtVector4C( moms1 ) ) * ( moms1 ) ) );
75 vertex( 2, norm * ( p->epsTensor( 2 ).cont1( EvtVector4C( moms1 ) ) * ( moms1 ) ) );
76 vertex( 3, norm * ( p->epsTensor( 3 ).cont1( EvtVector4C( moms1 ) ) * ( moms1 ) ) );
77 vertex( 4, norm * ( p->epsTensor( 4 ).cont1( EvtVector4C( moms1 ) ) * ( moms1 ) ) );
78
79 return;
80}
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)
const EvtVector4R & getP4() const
EvtParticle * getDaug(int i)
virtual EvtTensor4C epsTensor(int i) const
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
void decay(EvtParticle *p)
Definition EvtTSS.cc:65
EvtDecayBase * clone()
Definition EvtTSS.cc:48
void initProbMax()
Definition EvtTSS.cc:63
virtual ~EvtTSS()
Definition EvtTSS.cc:44
void getName(std::string &name)
Definition EvtTSS.cc:46
void init()
Definition EvtTSS.cc:50
EvtTSS()
Definition EvtTSS.hh:34
EvtVector4C cont1(const EvtVector4C &v4) const
double d3mag() const