Changeset View
Changeset View
Standalone View
Standalone View
src/EvtGenModels/EvtbTosllScalarAmpNew.cpp
Show First 20 Lines • Show All 288 Lines • ▼ Show 20 Lines | void EvtbTosllScalarAmpNew::CalcAmp( EvtParticle* parent, EvtAmp& amp, | ||||
c = c10a * fp; | c = c10a * fp; | ||||
d = c10a * ( 1.0 - pow( hatM2, 2 ) ) * ( f0 - fp ) / hats; | d = c10a * ( 1.0 - pow( hatM2, 2 ) ) * ( f0 - fp ) / hats; | ||||
// to find ell^+ and ell^- in the B-meson daughters | // to find ell^+ and ell^- in the B-meson daughters | ||||
int charge1 = EvtPDL::chg3( parent->getDaug( 1 )->getId() ); | int charge1 = EvtPDL::chg3( parent->getDaug( 1 )->getId() ); | ||||
int charge2 = EvtPDL::chg3( parent->getDaug( 2 )->getId() ); | int charge2 = EvtPDL::chg3( parent->getDaug( 2 )->getId() ); | ||||
EvtParticle* lepPlus = 0; | EvtParticle* lepPlus = nullptr; | ||||
EvtParticle* lepMinus = 0; | EvtParticle* lepMinus = nullptr; | ||||
lepPlus = ( charge1 > charge2 ) ? parent->getDaug( 1 ) : parent->getDaug( 2 ); | lepPlus = ( charge1 > charge2 ) ? parent->getDaug( 1 ) : parent->getDaug( 2 ); | ||||
lepMinus = ( charge1 < charge2 ) ? parent->getDaug( 1 ) | lepMinus = ( charge1 < charge2 ) ? parent->getDaug( 1 ) | ||||
: parent->getDaug( 2 ); | : parent->getDaug( 2 ); | ||||
EvtVector4C T1, T2; // hadronic matrix element vector structures | EvtVector4C T1, T2; // hadronic matrix element vector structures | ||||
EvtVector4C lvc11, lvc12; // spin structures for | EvtVector4C lvc11, lvc12; // spin structures for | ||||
▲ Show 20 Lines • Show All 632 Lines • Show Last 20 Lines |