BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtVSS.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: EvtVSS.cc
12//
13// Description: Routine to decay vector-> scalar scalar
14//
15// Modification history:
16//
17// RYD November 24, 1996 Module created
18//
19//------------------------------------------------------------------------
20//
21#include "EvtVSS.hh"
29#include <stdlib.h>
30#include <string>
31
33
34void EvtVSS::getName( std::string& model_name ) { model_name = "VSS"; }
35
37
39
40 // check that there are 0 arguments
41 checkNArg( 0 );
42
43 // check that there are 2 daughters
44 checkNDaug( 2 );
45
46 // check the parent and daughter spins
50}
51
53
55
57
58 EvtVector4R pDaug = p->getDaug( 0 )->getP4();
59
60 double norm = 1.0 / pDaug.d3mag();
61
62 for ( int i = 0; i < 3; i++ ) vertex( i, norm * pDaug * ( p->eps( i ) ) );
63
64 return;
65}
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 EvtVector4C eps(int i) const
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
void initProbMax()
Definition EvtVSS.cc:52
void decay(EvtParticle *p)
Definition EvtVSS.cc:54
EvtVSS()
Definition EvtVSS.hh:31
void init()
Definition EvtVSS.cc:38
virtual ~EvtVSS()
Definition EvtVSS.cc:32
void getName(std::string &name)
Definition EvtVSS.cc:34
EvtDecayBase * clone()
Definition EvtVSS.cc:36
double d3mag() const