1 //--------------------------------------------------------------------------
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.
8 // Copyright Information: See EvtGen/COPYRIGHT
9 // Copyright (C) 1998 Caltech, UCSB
11 // Module: EvtResonance.cc
13 // Description: resonance-defining class
15 // Modification history:
17 // NK September 4, 1997 Module created
19 //------------------------------------------------------------------------
21 #include "EvtGenBase/EvtPatches.hh"
23 #include "EvtGenBase/EvtVector4R.hh"
24 #include "EvtGenBase/EvtKine.hh"
25 #include "EvtGenBase/EvtComplex.hh"
26 #include "EvtGenBase/EvtResonance.hh"
27 #include "EvtGenBase/EvtReport.hh"
28 #include "EvtGenBase/EvtConst.hh"
31 EvtResonance::~EvtResonance(){}
34 EvtResonance& EvtResonance::operator = ( const EvtResonance &n)
36 if ( &n == this ) return *this;
49 EvtResonance::EvtResonance(const EvtVector4R& p4_p, const EvtVector4R& p4_d1,
50 const EvtVector4R& p4_d2, double ampl,
51 double theta, double gamma, double bwm, int spin):
52 _p4_p(p4_p),_p4_d1(p4_d1), _p4_d2(p4_d2),_ampl(ampl), _theta(theta),
53 _gamma(gamma), _bwm(bwm), _spin(spin) {}
55 EvtComplex EvtResonance::resAmpl() {
57 double pi180inv = 1.0/EvtConst::radToDegrees;
60 //EvtVector4R _p4_d3 = _p4_p-_p4_d1-_p4_d2;
62 //get cos of the angle between the daughters from their 4-momenta
63 //and the 4-momentum of the parent
65 //in general, EvtDecayAngle(parent, part1+part2, part1) gives the angle
66 //the missing particle (not listed in the arguments) makes
67 //with part2 in the rest frame of both
68 //listed particles (12)
70 //angle 3 makes with 2 in rest frame of 12 (CS3)
71 double cos_phi_0 = EvtDecayAngle(_p4_p, _p4_d1+_p4_d2, _p4_d1);
72 //angle 3 makes with 1 in 12 is, of course, -cos_phi_0
77 ampl=(_ampl*EvtComplex(cos(_theta*pi180inv),sin(_theta*pi180inv))*
78 sqrt(_gamma/EvtConst::twoPi)*
79 (1.0/((_p4_d1+_p4_d2).mass()-_bwm-EvtComplex(0.0,0.5*_gamma))));
83 ampl=(_ampl*EvtComplex(cos(_theta*pi180inv),sin(_theta*pi180inv))*
84 sqrt(_gamma/EvtConst::twoPi)*
85 (cos_phi_0/((_p4_d1+_p4_d2).mass()-_bwm-EvtComplex(0.0,0.5*_gamma))));
89 ampl=(_ampl*EvtComplex(cos(_theta*pi180inv),sin(_theta*pi180inv))*
90 sqrt(_gamma/EvtConst::twoPi)*
91 ((1.5*cos_phi_0*cos_phi_0-0.5)/((_p4_d1+_p4_d2).mass()-_bwm-EvtComplex(0.0, 0.5*_gamma))));
95 ampl=(_ampl*EvtComplex(cos(_theta*pi180inv),sin(_theta*pi180inv))*
96 sqrt(_gamma/EvtConst::twoPi)*
97 ((2.5*cos_phi_0*cos_phi_0*cos_phi_0-1.5*cos_phi_0)/((_p4_d1+_p4_d2).mass()-_bwm-EvtComplex(0.0, 0.5*_gamma))));
101 report(DEBUG,"EvtGen") << "EvtGen: wrong spin in EvtResonance" << endl;
102 ampl = EvtComplex(0.0);
110 EvtComplex EvtResonance::relBrWig(int i) {
112 //this function returns relativistic Breit-Wigner amplitude
113 //for a given resonance (for P-wave decays of scalars only at the moment!)
116 EvtVector4R _p4_d3 = _p4_p-_p4_d1-_p4_d2;
117 EvtVector4R _p4_12 = _p4_d1 + _p4_d2;
119 double msq13 = (_p4_d1 + _p4_d3).mass2();
120 double msq23 = (_p4_d2 + _p4_d3).mass2();
121 double msqParent = _p4_p.mass2();
122 double msq1 = _p4_d1.mass2();
123 double msq2 = _p4_d2.mass2();
124 double msq3 = _p4_d3.mass2();
128 double p2 = sqrt((_p4_12.mass2() - (_p4_d1.mass() + _p4_d2.mass())*(_p4_d1.mass() + _p4_d2.mass()))*(_p4_12.mass2() - (_p4_d1.mass() - _p4_d2.mass())*(_p4_d1.mass() - _p4_d2.mass())))/(2.0*_p4_12.mass());
130 double p2R = sqrt((_bwm*_bwm - (_p4_d1.mass() + _p4_d2.mass())*(_p4_d1.mass() + _p4_d2.mass()))*(_bwm*_bwm - (_p4_d1.mass() - _p4_d2.mass())*(_p4_d1.mass() - _p4_d2.mass())))/(2.0*_bwm);
139 else R = 5.0/(0.197);
141 gam = _gamma*(_bwm/_p4_12.mass())*(p2/p2R)*(p2/p2R)*(p2/p2R)*((1 + R*R*p2R*p2R)/(1 + R*R*p2*p2));
142 M = (msq13 - msq23 - (msqParent - msq3)*(msq1 - msq2)/(_bwm*_bwm))*sqrt((1 + R*R*p2R*p2R)/(1 + R*R*p2*p2));
144 BW = sqrt(_gamma)*M/((_bwm*_bwm - _p4_12.mass2()) - EvtComplex(0.0,1.0)*gam*_bwm);