//-------------------------------------------------------------------------- // // Environment: // This software is part of the EvtGen package developed jointly // for the BaBar and CLEO collaborations. If you use all or part // of it, please give an appropriate acknowledgement. // // Copyright Information: See EvtGen/COPYRIGHT // Copyright (C) 1998 Caltech, UCSB // // Module: EvtResonance2.cc // // Description: resonance-defining class // // Modification history: // // NK September 4, 1997 Module created // //------------------------------------------------------------------------ // #include "EvtGenBase/EvtPatches.hh" #include #include "EvtGenBase/EvtVector4R.hh" #include "EvtGenBase/EvtKine.hh" #include "EvtGenBase/EvtComplex.hh" #include "EvtGenBase/EvtResonance2.hh" #include "EvtGenBase/EvtReport.hh" #include "EvtGenBase/EvtConst.hh" EvtResonance2::~EvtResonance2(){} //operator EvtResonance2& EvtResonance2::operator = ( const EvtResonance2 &n) { if ( &n == this ) return *this; _p4_p = n._p4_p; _p4_d1 = n._p4_d1; _p4_d2 = n._p4_d2; _ampl = n._ampl; _theta = n._theta; _gamma = n._gamma; _spin = n._spin; _bwm = n._bwm; return *this; } //constructor EvtResonance2::EvtResonance2(const EvtVector4R& fp4_p, const EvtVector4R& fp4_d1, const EvtVector4R& fp4_d2, double fampl, double ftheta, double fgamma, double fbwm, int fspin, bool invmass_angdenom): _p4_p(fp4_p),_p4_d1(fp4_d1), _p4_d2(fp4_d2),_ampl(fampl), _theta(ftheta), _gamma(fgamma), _bwm(fbwm), _spin(fspin), _invmass_angdenom(invmass_angdenom) {} //amplitude function EvtComplex EvtResonance2::resAmpl() { double pi180inv = 1.0/EvtConst::radToDegrees; EvtComplex ampl; EvtVector4R p4_d3 = _p4_p-_p4_d1-_p4_d2; //get cos of the angle between the daughters from their 4-momenta //and the 4-momentum of the parent //in general, EvtDecayAngle(parent, part1+part2, part1) gives the angle //the missing particle (not listed in the arguments) makes //with part2 in the rest frame of both //listed particles (12) //angle 3 makes with 2 in rest frame of 12 (CS3) //double cos_phi_0 = EvtDecayAngle(_p4_p, _p4_d1+_p4_d2, _p4_d1); //angle 3 makes with 1 in 12 is, of course, -cos_phi_0 //first compute several quantities...follow CLEO preprint 00-23 double mAB=(_p4_d1+_p4_d2).mass(); double mBC=(_p4_d2+p4_d3).mass(); double mAC=(_p4_d1+p4_d3).mass(); double mA=_p4_d1.mass(); double mB=_p4_d2.mass(); double mD=_p4_p.mass(); double mC=p4_d3.mass(); double mR=_bwm; double mdenom = _invmass_angdenom ? mAB : mR; double gammaR=_gamma; double pAB=sqrt( (((mAB*mAB-mA*mA-mB*mB)*(mAB*mAB-mA*mA-mB*mB)/4.0) - mA*mA*mB*mB)/(mAB*mAB)); double pR=sqrt( (((mR*mR-mA*mA-mB*mB)*(mR*mR-mA*mA-mB*mB)/4.0) - mA*mA*mB*mB)/(mR*mR)); double pD= (((mD*mD-mR*mR-mC*mC)*(mD*mD-mR*mR-mC*mC)/4.0) - mR*mR*mC*mC)/(mD*mD); if ( pD>0 ) { pD=sqrt(pD); } else {pD=0;} double pDAB=sqrt( (((mD*mD-mAB*mAB-mC*mC)*(mD*mD-mAB*mAB-mC*mC)/4.0) - mAB*mAB*mC*mC)/(mD*mD)); // report(INFO,"EvtGen") << mAB<<" "<< mBC<<" "<< mAC<<" "<< mA<<" "<< mB<<" "<< mC<<" " // << mD<<" "<< mR<<" "<< gammaR<<" "<< pAB<<" "<< pR<<" "<< pD<<" "<