BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtPBB2.cc
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2//
3// Environment:
4// This software is part of models developed at BES collaboration
5// based on the EvtGen framework. If you use all or part
6// of it, please give an appropriate acknowledgement.
7//
8// Copyright Information: See EvtGen/BesCopyright
9// Copyright (A) 2006 Ping Rong-Gang @IHEP
10//
11// Module: EvtPBB2.cc
12//
13// Description: Routine to decay pseudoscalar to B_10 bar B_10 using
14// helicity amplitude.
15//
16// Modification history:
17//
18// Ping R.-G. Apr., 2007 Module created
19//
20//------------------------------------------------------------------------
21
22#include "EvtPBB2.hh"
35#include <stdlib.h>
36
37#include <string>
38
39using std::cout;
40using std::endl;
42
43void EvtPBB2::getName( std::string& model_name ) { model_name = "PBB2"; }
44
46
53
55
56 // Hard coded... should not be hard to calculate...
57 double rt = getArg( 0 );
58 double pmax = 2 + 2 * rt * rt;
59 setProbMax( pmax );
60}
61
63
65
66 double rt = getArg( 0 );
67 double phs = getArg( 0 );
68
69 int ii, jj;
70 for ( ii = 0; ii < 4; ii++ )
71 {
72 for ( jj = 0; jj < 4; jj++ ) { vertex( ii, jj, 0 ); }
73 }
74
75 vertex( 0, 0, 1. );
76 vertex( 1, 1, rt * exp( EvtComplex( 0, phs ) ) );
77 vertex( 2, 2, -rt * exp( EvtComplex( 0, phs ) ) );
78 vertex( 3, 3, -1 );
79 return;
80}
EvtComplex exp(const EvtComplex &c)
void vertex(const EvtComplex &amp)
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
void checkSpinParent(EvtSpinType::spintype sp)
double getArg(int j)
void setProbMax(double prbmx)
void checkNDaug(int d1, int d2=-1)
EvtId * getDaugs()
void getName(std::string &name)
Definition EvtPBB2.cc:43
EvtPBB2()
Definition EvtPBB2.hh:32
void initProbMax()
Definition EvtPBB2.cc:54
virtual ~EvtPBB2()
Definition EvtPBB2.cc:41
void decay(EvtParticle *p)
Definition EvtPBB2.cc:62
EvtDecayBase * clone()
Definition EvtPBB2.cc:45
void init()
Definition EvtPBB2.cc:47
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)